fix(agent-core): hide console window when running hooks on Windows (#1466)

Pass windowsHide:true when spawning the hook process so a visible console
no longer flashes and steals focus on Windows. The Bash-tool path was
already hardened (KAOS buildLocalSpawnOptions); the hook runner missed the
flag even though its own taskkill helper already set it.

Extract the spawn options into a pure builder and add a regression test
asserting windowsHide, mirroring the existing KAOS spawn-options test.

Relates to #1298.
This commit is contained in:
liruifengv 2026-07-07 15:55:47 +08:00 committed by GitHub
parent 08b3c3fc53
commit 063bce2a2f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 51 additions and 8 deletions

View file

@ -0,0 +1,5 @@
---
"@moonshot-ai/kimi-code": patch
---
Fix console windows flashing on Windows each time a hook runs.