Repository navigation
feat(hub): open a stack's folder in the user's programs (ADR-0046) - #173
Merged
Merged
Conversation
The path in the stack header is a menu: copy it, or open the shown tree (main working tree or a lane's worktree) in Explorer / the file manager, Windows Terminal, PowerShell or a Linux terminal, VS Code (Insiders), Cursor, Windsurf, Zed, Claude Desktop, Claude Code or Orca. The hub finds them itself: editors and agents by the URL scheme they registered (HKCR\<scheme> with `URL Protocol`, `xdg-mime` on Linux), started by a link of that scheme through the shell; terminals and Orca by their program. `POST /hub/open` takes a stack, a path that must be the stack's repository or one of its worktrees, and an id from the list just found: never a program or a command line. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # CHANGELOG.md
Merged
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.
What
The path in the stack header (
D:\src\app) becomes a menu, like the worktree picker beside it:How the hub finds the programs
HKCR\<scheme>with aURL Protocolvalue. Packaged apps such as Claude Desktop are covered too.xdg-mime query default x-scheme-handler/<scheme>.ShellExecuteW/xdg-open):vscode://file/<path>(also Cursor, Windsurf, Zed)claude://code/new?folder=claude-cli://open?cwd=wt.exeonPATH, started aswt -d.pwshbeforepowershell, in a new console.$TERMINAL,x-terminal-emulator, then common terminals.orca open, thenorca file open <stack file> --worktree path:<tree> --focus. If Orca does not know the repository yet, the hub runsorca repo addfirst.Security (ADR-0046 point 3)
POST /hub/open {stack, path, with}:pathmust be the stack's repository or one of its worktrees (git worktree list, newlanes::worktree_of).withmust be an id from the list the hub has just found.Status
ADR-0046 is Accepted (2026-10-21).
Checked
cargo clippy --workspace --all-targets -D warningson Windows; hub and daemon also on Linux, in Docker.worktree_of.ShellExecuteW.🤖 Generated with Claude Code