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
The OpenCode TUI crashed with an unexpected error.
Error: ENOSPC: no space left on device, watch '/home/anthonius/.config/opencode'
Stack trace:
Error: ENOSPC: no space left on device, watch '/home/anthonius/.config/opencode'
at watch (unknown)
at new FSWatcher (internal:fs/watch:101:31)
at watch (internal:fs/watch:172:23)
at e$e (/$bunfs/root/chunk-zyhmjtrm.js:3:55127)
at qi (/$bunfs/root/chunk-ar23td3k.js:2:6895)
at get (/$bunfs/root/chunk-ar23td3k.js:2:17796)
at children (/$bunfs/root/chunk-x9rnes4v.js:2590:3713)
at <anonymous> (/$bunfs/root/chunk-ar23td3k.js:2:14476)
at Ve (/$bunfs/root/chunk-ar23td3k.js:2:9872)
at K (/$bunfs/root/chunk-ar23td3k.js:2:9653)
Plugins
graphify, ponytail
OpenCode version
2.0.28
Steps to reproduce
I'm not sure how it usually works, but when I try to open OpenCode again, this is what happens.
I'm also not sure if it's related to storage, since I still have plenty of free space on my laptop.
Screenshot and/or share link
Operating System
Ubuntu 24.04.4 LTS / Linux 6.11.0-29-generic (x64)
Thanks for the report! I think this is a duplicate of #52776. In both, the TUI crashes at startup while it sets up a watch on ~/.config/opencode to reload config changes, and Linux refuses the watch.
The error says "no space left on device", but here it usually doesn't mean your disk is full. It means your user has run out of inotify watches (fs.inotify.max_user_watches). Every program you run shares that limit, including editors, language servers and other file watchers. A fix that stops this from crashing the TUI is proposed in #52788.
Until that lands, raising the limit should let OpenCode start:
sudo sysctl fs.inotify.max_user_watches=524288
# to keep the setting after a reboot:echo'fs.inotify.max_user_watches=524288'| sudo tee /etc/sysctl.d/99-inotify.conf
Possible duplicates and related issues, most likely first:
I haven't heard back, so I'm closing this as a duplicate of #52776. It's the same crash: the TUI can't set up its watch on ~/.config/opencode because your user has run out of inotify watches. That's why your disk still has free space. Please follow #52776 for updates. A fix is proposed in #52788.
Until it lands, raising fs.inotify.max_user_watches should let OpenCode start, for example sudo sysctl fs.inotify.max_user_watches=524288. If your problem turns out to be different, reply here and we can reopen it.
Activity
opencode-agent commentedon Oct 13, 2026
Thanks for the report! I think this is a duplicate of #52776. In both, the TUI crashes at startup while it sets up a watch on
~/.config/opencodeto reload config changes, and Linux refuses the watch.The error says "no space left on device", but here it usually doesn't mean your disk is full. It means your user has run out of inotify watches (
fs.inotify.max_user_watches). Every program you run shares that limit, including editors, language servers and other file watchers. A fix that stops this from crashing the TUI is proposed in #52788.Until that lands, raising the limit should let OpenCode start:
Possible duplicates and related issues, most likely first:
~/.config/opencode, with the same stack traceEMFILEwhen inotify instances run outENOSPCcrash from another TUI watcher (state storage)The bot will close this issue as a duplicate in 1 day unless you reply explaining how your problem is different. Please follow #52776 for updates.
opencode-agent commentedon Oct 14, 2026
I haven't heard back, so I'm closing this as a duplicate of #52776. It's the same crash: the TUI can't set up its watch on
~/.config/opencodebecause your user has run out of inotify watches. That's why your disk still has free space. Please follow #52776 for updates. A fix is proposed in #52788.Until it lands, raising
fs.inotify.max_user_watchesshould let OpenCode start, for examplesudo sysctl fs.inotify.max_user_watches=524288. If your problem turns out to be different, reply here and we can reopen it.