You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: project_id cache collision across bare repos under shared parent directory #18045
OpenCode can assign the same project_id to unrelated repositories when those repos are bare git dirs under the same parent directory (for example, multiple *.git repos under one org folder). This causes session history to mix across repos, and opencode -c may continue a session from a different repository.
Plugins
None
OpenCode version
v1.2.27 (also observed in newer builds before fix)
Steps to reproduce
Create two different repositories with different root commits.
Create bare mirrors under the same parent directory (e.g. /path/org/repo-a.git and /path/org/repo-b.git).
Activity
github-actions commentedon Mar 18, 2026
This issue might be a duplicate of existing issues. Please check:
rekram1-node commentedon Mar 25, 2026
reassigning since james was working on this last