Skip to content

Show worktree sessions on Home - #699

Merged
ivanfenenko merged 1 commit into
mainfrom
fix/home-worktree-sessions
Oct 16, 2026
Merged

ivanfenenko merged 1 commit into
mainfrom
fix/home-worktree-sessions

Conversation

@ivanfenenko

@ivanfenenko ivanfenenko commented Oct 16, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • v2 Home listed sessions with directory=<added path>, so a session in another worktree of the same project never appeared. "Add project sheet prototype" is the newest session of opencode-mobile, but it lives in ~/.local/share/opencode/worktree/2fb98b/add-project-browse.
  • Listing now uses project=<id>. The row stays under the added project for filters and counts, and opens in the session's own directory.

Checks

  • Android: SessionProtocolRepositoryTest and CrossProjectSessionListSessionsTest passed.
  • iOS: SessionProtocolRepositoryTests and CrossProjectSessionListSessionsTests passed.
  • GitHub android-checks and ios-checks skipped because this pull request is a draft.

Issue

  • No ticket.

Risks / Follow-ups

  • The row subtitle is still the added project path, not the worktree path.
  • If the location lookup fails, the list falls back to the directory filter and worktree sessions disappear again.
  • Other worktrees of an added project now show in that project's Home list.

v2 Home listed sessions by the added directory, so a session in another
worktree of the same project never appeared. List by project id instead,
and open the row in the session's own directory.
@ivanfenenko
ivanfenenko marked this pull request as ready for review October 16, 2026 18:25
@ivanfenenko
ivanfenenko merged commit b83c5b6 into main Oct 16, 2026
@ivanfenenko
ivanfenenko deleted the fix/home-worktree-sessions branch October 16, 2026 18:35
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