From 8e37e1ceaca37eccb564de6496d6688c6f4bfe1d Mon Sep 17 00:00:00 2001 From: Woonggi Min Date: Sun, 31 May 2026 15:29:02 +0900 Subject: [PATCH] fix(codex): qualify packaged git bash guidance Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus --- .../omo-codex/scripts/install-local-git-bash-preflight.test.mjs | 2 +- packages/omo-codex/scripts/install/git-bash.mjs | 2 +- packages/omo-codex/scripts/install/git-bash.test.mjs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/omo-codex/scripts/install-local-git-bash-preflight.test.mjs b/packages/omo-codex/scripts/install-local-git-bash-preflight.test.mjs index 774cd051a..bbfc03794 100644 --- a/packages/omo-codex/scripts/install-local-git-bash-preflight.test.mjs +++ b/packages/omo-codex/scripts/install-local-git-bash-preflight.test.mjs @@ -39,7 +39,7 @@ test("#given Windows without Git Bash and auto install skip env #when installing "Git Bash is required.", "winget install --id Git.Git -e --source winget", "OMO_CODEX_GIT_BASH_PATH=C:\\path\\to\\bash.exe", - "rerun `bunx omo install --platform=codex`", + "rerun `bunx --package oh-my-openagent omo install --platform=codex`", ].join("\n"), }), runCommand: async (command, args, options) => { diff --git a/packages/omo-codex/scripts/install/git-bash.mjs b/packages/omo-codex/scripts/install/git-bash.mjs index 406ce74d0..7cc25588d 100644 --- a/packages/omo-codex/scripts/install/git-bash.mjs +++ b/packages/omo-codex/scripts/install/git-bash.mjs @@ -70,7 +70,7 @@ function missingGitBash(checkedPaths) { "Git Bash is required for native Windows Codex profile installs.", "Install it with: winget install --id Git.Git -e --source winget", `For a custom install, set ${GIT_BASH_ENV_KEY}=C:\\path\\to\\bash.exe`, - "Then rerun `bunx omo install --platform=codex`.", + "Then rerun `bunx --package oh-my-openagent omo install --platform=codex`.", ].join("\n"), }; } diff --git a/packages/omo-codex/scripts/install/git-bash.test.mjs b/packages/omo-codex/scripts/install/git-bash.test.mjs index e2a039b9c..1377584cb 100644 --- a/packages/omo-codex/scripts/install/git-bash.test.mjs +++ b/packages/omo-codex/scripts/install/git-bash.test.mjs @@ -66,7 +66,7 @@ test("#given Windows without Git Bash #when resolving #then returns install guid assert.equal(result.found, false); assert.deepEqual(result.checkedPaths, [programFilesGitBash, programFilesX86GitBash]); assert.match(result.installHint, /winget install --id Git\.Git -e --source winget/); - assert.match(result.installHint, /rerun `bunx omo install --platform=codex`/); + assert.match(result.installHint, /rerun `bunx --package oh-my-openagent omo install --platform=codex`/); }); test("#given Windows without Git Bash and winget is allowed #when preparing #then winget runs and resolver retries", async () => {