Description
(Installed via: brew install anomalyco/tap/opencode)
Problem
OpenCode starts, then immediately exits with:
Error: Unexpected server error. Check server logs for details.
at <anonymous> (/$bunfs/root/chunk-17ddjttx.js:8:7615)
at processTicksAndRejections (native:7:39)
Sometimes fragments mentioning MCP / Model Context Protocol servers appear before the crash.
What I already tried
- Uninstalled OpenCode
- Reinstalled OpenCode
- Removed Bun completely
- Removed every obvious file/folder containing "opencode"
- Reinstalled from Homebrew
- Started with
--log-level DEBUG
The issue still occurs.
Logs
The log file exists but is empty:
~/.local/share/opencode/log/opencode.log
No useful error is written before the crash.
Additional observation
Running:
opencode --log-level DEBUG
produces normal terminal capability probing sequences (OSC/ANSI escape codes), indicating the TUI starts successfully before the crash.
This suggests:
- OpenCode binary launches successfully
- TUI initializes successfully
- Failure happens after startup, during application initialization or RPC requests
and no useful diagnostic information is written to the log file.
Plugins
No
OpenCode version
1.17.10
Steps to reproduce
I don't know (sorry)
Screenshot and/or share link
No response
Operating System
26.5.1
Terminal
macOS Terminal
Description
(Installed via: brew install anomalyco/tap/opencode)
Problem
OpenCode starts, then immediately exits with:
Sometimes fragments mentioning MCP / Model Context Protocol servers appear before the crash.
What I already tried
--log-level DEBUGThe issue still occurs.
Logs
The log file exists but is empty:
No useful error is written before the crash.
Additional observation
Running:
produces normal terminal capability probing sequences (OSC/ANSI escape codes), indicating the TUI starts successfully before the crash.
This suggests:
and no useful diagnostic information is written to the log file.
Plugins
No
OpenCode version
1.17.10
Steps to reproduce
I don't know (sorry)
Screenshot and/or share link
No response
Operating System
26.5.1
Terminal
macOS Terminal