Skip to content

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

@nakisen

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

Metadata

Metadata

Assignees

Labels

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

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions