Skip to content

[Bug]: Agent list not showing on OpenCode Desktop v1.14.39 despite v3.17.15 fix #3812

Closed

Description

@hoangtuan2k5

Prerequisites

  • I will write this issue in English (see our Language Policy)
  • I have searched existing issues to avoid duplicates
  • I am using the latest version of oh-my-openagent
  • I have read the documentation or asked an AI coding agent with this project's GitHub URL loaded and couldn't find the answer

Bug Description

Environment

  • OpenCode Desktop: v1.14.39
  • oh-my-openagent: v3.17.15
  • OS: Windows 11
  • Shell: PowerShell 7.6.1

Bug Description

Plugin shows correctly in the Plugins tab, but agent list is completely empty. Only default build/plan agents visible.

What I confirmed

  • grep -c '} = globalThis.Bun;' dist/index.js → 0 (fix from v3.17.15 applied)
  • 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

  1. Install OpenCode Desktop v1.14.39
  2. Add oh-my-openagent@latest to config.json plugins
  3. Open Desktop → Plugins tab shows oh-my-openagent
  4. 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.

Confirmed:

  • oh-my-openagent v3.17.15 installed (globalThis.Bun destructures = 0)
  • postinstall.mjs ran successfully
  • window.TAURI, window.electron, window.ipcRenderer all undefined in DevTools
  • Cleared ~/.cache/opencode fully, issue persists

Doctor Output

oMoMoMoMo Doctor
⚠ 1 issue found:
1. GitHub CLI missing
   gh CLI is not installed.
   Fix: Install from https://cli.github.com/
   Affects: GitHub automation

Error Logs

Configuration

Additional Context

No response

Operating System

Windows

OpenCode Version

v1.14.39

Activity

  1. NatKillers commented on May 6, 2026

    @NatKillers

    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

  2. kbkb1216 commented on May 6, 2026

    @kbkb1216
    Image

    Me too

  3. herjarsa commented on May 6, 2026

    @herjarsa
    Contributor

    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 ❌
    • Desktop v1.14.33 (downgrade): Agents appear correctly ✅

    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

    1. Use CLI mode instead of Desktop: opencode in terminal
    2. 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.

  4. Raikaru commented on May 6, 2026

    @Raikaru

    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 ❌
    • Desktop v1.14.33 (downgrade): Agents appear correctly ✅

    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

    1. Use CLI mode instead of Desktop: opencode in terminal
    2. 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.

  5. percy4 commented on May 6, 2026

    @percy4

    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 ❌
    • Desktop v1.14.33 (downgrade): Agents appear correctly ✅

    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

    1. Use CLI mode instead of Desktop: opencode in terminal
    2. 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.

  6. herjarsa commented on May 7, 2026

    @herjarsa
    Contributor

    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!

  7. vspanov commented on May 7, 2026

    @vspanov

    test again on Desktop v1.14.39 and v1.14.40. Unfortunately, it doesn't work.

  8. hunthunt2005 commented on May 8, 2026

    @hunthunt2005

    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.

    1. Fully quit OpenCode Desktop.
    2. Delete the cache directory:
      • macOS: Finder -> Cmd+Shift+G -> paste ~/.cache/opencode
      • Linux: Delete ~/.cache/opencode (or run rm -rf ~/.cache/opencode)
      • Windows: Press WIN+R and paste %USERPROFILE%\.cache\opencode
    3. Restart OpenCode Desktop.
  9. herjarsa commented on May 8, 2026

    @herjarsa
    Contributor

    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.

  10. code-yeongyu commented on May 13, 2026

    @code-yeongyu
    Owner

    [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 🙏

  11. hqrrr commented on Jun 5, 2026

    @hqrrr

    Same issue with Desktop v1.16.0, and clearing the cache didn't help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions