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
Version v1.14.35 is unable to load OMO normally again #25799
The Description field only repeats the title — please provide a meaningful description of what's happening (e.g., what behavior you observe, any error messages or logs)
Steps to reproduce is empty (_No response_) — please provide steps to reproduce the issue
Operating System and Terminal fields are empty — please fill these in so maintainers can help debug
Please edit this issue to address the above within 2 hours, or it will be automatically closed.
This issue might be a duplicate of existing issues. Please check:
Hey, heads up: opencode’s new Electron desktop app runs the embedded server/plugin runtime on Node, not Bun.
oh-my-openagent / oh-my-opencode@3.17.13 appears to be built with bun build --target bun, and the published dist/index.js contains Bun runtime APIs like globalThis.Bun, Bun.file, Bun.write, Bun.spawn, Bun.hash, Bun.serve, Bun.which, and import { Database } from "bun:sqlite".
That means the plugin can work in Bun-backed opencode environments, but it will fail to load in Electron’s Node runtime. A direct Node import repro hits:
ERR_UNSUPPORTED_ESM_URL_SCHEME: Received protocol 'bun:'
What likely needs to change:
Publish a Node-compatible server plugin entrypoint.
Avoid --target bun for the server plugin bundle, or provide conditional exports.
Remove/replace Bun-only APIs in the code loaded by dist/index.js.
Keep Bun-only code behind a CLI/bin path if needed, but not in the opencode plugin server entrypoint.
This is probably why users switching from Tauri/CLI-style environments to Electron think the plugin “disappeared”: the config is still shared, but Electron cannot load the plugin.
Activity
github-actions commentedon May 5, 2026
This issue doesn't fully meet our contributing guidelines.
What needs to be fixed:
_No response_) — please provide steps to reproduce the issuePlease edit this issue to address the above within 2 hours, or it will be automatically closed.
This issue might be a duplicate of existing issues. Please check:
If you believe this was flagged incorrectly, please let a maintainer know.
github-actions commentedon May 5, 2026
Thanks for updating the issue! The description and reproduction steps look good now. We appreciate you taking the time to fill these in.
liu5269 commentedon May 5, 2026
+1
Ryker0716 commentedon May 5, 2026
+1
weberwang commentedon May 5, 2026
+1
Hona commentedon May 5, 2026
Hey can someone with this issue run this and tell me the output pls:
in powershell
Hona commentedon May 5, 2026
Hey, heads up: opencode’s new Electron desktop app runs the embedded server/plugin runtime on Node, not Bun.
oh-my-openagent/oh-my-opencode@3.17.13appears to be built withbun build --target bun, and the publisheddist/index.jscontains Bun runtime APIs likeglobalThis.Bun,Bun.file,Bun.write,Bun.spawn,Bun.hash,Bun.serve,Bun.which, andimport { Database } from "bun:sqlite".That means the plugin can work in Bun-backed opencode environments, but it will fail to load in Electron’s Node runtime. A direct Node import repro hits:
ERR_UNSUPPORTED_ESM_URL_SCHEME: Received protocol 'bun:'What likely needs to change:
--target bunfor the server plugin bundle, or provide conditional exports.dist/index.js.This is probably why users switching from Tauri/CLI-style environments to Electron think the plugin “disappeared”: the config is still shared, but Electron cannot load the plugin.
liu5269 commentedon May 5, 2026
@Hona PS C:\Users\Administrator> $xdg=if($env:XDG_DATA_HOME){$env:XDG_DATA_HOME}else{Join-Path (Join-Path $HOME ".local") "share"}; $paths=@((Join-Path $xdg "opencode\log*.log")); if($env:APPDATA){$paths+=(Join-Path $env:APPDATA "ai.opencode.desktop\logs*.log")}; [bool](Select-String -Path $paths -Pattern "ERR_UNSUPPORTED_ESM_URL_SCHEME|Received protocol 'bun:'|bun:sqlite|globalThis.Bun|Bun is not defined|Cannot destructure property.*globalThis.Bun|Cannot read properties of undefined.*Bun|failed to load plugin.*oh-my-open(agent|code)" -ErrorAction SilentlyContinue)
True
PS C:\Users\Administrator>
xxww0098 commentedon May 5, 2026
but ,why i can open omo in 1.14.38 with ghostty
zhangwei commentedon May 5, 2026
+1