Repository navigation
fix: open launched checkout on first local load - #86
Merged
Merged
Conversation
Root URL opened whichever checkout finished collecting first. Wait for startup collection and open its default, preferring the checkout that contains the launch path, then most recent activity.
flexdinesh
marked this pull request as ready for review
October 22, 2026 04:26
flexdinesh
enabled auto-merge (squash)
October 22, 2026 04:26
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.
Fixes
/opening the wrong worktree afterdiffx .in a linked worktree.Cause: local scope widens as each checkout finishes collecting (4 parallel workers).
/opened the most active head among whichever checkouts had finished first, then never replaced it. That's often a small, older worktree.serverapp.Published.Newest: changed heads first, then the deepest checkout whose root contains the launch path (current request'sTriggerRoot), then activity. Uses the request metadata because reused observations keep their first run's metadata.POST /api/v2/collectionsreturnsdefaultContextId./waits for local startup collection (existing skeleton), then opens it./streams/{id}still opens immediately.collectordiscovery canonicalizes symlinked input paths so they compare against Git's canonical checkout roots.CollectionResultadds the required fielddefaultContextId(local-only route). Bare/mcpdefault follows the same rule. Remote is unaffected.mise run check: pass (Go, contracts, 91 browser tests).diffx .in a linked worktree returned that worktree as default over a more active main checkout./loads now wait for full local collection instead of the first finished checkout.docs/system.md,docs/development.md,usage.mdupdated. The launch path expresses which checkout the user is working in.