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
opencode TUI fails to launch with setRawMode errno 9 on macOS (web UI works) #24240
opencode v1.14.24 installed via Homebrew on macOS (Darwin 25.3.0, zsh) launches to a blank screen when run as opencode (TUI mode). The process starts but never renders the interface and does not respond to input.
Environment
opencode 1.14.24 (/opt/homebrew/bin/opencode)
macOS Darwin 25.3.0, zsh
Reproduced in both IDE integrated terminal and macOS Terminal.app
Steps tried
opencode --version / --help → both work correctly
opencode --print-logs --log-level DEBUG → blank screen
opencode --pure --print-logs --log-level DEBUG → blank screen (DB migration completed successfully on this run)
Cleared ~/.local/share/opencode and /.cache/opencode → no change
Tried in native Terminal.app (not IDE terminal) → still blank
Log output (/opencode.log)
INFO service=server-proxy version=1.14.24 args=["--print-logs","--log-level","DEBUG"] opencode
ERROR service=server-proxy e=setRawMode failed with errno: 9 exception
ERROR service=server-proxy error=setRawMode failed with errno: 9 process error
ERROR service=server-proxy e=EIO: i/o error, read exception
Workaround
opencode web launches successfully and is fully functional, so the issue is isolated to the TUI's TTY/raw-mode initialization.
Expected
TUI renders and accepts input.
Actual
Blank screen, no input response, setRawMode fails with errno 9 (EBADF).
Activity
github-actions commentedon Apr 25, 2026
This issue might be a duplicate of existing issues. Please check:
setRawMode failed with errno: 5 (EIO)— samesetRawModefailure pattern, different errnoIf your issue is distinct from these, please feel free to keep it open and add any additional context that differentiates it.
MonsignorEduardo commentedon Apr 26, 2026
I think is related to #24358 or at least I have the same problem with Ghostty
SunastanS commentedon May 15, 2026
I can narrow this down to foot specifically.
Environment:
Results:
Log:
ERROR e=setRawMode failed with errno: 5 exception
ERROR error=setRawMode failed with errno: 5 process error
github-actions commentedon Jul 15, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.