[PR #10067] fix: ensure @opencode-ai/plugin is installed in cache environment #13320

Open
opened 2026-02-16 18:18:11 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/10067

State: open
Merged: No


What does this PR do?

Fixes #5860

How did you verify your code works?

  1. If you have opencode-google-antigravity-auth installed, it may break between opencode updates (it did for me)
  2. With this patch opencode will automatically install the opencode-ai/plugin, if it's missing. (you can simulate the missing module with rm -rf /home/deftdawg/.cache/opencode/node_modules/@opencode-ai/plugin)
  3. When @opencode-ai/plugin, opencode will silently crash with a blank screen... You can see the full error... opencode run hello --print-logs
  4. testing the fix, switch to this branch and nix build .#opencode (or however you build on your distro)
  5. ./result/bin/opencode run hello --print-logs # this will work and install the module fixing the issue.
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/10067 **State:** open **Merged:** No --- ### What does this PR do? Fixes #5860 ### How did you verify your code works? 1. If you have opencode-google-antigravity-auth installed, it may break between opencode updates (it did for me) 2. With this patch opencode will automatically install the opencode-ai/plugin, if it's missing. (you can simulate the missing module with `rm -rf /home/deftdawg/.cache/opencode/node_modules/@opencode-ai/plugin`) 3. When `@opencode-ai/plugin`, `opencode` will silently crash with a blank screen... You can see the full error... `opencode run hello --print-logs` 4. testing the fix, switch to this branch and `nix build .#opencode` (or however you build on your distro) 5. `./result/bin/opencode run hello --print-logs` # this will work and install the module fixing the issue.
yindo added the pull-request label 2026-02-16 18:18:11 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13320