You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Windows: Kimi Code hooks registered as bare .sh pop a Git Bash window after Kimi Code v0.39 #178
Before Kimi Code v0.39 these ran silently through a shell. Since v0.39 the hook command is executed Windows-natively, and a bare .sh:
under cmd /c fails with "not recognized as an internal or external command" (Kimi Code hooks are fail-open, so the hooks silently stop working), or
gets handed to the Windows file association (git-bash.exe), so an interactive Git Bash window pops up on every SessionStart, every user prompt submit, and every turn stop.
Expected
Hooks run invisibly via bash, as before.
Verified workaround
Register the hooks with an explicit bash interpreter — all three phases then run silently and produce the expected stdout (tested via cmd /c with a JSON payload on stdin, exit 0):
For --target kimi on Windows, resolve bash.exe (e.g. C:\Program Files\Git\bin\bash.exe, fallback to where bash) and register command = "<bash.exe>" "<script.sh>", or generate small .cmd wrappers — similar to how the ZCode target already invokes PowerShell explicitly on Windows.
Activity
fix(setup): run Kimi hooks through bash.exe on Windows