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
Session-create unrevert can restore a snapshot from another worktree #35255
When multiple checkout roots resolve to the same opencode project identity, session-create unrevert can restore a snapshot tree captured in one worktree onto a different current worktree root.
Observed impact
With opencode 1.17.9, a stale snapshot captured in a throwaway apply worktree was later restored by session-create in the main checkout because both directories shared one project identity. The main checkout was overwritten with the foreign tree as unstaged file changes and untracked files, while the repository git metadata remained untouched.
Expected behavior
A snapshot restore should be scoped to the worktree/root where the snapshot was captured, or unrevert should refuse to restore when the current worktree root differs from the snapshot source. Project identity collisions should not allow cross-directory whole-tree restores.
Local mitigation
The affected workspace disabled filesystem snapshots via project config to remove this replay path.
Activity
github-actions commentedon Jul 4, 2026
This issue might be a duplicate of or closely related to existing issues. Please check:
If your issue is distinct from the above, please add a comment clarifying how it differs.
github-actions commentedon Sep 2, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.