fix(codex): qualify packaged git bash guidance

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
Woonggi Min
2026-05-31 15:29:02 +09:00
parent e260048b36
commit 8e37e1ceac
3 changed files with 3 additions and 3 deletions
@@ -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) => {
@@ -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"),
};
}
@@ -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 () => {