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
Installing to opencode overwrites opencode.json file #125
I installed compound engineering to opencode at ~/.config/opencode and it overwrote the ~/.config/opencode/opencode.json file so I lost all my existing configuration (mcp, permissions, tools, etc).
I guess that mitigates the problem but I suppose a more convenient approach would be to update the existing opencode.json file with the plugin configuration instead of replacing it or creating a backup of it.
I have fixed this issue is a previous PR. It could be that the npm repo is not updated and when you run the bunx command (shown in README.md) it pulls an outdated version of the code.
Try running bun run src/index.ts install compound-engineering --to opencode
This will use the local source to run the script.
The install path already has merge logic that preserves user config (added in #119 and subsequent commits), but I found that the sync path's mergeJsonConfigAtKey had the spread order reversed - incoming plugin entries were overwriting existing user entries on name conflict.
PR #239 fixes the sync path spread order to match the install path's behavior (user config wins), adds user-facing feedback when merging, and adds a test for this case.
Activity
0ut5ider commentedon Feb 20, 2026
When I ran the install script for opencode today, it backed up my old opencode.json file, so this issue may have already been fixed?
ccidral commentedon Feb 20, 2026
I guess that mitigates the problem but I suppose a more convenient approach would be to update the existing
opencode.jsonfile with the plugin configuration instead of replacing it or creating a backup of it.Fix opencode.json overwrite on install/convert (EveryInc#125)
Fix opencode.json overwrite on install/convert (EveryInc#125)
pelletencate commentedon Mar 6, 2026
I installed it today, and I also noticed that it created an opencode.json file, completely ignoring my already present opencode.jsonc file.
0ut5ider commentedon Mar 8, 2026
I have fixed this issue is a previous PR. It could be that the npm repo is not updated and when you run the bunx command (shown in README.md) it pulls an outdated version of the code.
Try running
bun run src/index.ts install compound-engineering --to opencodeThis will use the local source to run the script.
fix(install): merge config instead of overwriting on opencode target
mvanhorn commentedon Mar 9, 2026
The install path already has merge logic that preserves user config (added in #119 and subsequent commits), but I found that the sync path's
mergeJsonConfigAtKeyhad the spread order reversed - incoming plugin entries were overwriting existing user entries on name conflict.PR #239 fixes the sync path spread order to match the install path's behavior (user config wins), adds user-facing feedback when merging, and adds a test for this case.
ryanleecode commentedon Mar 20, 2026
this doesnt work at all it just creates an opencode.json with context7 mcp and nothing else