Repository navigation
Desktop: a second launch on a folder opens it in the running 1loop (#511) - #561
Open
MopigamesYT wants to merge 1 commit into
Open
MopigamesYT wants to merge 1 commit into
MopigamesYT wants to merge 1 commit into
Conversation
) A second launch only asked the running 1loop to show its window: the folder given with -workspace was dropped. Started with -workspace, it now sends "open <folder>": the running window adds the project if needed, switches to it (from a server or SSH machine too, as the sidebar does) and comes to the front. A running 1loop from before this answers nothing to "open", so the launch falls back to "show" rather than taking its place. Tests: TestSecondLaunchOpensItsFolder, TestSecondLaunchFallsBackToShow. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
tpm28
approved these changes
Nov 18, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #511
What changed
-workspacewhile 1loop already runs, the new process sendsopen <folder>on the single-instance socket instead ofshow.openProjectOn(localTarget, …), as the sidebar does, so it works from a server or SSH machine target too.-workspace(a launch from the desktop menu), nothing changes: the window is only shown.open. The new launch then falls back toshow, so it never removes the old one's socket and takes its place.Screenshots
Taken on the linux-test VM: 1loop running on project
ws, then1loop -workspace /home/agent/t/1loopfrom a terminal. The second launch exits, and the running window adds1loopand opens it (log:another launch on /home/agent/t/1loop: opened in the window). Ondevthe log only sayswindow brought to the front.Checked here:
go test ./internal/ui(whole package),go build ./...,go vet,gofmt. New tests:TestSecondLaunchOpensItsFolderandTestSecondLaunchFallsBackToShow(old protocol). Run with two real 1loop processes on the linux-test VM (screenshot and log above).Note:
make runpasses-workspace ., so running it in another repository now opens that repository in the running window.Assisted-by: Claude Opus 5.5 medium
🤖 Generated with Claude Code