Add go command for existing worktrees#47
Conversation
|
Thanks for the PR! This branch currently has a merge conflict with the base branch. When you get a chance, please rebase onto (or merge) the latest base branch, resolve the conflict, and push. After that, checks will re-run and the PR will get looked at again. Noted for treehouse#47 at |
|
Automated reminder: this PR still looks blocked on a rebase or merge conflict fix. If you are still interested, please rebase onto the current base branch, resolve the conflict, and push. If I do not hear back, I may close this as inactive. |
|
I am closing this because it has been waiting on a rebase or merge-conflict fix since 2026-07-10, and I have not seen a comment or push since then. If you still want to keep working on this, please reopen it or open a new PR and mention this one. Happy to take another look when there is an update. |
Problem
Treehouse can create or lease worktrees, but there is no quick way to see existing sessions and jump back into one from an arbitrary directory. Users need a navigation command that works globally across managed pools, not just from the repository that owns a specific pool.
Implementation summary
treehouse go [target].treehouse get.Examples
Interactive navigation from anywhere:
Example output:
Direct navigation by basename:
Direct navigation by unique substring:
Direct navigation by path:
treehouse go ~/.treehouse/treehouse-def456/2/treehouseAmbiguous targets fail clearly instead of choosing silently:
Validation
go test ./internal/pool ./cmd -run 'Test(ListNavigation|ResolveNavigation|Go)'go test ./cmd -run TestGoInteractiveListsGlobalWorktreesAndOpensSelectiongo test ./cmd -run 'Test(TruncateTableCell|GoInteractiveListsGlobalWorktreesAndOpensSelection)'go test ./...GOOS=windows go build ./...Risks
Follow-ups
--jsonor--plainlist mode if scripts need to consume the global session list later.