Description
Description
When running opencode on Windows 11, the application crashes immediately on startup with a Bun internal panic error related to ThreadLock. The error indicates that a lock is held by one thread but accessed by another, suggesting a race condition or threading bug in the bundled Bun Canary version.
This happens consistently when running the command in any directory on the E: drive (and potentially other non-system drives).
Error Output
============================================================
Bun Canary v1.3.10-canary.100 (6b1d6c76) Windows x64 (baseline)
Windows v.win11_dt
CPU: sse42 avx avx2
Args: "D:\DevTools\npm-global\node_modules\opencode-ai\node_modules\opencode-windows-x64\bin\opencode.exe" "--user-agent=opencode/1.2.11" "--use-system-ca" "--"
...
panic(thread 16724): Internal assertion failure: `ThreadLock` is locked by thread 14356, not thread 16724
oh no: Bun has crashed. This indicates a bug in Bun, not your code.
### Plugins
_No response_
### OpenCode version
1.2.11
### Steps to reproduce
1. Install `opencode-ai` globally via npm: `npm install -g opencode-ai`
2. Navigate to any folder on a non-system drive (e.g., `E:\Fitness-ai-backend`)
3. Run the command: `opencode`
4. Observe immediate crash with the above panic message.
### Screenshot and/or share link
_No response_
### Operating System
Windows 11
### Terminal
Windows Terminal