Skip to content

fix(sessions): include worktree sessions in the session picker - #409

Merged
chriswritescode-dev merged 1 commit into
mainfrom
fix/session-picker-worktree-sessions
Oct 9, 2026
Merged

chriswritescode-dev merged 1 commit into
mainfrom
fix/session-picker-worktree-sessions

Conversation

@chriswritescode-dev

Copy link
Copy Markdown
Owner

Summary

The Sessions picker dialog in "This project" scope only queried the repository's own checkout directory, so sessions created in the repository's git/OpenCode worktrees never appeared. The picker now also queries the repository's worktree directories and labels those rows with the worktree folder name, matching the TUI picker.

  • This-project scope queries the repository path plus its worktree directories, taken from the repository's worktree siblings.
  • Worktree rows show the worktree folder name; sessions in the repository's own checkout keep no label.
  • All-projects scope is unchanged and still shows the repository name per row.

Type of Change

  • Bug fix
  • New feature
  • Refactor
  • Documentation

Checklist

  • Code follows project style (no comments, named imports)
  • TypeScript types are properly defined
  • Tests added/updated (80% coverage target)
  • pnpm lint passes locally
  • pnpm typecheck passes locally

Frontend typecheck and lint pass. SessionPickerDialog tests pass (12/12).

@chriswritescode-dev
chriswritescode-dev merged commit 474724a into main Oct 9, 2026
1 check was pending
@chriswritescode-dev
chriswritescode-dev deleted the fix/session-picker-worktree-sessions branch October 9, 2026 03:49
@coderabbitai

coderabbitai Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 4975296a-e9ee-4e7c-89b7-f91ddb95b7dc
📥 Commits

Reviewing files that changed from the base of the PR and between d9843a0 and 08c0323.

📒 Files selected for processing (2)
  • frontend/src/components/session/SessionPickerDialog.test.tsx
  • frontend/src/components/session/SessionPickerDialog.tsx
 _________________________________________________________________________________________________________________
< Iterate the schedule with the code. Use experience you gain as you implement to refine the project time scales. >
 -----------------------------------------------------------------------------------------------------------------
  \
   \   (\__/)
       (•ㅅ•)
       /   づ
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant