Skip to content

Stale "Note: The user opened the file ..." leaks across sessions and projects #24295

Closed

Description

@nakisen

Description

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

  1. Open file A in project X, work in opencode session
  2. Close opencode
  3. Open opencode in project Y, start NEW session
  4. First prompt's system note still references file A from project X

Screenshot and/or share link

No response

Operating System

Windows 11

Terminal

PowerShell

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Apr 25, 2026
  2. jjjermiah commented on Apr 25, 2026

    @jjjermiah
    Contributor

    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

  3. jjjermiah commented on Apr 25, 2026

    @jjjermiah
    Contributor

    looks like introduced in #24034

  4. jjjermiah commented on Apr 25, 2026

    @jjjermiah
    Contributor

    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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcoreAnything pertaining to core functionality of the application (opencode server stuff)windows

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions