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
[BUG]: Unhandled ENOENT error when submitting a message with a deleted file attachment #8807
When a user attaches a file (e.g., @somefile.txt) to a message, but deletes that file from the file system before submitting the message, OpenCode crashes.
Bun.file(filepath).stat() throws an unhandled ENOENT error that prints raw to the TUI, breaking the display.
Plugins
No response
OpenCode version
No response
Steps to reproduce
Attach/mention a file in the input (e.g., @somefile.txt).
Delete the file from the file system.
Submit the message (Enter).
Alternatively (simpler):
attach/mention (e.g., @somefile.txt) any file and ask OpenCode to delete it (wait for completion)
Activity
github-actions commentedon Jan 16, 2026
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
github-actions commentedon Mar 26, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.