Merge pull request #1436 from Tibsfox/fix/codex-path-replacement-1430

fix(install): add .claude path replacement for Codex runtime
This commit is contained in:
Tom Boucher
2026-04-01 17:11:54 -04:00
committed by GitHub
2 changed files with 19 additions and 0 deletions

View File

@@ -1104,6 +1104,10 @@ function convertSlashCommandsToCodexSkillMentions(content) {
function convertClaudeToCodexMarkdown(content) {
let converted = convertSlashCommandsToCodexSkillMentions(content);
converted = converted.replace(/\$ARGUMENTS\b/g, '{{GSD_ARGS}}');
// Path replacement: .claude → .codex (#1430)
converted = converted.replace(/\$HOME\/\.claude\//g, '$HOME/.codex/');
converted = converted.replace(/~\/\.claude\//g, '~/.codex/');
converted = converted.replace(/\.\/\.claude\//g, './.codex/');
// Runtime-neutral agent name replacement (#766)
converted = neutralizeAgentReferences(converted, 'AGENTS.md');
return converted;