Repository navigation
fix(installer): load the OpenCode plugin once on v1 and v2 - #6744
Open
fancyboi999 wants to merge 1 commit into
Open
fancyboi999 wants to merge 1 commit into
fancyboi999 wants to merge 1 commit into
Conversation
7 of 21 tasks
fancyboi999
force-pushed
the
fix/6736-opencode-install-discovery
branch
from
November 6, 2026 01:27
cfbaa5f to
32e7de4
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The installer puts both
plugins/openviking/andplugins/openviking.jsin OpenCode's discovery directory. OpenCode v2 discovers both sources and rejects the second instance withDuplicate plugin ID: openviking, although the installer reports success.Put the package in
~/.config/opencode/openviking-plugin/and keepplugins/openviking.jsas the single discoverable entrypoint. This layout works with v1's file scanner and v2's file/directory scanner without version detection. Reinstallation removes the old package directory while preserving runtime state and unrelated plugins.Human Involvement
Related Issue
Fixes #6736
Type of Change
Changes Made
0.5.24.Testing
node --test examples/memory-plugin-shared/install-opencode-jsonc.test.mjs examples/memory-plugin-shared/install-sources.test.mjsnpm test --prefix examples/opencode-pluginnpm run check --prefix examples/opencode-pluginnode docs/scripts/check-docs-consistency.mjsbash -n examples/memory-plugin-shared/install.shReal host checks used the published OpenCode 2.2.0 and 1.18.32 binaries with isolated HOME/XDG paths:
listonviking://resourcesagainst an isolated OpenViking 0.5.0 server. A local deterministic embedding fixture supports server bootstrap; model inference and retrieval quality were not tested.The plugin suite emits temporary-log
ENOENTdiagnostics while exiting successfully. The same diagnostics reproduce on unchangedmainwith all 56 tests passing. No temporary reproduction scripts or debug instrumentation are included in this PR.Checklist
Screenshots (if applicable)
N/A; validated using host inventories, HTTP responses and MCP calls.
Additional Notes
Restart OpenCode and its background service after updating an existing installation so its cached plugin inventory reloads.