fix(#2429): scope Codex skills home override to --global only (#2553)

* fix(#2429): scope Codex skills home override to --global only

The skills-kind home override (redirecting skills to $HOME/.agents) was
applied regardless of scope. Gate it behind scope === 'global' so
--local installs keep skills project-local under the config directory.

Closes #2429

* docs(#2429): backfill changeset PR number (2553)
This commit is contained in:
Tom Boucher
2026-07-23 07:38:42 -04:00
committed by GitHub
parent 2bcfaa2e27
commit ae8526cd50
2 changed files with 6 additions and 1 deletions

View File

@@ -521,7 +521,7 @@ function dispatchKindEntry(entry: ArtifactKindDescriptor, runtime: string, confi
);
}
if (typeof entry.home === 'string' && entry.home !== '') {
if (scope === 'global' && typeof entry.home === 'string' && entry.home !== '') {
result.home = path.join(os.homedir(), entry.home);
}