-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Description
OpenCode installs @opencode-ai/plugin on first start to ~/.config/opencode/node_modules. However,
when having custom tools in ~/.config/opencode/tools, an error appears on the TUI:
error: Cannot find package 'zod' from '/home/demostanis/.config/opencode/node_modules/@opencode-ai/plugin/dist/tool.js'
(or similar with @opencode-ai/plugin)
A restart is needed for the error to disappear.
This is impactful on temporary systems, where ~/.config/opencode/node_modules will be frequently suppressed (my system runs on a tmpfs)
Plugins
opencode-pty, opencode-gemini-auth (don't think this is related)
OpenCode version
1.2.6
Steps to reproduce
- Add a tool to ~/.config/opencode/tools
- rm ~/.config/opencode/node_modules && rm ~/.bun
- opencode
- Prompt anything
Screenshot and/or share link
Operating System
Arch Linux
Terminal
URxvt
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working