Skip to content

Unexpected server error on startup (macOS 26) #33780

Description

@mindofcharles

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions