mirror of
https://github.com/MoonshotAI/kimi-code.git
synced 2026-07-09 17:29:12 +00:00
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:
parent
08b3c3fc53
commit
063bce2a2f
3 changed files with 51 additions and 8 deletions
5
.changeset/fix-hooks-windows-console-popup.md
Normal file
5
.changeset/fix-hooks-windows-console-popup.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"@moonshot-ai/kimi-code": patch
|
||||
---
|
||||
|
||||
Fix console windows flashing on Windows each time a hook runs.
|
||||
Loading…
Add table
Add a link
Reference in a new issue