feat: show worktree directory in session actions menu - #324
Merged
Conversation
Space in Menu opens the session actions dialog (SessionActions.tsx) for the highlighted worktree's session, but it only showed the session name, not which worktree it belonged to.
kbwo
marked this pull request as ready for review
August 19, 2026 13:32
kbwo
added a commit
that referenced
this pull request
Aug 30, 2026
Conflicts came from #324, which added a "Directory: <path>" line to the session actions menu and a required worktreePath prop for it. - SessionActions keeps main's worktreePath prop and dedicated directory line, alongside the hasSession / canDeleteWorktree props of this branch. sessionLabel becomes optional, since a worktree row without a session has no session name to show and the path already has its own line. - App passes both: the label is main's session name / "Session #N" for a session row and undefined for a session-less one. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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.
Problem
Pressing Space on a highlighted session in Menu opens the SessionActions dialog, but it only showed the session name (or session number) — not which worktree the session belonged to. When multiple worktrees have sessions with the same name, or a reviewer wants to confirm the target worktree's path before acting, there was no way to tell.
Verification
Prerequisites:
bun run testcan be run from the repo root)Steps:
bun run typecheck— confirmed it exits with no errorsbun run lint— confirmed it exits with no errorsbun run test— confirmed all tests pass (1816 passed / 10 skipped)Directory: <worktree absolute path>line below the session name