You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Agent list not showing on OpenCode Desktop v1.14.39 despite v3.17.15 fix #3812
postinstall.mjs runs successfully: "oh-my-opencode binary installed for win32-x64"
CLI mode (opencode in terminal): agents work fine
Desktop UI: plugin tab shows oh-my-openagent but agent list empty
No errors in DevTools Console
window.__TAURI__, window.electron, window.ipcRenderer all undefined
Workaround
Using CLI mode only
Steps to Reproduce
Install OpenCode Desktop v1.14.39
Add oh-my-openagent@latest to config.json plugins
Open Desktop → Plugins tab shows oh-my-openagent
Agent switcher shows no OmO agents
Expected Behavior
Agents (sisyphus, oracle, librarian...) visible in agent switcher
Actual Behavior
Agent list is empty. Only default build/plan agents visible. No errors in DevTools Console. CLI mode (opencode in terminal) works correctly and shows all agents. Plugin tab shows oh-my-openagent is loaded but UI does not render agent list.
This is NOT a plugin bug — it's an OpenCode Desktop runtime regression
After extensive debugging with the exact same symptoms:
Root Cause
OpenCode Desktop v1.14.35+ changed the sidecar runtime from Bun to Node.js. oh-my-openagent (and all Bun-target plugins) use Bun-specific APIs (Bun.spawn, Bun.file, Bun.write, etc.) that don't exist in Node.js.
Evidence
CLI mode (opencode in terminal): All agents load perfectly ✅
Desktop v1.14.39: Plugin tab shows loaded, but agents invisible ❌
The fix needs to happen in OpenCode Desktop, not in this plugin. Plugin developers cannot polyfill all Bun APIs reliably.
Track the upstream issue
👉 anomalyco/opencode#25880 — "Desktop v1.14.39: Bun-target plugins fail to load (Node.js sidecar lacks Bun APIs)"
Temporary workarounds
Use CLI mode instead of Desktop: opencode in terminal
Downgrade Desktop to v1.14.33 where Bun sidecar still works
This issue should probably be closed as "upstream/depends-on-external-fix" since the fix needs to come from OpenCode Desktop restoring Bun runtime or adding a Bun API polyfill layer.
This is NOT a plugin bug — it's an OpenCode Desktop runtime regression
After extensive debugging with the exact same symptoms:
Root Cause
OpenCode Desktop v1.14.35+ changed the sidecar runtime from Bun to Node.js. oh-my-openagent (and all Bun-target plugins) use Bun-specific APIs (Bun.spawn, Bun.file, Bun.write, etc.) that don't exist in Node.js.
Evidence
CLI mode (opencode in terminal): All agents load perfectly ✅
Desktop v1.14.39: Plugin tab shows loaded, but agents invisible ❌
The fix needs to happen in OpenCode Desktop, not in this plugin. Plugin developers cannot polyfill all Bun APIs reliably.
Track the upstream issue
👉 anomalyco/opencode#25880 — "Desktop v1.14.39: Bun-target plugins fail to load (Node.js sidecar lacks Bun APIs)"
Temporary workarounds
Use CLI mode instead of Desktop: opencode in terminal
Downgrade Desktop to v1.14.33 where Bun sidecar still works
This issue should probably be closed as "upstream/depends-on-external-fix" since the fix needs to come from OpenCode Desktop restoring Bun runtime or adding a Bun API polyfill layer.
this is completely untrue. I got Deepseek V4 Flash to fix it locally for me without any issue. It's 100% a plugin issue.
This is NOT a plugin bug — it's an OpenCode Desktop runtime regression
After extensive debugging with the exact same symptoms:
Root Cause
OpenCode Desktop v1.14.35+ changed the sidecar runtime from Bun 到 Node.js. oh-my-openagent (and all Bun-target plugins) use Bun-specific APIs (Bun.spawn, Bun.file, Bun.write, etc.) that don't exist in Node.js.
Evidence
CLI mode (opencode in terminal): All agents load perfectly ✅
Desktop v1.14.39: Plugin tab shows loaded, but agents invisible ❌
The fix needs to happen in OpenCode Desktop, not in this plugin. Plugin developers cannot polyfill all Bun APIs reliably.
Track the upstream issue
👉 anomalyco/opencode#25880 — "Desktop v1.14.39: Bun-target plugins fail to load (Node.js sidecar lacks Bun APIs)"
Temporary workarounds
Use CLI mode instead of Desktop: opencode in terminal
Downgrade Desktop to v1.14.33 where Bun sidecar still works
This issue should probably be closed as "upstream/depends-on-external-fix" since the fix needs to come from OpenCode Desktop restoring Bun runtime or adding a Bun API polyfill layer.
If I didn't make a mistake in my operation, downgrading to this version did not improve my plugin.
Even though you tested v3.17.15, the Desktop agent list issue persists because the plugin crashes during load — before it can register agents. The crash is caused by �un:sqlite import that Node.js/Electron cannot resolve.
PR #3832 fixes this by hiding the �un: import from the static ESM parser. Once merged, please test again on Desktop v1.14.39 and report back!
I used that tool to clear the OpenCode cache, and it might also be related to the desktop version? After reopening OpenCode, it takes a moment to load, and then you can see the 4 agents.
I confirm! Clearing the cache and letting OpenCode reinstall everything is the best way to update plugins without leaving behind junk files and conflicts with other versions.
[sisyphus-bot] Closing this — fixed and shipped in v4.1.0 (released 2026-05-13).
Thanks for the careful repro, @hoangtuan2k5 — distinguishing CLI-works/Desktop-fails and capturing the no-DevTools-error scenario helped confirm the silent crash hypothesis.
What landed:PR #3964 (fix(electron): eliminate raw Bun.* runtime calls so plugin loads on OpenCode Desktop) — the PR body explicitly lists #3812 in its Closes section. Root cause was the plugin crashing silently during the config hook because Bun.file() / Bun.hash.xxHash32() (called from the hashline read/edit hooks on every tool call) threw ReferenceError: Bun is not defined under Electron's Node runtime. With no DevTools console hook, the crash was invisible — the plugin tab still showed oh-my-openagent but agent registration never completed.
v4.1.0 shims all 19 unguarded Bun.* call sites + the bun:sqlite import (from PR #3832). After upgrading, your Desktop plugin should register the full OMO agent list.
Note for upgrade: Desktop caches plugin packages under ~/.cache/opencode/packages/oh-my-openagent@latest/. If the agent list still doesn't refresh, quit Desktop fully, delete that cache folder, then restart — @herjarsa walked through the exact steps in #3794.
If you still hit it on v4.1.0+ with a clean cache, please reopen with fresh logs. Thanks 🙏
Activity
NatKillers commentedon May 6, 2026
I have the same issue. Here's my error log from ".local\share\opencode\log"
ERROR 2026-05-06T08:57:37 +959ms service=plugin path=oh-my-openagent@latest error=Bun is not defined failed to load plugin
ERROR 2026-05-06T08:57:37 +3ms service=file.watcher error=Cannot find module '@parcel/watcher-win32-x64'
Require stack:
D:\Softwares\Opencode\resources\app.asar\out\main\chunks\node-BCdD_j2u.js failed to load watcher binding
ERROR 2026-05-06T08:57:37 +28ms service=plugin path=oh-my-openagent@latest error=Bun is not defined failed to load plugin
ERROR 2026-05-06T08:57:37 +215ms service=plugin path=oh-my-openagent@latest error=Bun is not defined failed to load plugin
ERROR 2026-05-06T08:57:38 +1079ms service=server error=NotFoundError failed
ERROR 2026-05-06T08:57:38 +60ms service=server error=NotFoundError failed
ERROR 2026-05-06T08:57:39 +261ms service=server error=NotFoundError failed
ERROR 2026-05-06T09:02:40 +301734ms service=server error=NotFoundError failed
ERROR 2026-05-06T09:02:40 +203ms service=server error=NotFoundError failed
ERROR 2026-05-06T09:02:41 +478ms service=server error=NotFoundError failed
kbkb1216 commentedon May 6, 2026
Me too
herjarsa commentedon May 6, 2026
This is NOT a plugin bug — it's an OpenCode Desktop runtime regression
After extensive debugging with the exact same symptoms:
Root Cause
OpenCode Desktop v1.14.35+ changed the sidecar runtime from Bun to Node.js. oh-my-openagent (and all Bun-target plugins) use Bun-specific APIs (Bun.spawn, Bun.file, Bun.write, etc.) that don't exist in Node.js.
Evidence
This is upstream
The fix needs to happen in OpenCode Desktop, not in this plugin. Plugin developers cannot polyfill all Bun APIs reliably.
Track the upstream issue
👉 anomalyco/opencode#25880 — "Desktop v1.14.39: Bun-target plugins fail to load (Node.js sidecar lacks Bun APIs)"
Temporary workarounds
This issue should probably be closed as "upstream/depends-on-external-fix" since the fix needs to come from OpenCode Desktop restoring Bun runtime or adding a Bun API polyfill layer.
Raikaru commentedon May 6, 2026
this is completely untrue. I got Deepseek V4 Flash to fix it locally for me without any issue. It's 100% a plugin issue.
percy4 commentedon May 6, 2026
If I didn't make a mistake in my operation, downgrading to this version did not improve my plugin.
herjarsa commentedon May 7, 2026
Likely fixed by PR #3832 🎉
Even though you tested v3.17.15, the Desktop agent list issue persists because the plugin crashes during load — before it can register agents. The crash is caused by �un:sqlite import that Node.js/Electron cannot resolve.
PR #3832 fixes this by hiding the �un: import from the static ESM parser. Once merged, please test again on Desktop v1.14.39 and report back!
vspanov commentedon May 7, 2026
test again on Desktop v1.14.39 and v1.14.40. Unfortunately, it doesn't work.
fix(agents): copy factory mode to agent config for Desktop 1.14.x compat
hunthunt2005 commentedon May 8, 2026
Here's the English translation:
I used that tool to clear the OpenCode cache, and it might also be related to the desktop version? After reopening OpenCode, it takes a moment to load, and then you can see the 4 agents.
You can try it.
https://opencode.ai/docs/troubleshooting/Clear Cache
If disabling plugins doesn't help (or if plugin installation is stuck), clear the cache so OpenCode can rebuild.
~/.cache/opencode~/.cache/opencode(or runrm -rf ~/.cache/opencode)%USERPROFILE%\.cache\opencodeherjarsa commentedon May 8, 2026
I confirm! Clearing the cache and letting OpenCode reinstall everything is the best way to update plugins without leaving behind junk files and conflicts with other versions.
code-yeongyu commentedon May 13, 2026
[sisyphus-bot] Closing this — fixed and shipped in v4.1.0 (released 2026-05-13).
Thanks for the careful repro, @hoangtuan2k5 — distinguishing CLI-works/Desktop-fails and capturing the no-DevTools-error scenario helped confirm the silent crash hypothesis.
What landed: PR #3964 (
fix(electron): eliminate raw Bun.* runtime calls so plugin loads on OpenCode Desktop) — the PR body explicitly lists#3812in itsClosessection. Root cause was the plugin crashing silently during theconfighook becauseBun.file()/Bun.hash.xxHash32()(called from the hashline read/edit hooks on every tool call) threwReferenceError: Bun is not definedunder Electron's Node runtime. With no DevTools console hook, the crash was invisible — the plugin tab still showedoh-my-openagentbut agent registration never completed.v4.1.0 shims all 19 unguarded
Bun.*call sites + thebun:sqliteimport (from PR #3832). After upgrading, your Desktop plugin should register the full OMO agent list.Note for upgrade: Desktop caches plugin packages under
~/.cache/opencode/packages/oh-my-openagent@latest/. If the agent list still doesn't refresh, quit Desktop fully, delete that cache folder, then restart — @herjarsa walked through the exact steps in #3794.If you still hit it on v4.1.0+ with a clean cache, please reopen with fresh logs. Thanks 🙏
hqrrr commentedon Jun 5, 2026
Same issue with Desktop v1.16.0, and clearing the cache didn't help.