zsh: trace trap opencode #4257

Open
opened 2026-02-16 17:43:11 -05:00 by yindo · 2 comments
Owner

Originally created by @navneetkarnani on GitHub (Jan 5, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

zsh in iTerm2 says:

====

zsh: trace trap opencode


opencode run hello --print-logs

=====
INFO 2026-01-05T20:02:13 +2ms service=plugin path=opencode-copilot-auth@0.0.9 loading plugin
ERROR 2026-01-05T20:02:13 +5ms service=default name=ResolveMessage message=Cannot find module '/Users/navneet/.cache/opencode/node_modules/opencode-copilot-auth' from '/$bunfs/root/src/index.js' code=ERR_MODULE_NOT_FOUND specifier=/Users/navneet/.cache/opencode/node_modules/opencode-copilot-auth referrer=/$bunfs/root/src/index.js importKind=import-statement fatal
Error: Unexpected error, check log file at for more details

error: Cannot find module '/Users/navneet/.cache/opencode/node_modules/opencode-copilot-auth' from '/$bunfs/root/src/index.js'

Plugins

No response

OpenCode version

1.1.2

Steps to reproduce

Install opencode using the bash and url. And run opencode from the cli.

Screenshot and/or share link

No response

Operating System

macOS 26.2

Terminal

iTerm2

Originally created by @navneetkarnani on GitHub (Jan 5, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description zsh in iTerm2 says: ==== zsh: trace trap opencode ---- opencode run hello --print-logs ===== INFO 2026-01-05T20:02:13 +2ms service=plugin path=opencode-copilot-auth@0.0.9 loading plugin ERROR 2026-01-05T20:02:13 +5ms service=default name=ResolveMessage message=Cannot find module '/Users/navneet/.cache/opencode/node_modules/opencode-copilot-auth' from '/$bunfs/root/src/index.js' code=ERR_MODULE_NOT_FOUND specifier=/Users/navneet/.cache/opencode/node_modules/opencode-copilot-auth referrer=/$bunfs/root/src/index.js importKind=import-statement fatal Error: Unexpected error, check log file at for more details error: Cannot find module '/Users/navneet/.cache/opencode/node_modules/opencode-copilot-auth' from '/$bunfs/root/src/index.js' ### Plugins _No response_ ### OpenCode version 1.1.2 ### Steps to reproduce Install opencode using the bash and url. And run opencode from the cli. ### Screenshot and/or share link _No response_ ### Operating System macOS 26.2 ### Terminal iTerm2
yindo added the bug label 2026-02-16 17:43:11 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 5, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #2341: opencode-copilot-auth error - Same module loading error
  • #3350: Error: cannot find module opencode-copilot-auth - Identical problem with same plugin
  • #5223: Can't open opencode after install - BunInstallFailedError with opencode-copilot-auth plugin
  • #6052: BunInstallFailederror on First Run - Plugin installation issues in restricted environments

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 5, 2026): This issue might be a duplicate of existing issues. Please check: - #2341: opencode-copilot-auth error - Same module loading error - #3350: Error: cannot find module opencode-copilot-auth - Identical problem with same plugin - #5223: Can't open opencode after install - BunInstallFailedError with opencode-copilot-auth plugin - #6052: BunInstallFailederror on First Run - Plugin installation issues in restricted environments Feel free to ignore if none of these address your specific case.
Author
Owner

@imattdunbar commented on GitHub (Jan 9, 2026):

I had this happen too after deleting my cache for something and repeatedly got this error on startup.

I don't know what the right fix is, but I was able to get back up and running by just deleting all the opencode related folders listed running opencode debug paths if anyone else gets stuck.

@imattdunbar commented on GitHub (Jan 9, 2026): I had this happen too after deleting my cache for something and repeatedly got this error on startup. I don't know what the right fix is, but I was able to get back up and running by just deleting all the opencode related folders listed running `opencode debug paths` if anyone else gets stuck.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4257