-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Description
Description
I am experiencing a persistent immediate crash upon launching opencode (v1.0.105) on MacOS. The CLI terminates instantly after execution, printing only an empty JSON object {} to stdout.
The issue persists even after a complete cleanup of configuration and cache files.
Steps to Reproduce
- Run
opencodein the terminal (Zsh). - The process exits immediately.
- Output is consistently
{}.
Troubleshooting Attempted (Detailed)
I have performed a comprehensive cleanup to rule out environment corruption, but the issue persists in all cases:
1. Checked for Zombie Processes
Verified that no previous opencode instances or background workers were occupying ports or resources.
ps aux | grep opencode
# Result: No process found other than grep.2. Cleaned State Directories
Removed the following directories to force a fresh start:
~/.cache/opencode~/.local/share/opencode~/.local/share/opentui
3. Removed Configuration
Moved ~/.config/opencode/opencode.jsonc to a backup location to test with zero configuration (default state). The crash still occurs.
Logs & Diagnostics
Running with --print-logs shows the service attempts to initialize but terminates immediately after printing the version info, returning the empty JSON.
$ opencode --print-logs
INFO 2025-11-23T05:49:30 +1824ms service=default version=1.0.105 args=["--print-logs"] opencode
{}
OpenCode version
1.0.105
Steps to reproduce
just trying to run opencode
Screenshot and/or share link
Operating System
macOS 26.0.1
Terminal
wezterm