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
npm-registry without ending slash breaks opencode #4490
npm config set registry https://internal/example/to/npmjs-registry
$ opencode
Error: Unexpected error, check log file at /home/user/.local/share/opencode/log/2025-10-20T133525.log for more details
checking the log:
error: GET https://internal/example/to/@opencode-ai%2fplugin - 404
As you can see above, it is missing npmjs-registry as the address should be: https://internal/example/to/npmjs-registry/@opencode-ai%2fplugin
expected
opencode handles a npm registry without an ending slash and append one before looking up for npm packages.
current workaround
with the below, opencode works as expected:
npm config set registry https://internal/example/to/npmjs-registry/
Apologies but I am not using it right now so I can't test with latest. I meant to report the problem earlier but didn't have a chance. Hopefully it is easy to fix indeed!
Activity
rekram1-node commentedon Nov 20, 2025
@saidelike can you update to latest?
opencode upgrade 1.0.78
rekram1-node commentedon Nov 20, 2025
/oc if you can find an easy fix for this then fix it please, look in bun/index.ts
opencode-agent commentedon Nov 20, 2025
Created PR #4520
opencode session | github run
saidelike commentedon Nov 20, 2025
Apologies but I am not using it right now so I can't test with latest. I meant to report the problem earlier but didn't have a chance. Hopefully it is easy to fix indeed!