Sessions gets mixed up across worktrees #9430

Open
opened 2026-02-16 18:12:26 -05:00 by yindo · 1 comment
Owner

Originally created by @manishprivet on GitHub (Feb 15, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

If I have multiple worktrees on the same repo, the sessions across multiple worktrees get mixed up, making it very difficult and confusing to visit older sessions

Plugins

No response

OpenCode version

1.2.5

Steps to reproduce

  1. Create two worktrees on a repository
  2. Start a session in 1st worktree
  3. Go to second worktree and type /session. The session from 1st worktree should show up there.

Screenshot and/or share link

No response

Operating System

macOS 26

Terminal

Ghostty + Tmux

Originally created by @manishprivet on GitHub (Feb 15, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description If I have multiple worktrees on the same repo, the sessions across multiple worktrees get mixed up, making it very difficult and confusing to visit older sessions ### Plugins _No response_ ### OpenCode version 1.2.5 ### Steps to reproduce 1. Create two worktrees on a repository 2. Start a session in 1st worktree 3. Go to second worktree and type `/session`. The session from 1st worktree should show up there. ### Screenshot and/or share link _No response_ ### Operating System macOS 26 ### Terminal Ghostty + Tmux
yindo added the bug label 2026-02-16 18:12:26 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Feb 15, 2026):

This issue might be a duplicate of or related to existing issues. Please check:

  • #12726: Git worktrees cause projectID mismatch (sessions 404 across sandboxes) - likely root cause
  • #11802: Session diffs are worktree-global, causing sessions to get mixed up
  • #3551: Sessions mixed with other directory session lists
  • #8836: Session list showing all sessions instead of current directory scope
  • #5638: Desktop app project replacement with multiple worktrees from same repo
  • #6696: ProjectID collision when repos cloned from same source

Issues #12726 and #11802 appear to be the fundamental causes of this issue.

@github-actions[bot] commented on GitHub (Feb 15, 2026): This issue might be a duplicate of or related to existing issues. Please check: - #12726: Git worktrees cause projectID mismatch (sessions 404 across sandboxes) - likely root cause - #11802: Session diffs are worktree-global, causing sessions to get mixed up - #3551: Sessions mixed with other directory session lists - #8836: Session list showing all sessions instead of current directory scope - #5638: Desktop app project replacement with multiple worktrees from same repo - #6696: ProjectID collision when repos cloned from same source Issues #12726 and #11802 appear to be the fundamental causes of this issue.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9430