anomalyco / anomalyco/opencode
Desktop sidecar crashes with bun: ESM protocol error with big-pickle
Open
@Hona is already working on this.
Since Jul 28, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
OpenCode Desktop v1.18.8 on Windows 11 fails to answer any questions using the built-in opencode/big-pickle provider. The sidecar crashes with a bun: ESM protocol error.
Error from logs (%USERPROFILE%.local\share\opencode\log\opencode.log)
ERROR message="prompt_async failed" sessionID=ses_0568b3bb1ffeSNyVXN4RFCwfNz
cause="Cause([Die(Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only URLs with a scheme in:
file, data, node, and electron are supported by the default ESM loader.
Received protocol 'bun:')])"
Steps to reproduce
- Install OpenCode Desktop v1.18.8 on Windows
- Open the app, create a new session with the default opencode/big-pickle model
- Ask any question
- Loading hangs indefinitely; the sidecar logs show the bun: ESM error
Expected behavior
The desktop app should answer questions using the built-in big-pickle model, just like the CLI does.
Actual behavior
Every prompt_async call fails with the bun: protocol ESM error. The CLI (opencode from terminal, which runs on Bun) works fine.
Environment
- OpenCode Desktop v1.18.8
- Windows 11
- Clean config (no plugins, no custom providers)
- Cache cleared
Related - PR #30324 attempted to fix Bun plugin runtime compatibility but this bun: protocol import error persists
- Issue #25880, #25824, #28287
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.