Description
Since 1.14.23, OpenCode shows the currently-open file in the TUI prompt area, e.g. testfile.py.
Problem:
When I close that file in the editor, OpenCode keeps showing/injecting the old file context. The LLM then assumes my unrelated prompt is about that stale file and tries to modify it.
Expected:
When the active editor file is closed, OpenCode should clear the editor context and stop injecting "user opened this file" or equivalent context into the prompt.
Plugins
No response
OpenCode version
1.14.23
Steps to reproduce
- Open
opencode in VSCode terminal
- Open a file, select something in it. Filename should appear at the botton of opencode
- Close this file, the filename doesn't disappear.
Screenshot and/or share link
we open file, testfile.py appears near the bottom:

we close this file, testfile.py remains

Operating System
WSL2 inside Windows 11, latest versions.
Terminal
Bash inside VSCode, WSL2
Description
Since 1.14.23, OpenCode shows the currently-open file in the TUI prompt area, e.g.
testfile.py.Problem:
When I close that file in the editor, OpenCode keeps showing/injecting the old file context. The LLM then assumes my unrelated prompt is about that stale file and tries to modify it.
Expected:
When the active editor file is closed, OpenCode should clear the editor context and stop injecting "user opened this file" or equivalent context into the prompt.
Plugins
No response
OpenCode version
1.14.23
Steps to reproduce
opencodein VSCode terminalScreenshot and/or share link
we open file,

testfile.pyappears near the bottom:we close this file,

testfile.pyremainsOperating System
WSL2 inside Windows 11, latest versions.
Terminal
Bash inside VSCode, WSL2