kimi-code/.changeset/fix-windows-git-bash-path-detection.md
opbr d912053b0d
fix(kaos): search usr\bin\bash.exe paths for Git Bash on Windows (#145)
Some Git for Windows installations have bash.exe only at
<root>\usr\bin\bash.exe while <root>\bin\bash.exe does not exist.
Add usr\bin\bash.exe candidates alongside each bin\bash.exe entry in
both the hardcoded fallback list and the git.exe inference logic.

Also add @moonshot-ai/kimi-code-sdk to the changeset since the SDK
bundles agent-core code and calls detectEnvironmentFromNode() on
session creation, so Windows SDK users also need this fix.
2026-06-02 11:41:19 +08:00

264 B

@moonshot-ai/kimi-code @moonshot-ai/kimi-code-sdk
patch patch

Fix Git Bash path detection on Windows by also searching usr\bin\bash.exe locations, which is where bash lives in many Git for Windows installations where bin\bash.exe does not exist.