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
Stale "Note: The user opened the file ..." leaks across sessions and projects #24295
Stale "Note: The user opened the file ..." leaks across sessions and projects
Expected: New session has no "user opened the file" note, or only references files from current project
Actual: Previous session's file path appears in system note.
Related (likely same family): #6697, #3551, #5005, #4628. Possibly a regression introduced after the v1.14.22 stale-state fix.
Plugins
No response
OpenCode version
1.14.24
Steps to reproduce
Open file A in project X, work in opencode session
Close opencode
Open opencode in project Y, start NEW session
First prompt's system note still references file A from project X
looking through #24034 i discovered it was because i had Claude Code Vscode extension, and the feature looks through ~/.claude/ide folder for lock files that describe the editor's state, and then has some scoring logic to see if the cwd is relative to it, but doesnt discriminate when its unrelated at all?
Activity
jjjermiah commentedon Apr 25, 2026
yeah this is really frustrating, i thought it had to do with having sessions open in vscode which is where i see it changes the files open
jjjermiah commentedon Apr 25, 2026
looks like introduced in #24034
jjjermiah commentedon Apr 25, 2026
looking through #24034 i discovered it was because i had Claude Code Vscode extension, and the feature looks through
~/.claude/idefolder for lock files that describe the editor's state, and then has some scoring logic to see if the cwd is relative to it, but doesnt discriminate when its unrelated at all?