From 4caab329dbc2e354945711018422f483891ad3cb Mon Sep 17 00:00:00 2001 From: Alberto Varesio Date: Thu, 30 Jul 2026 11:14:35 +0200 Subject: [PATCH] fix(opencode): install to ~/.config/opencode instead of ~/.opencode OpenCode natively uses ~/.config/opencode per XDG conventions. The install target was writing to ~/.opencode, which only worked on systems where that path happened to be symlinked to ~/.config/opencode. The MCP inventory reader already looked in ~/.config/opencode, so the installer and reader were inconsistent. --- scripts/install-apply.js | 2 +- scripts/lib/install-targets/opencode-home.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install-apply.js b/scripts/install-apply.js index 776d5f35d..8d0c4cf12 100755 --- a/scripts/install-apply.js +++ b/scripts/install-apply.js @@ -39,7 +39,7 @@ Targets: antigravity - Install rules, workflows, skills, and agents to ./.agents/ codex - Install shared agents/config into ~/.codex/ gemini - Install project-local Gemini config into ./.gemini/ - opencode - Install shared commands/hooks/config into ~/.opencode/ + opencode - Install shared commands/hooks/config into ~/.config/opencode/ codebuddy - Install commands, agents, skills, and flattened rules into ./.codebuddy/ joycode - Install commands, agents, skills, and flattened rules into ./.joycode/ qwen - Install commands, agents, skills, rules, and Qwen config into ~/.qwen/ diff --git a/scripts/lib/install-targets/opencode-home.js b/scripts/lib/install-targets/opencode-home.js index 56880235c..7fc289469 100644 --- a/scripts/lib/install-targets/opencode-home.js +++ b/scripts/lib/install-targets/opencode-home.js @@ -83,7 +83,7 @@ module.exports = createInstallTargetAdapter({ id: 'opencode-home', target: 'opencode', kind: 'home', - rootSegments: ['.opencode'], + rootSegments: ['.config', 'opencode'], installStatePathSegments: ['ecc-install-state.json'], nativeRootRelativePath: '.opencode', validate: defaultValidateOpencodeHome,