What version of Kimi Code is running?
0.21.0
Which open platform/subscription were you using?
DeepSeek
Which model were you using?
DeepSeek-V4-Pro
What platform is your computer?
Microsoft Windows NT 10.0.26200.0 x64
What issue are you seeing?
在 Windows 上使用 Kimi Code 时,每次执行 Bash 命令(包括 ls、git status、cat 等简单命令),都会弹出一个新的 Git Bash 终端窗口(mintty),导致:
终端窗口频繁弹出和关闭,一闪一闪
新窗口抢夺前台焦点,打断当前工作(比如正在其他窗口打字时被抢走焦点)
Agent 连续执行多个命令时体验极差,窗口反复弹出
What steps can reproduce the bug?
在 Windows 上启动 Kimi Code
触发任何 Bash 命令执行,例如让 Agent 执行 ls 或 git status
观察:每次都会弹出一个新的 Git Bash 窗口,执行完毕后关闭
Shell 路径为 C:\Program Files\Git\bin\bash.exe(Git for Windows 自带)。
What is the expected behavior?
Bash 命令应在后台静默执行,不弹出新终端窗口,不抢夺前台焦点。与 Claude Code 在 Windows 上的行为一致——Claude Code 使用 child_process.spawn 配合 windowsHide: true 来隐藏控制台窗口。
Additional information
推测原因是 Kimi Code 在 Windows 上调用 bash.exe 时没有使用 CREATE_NO_WINDOW 标志(Windows API)或 Node.js 的 windowsHide: true 选项,导致每次执行都创建一个新的可见控制台窗口。建议在 Windows 平台下 spawn 子进程时默认隐藏窗口。
What is the expected behavior?
No response
Additional information
No response
What version of Kimi Code is running?
0.21.0
Which open platform/subscription were you using?
DeepSeek
Which model were you using?
DeepSeek-V4-Pro
What platform is your computer?
Microsoft Windows NT 10.0.26200.0 x64
What issue are you seeing?
在 Windows 上使用 Kimi Code 时,每次执行 Bash 命令(包括 ls、git status、cat 等简单命令),都会弹出一个新的 Git Bash 终端窗口(mintty),导致:
终端窗口频繁弹出和关闭,一闪一闪
新窗口抢夺前台焦点,打断当前工作(比如正在其他窗口打字时被抢走焦点)
Agent 连续执行多个命令时体验极差,窗口反复弹出
What steps can reproduce the bug?
在 Windows 上启动 Kimi Code
触发任何 Bash 命令执行,例如让 Agent 执行 ls 或 git status
观察:每次都会弹出一个新的 Git Bash 窗口,执行完毕后关闭
Shell 路径为 C:\Program Files\Git\bin\bash.exe(Git for Windows 自带)。
What is the expected behavior?
Bash 命令应在后台静默执行,不弹出新终端窗口,不抢夺前台焦点。与 Claude Code 在 Windows 上的行为一致——Claude Code 使用 child_process.spawn 配合 windowsHide: true 来隐藏控制台窗口。
Additional information
推测原因是 Kimi Code 在 Windows 上调用 bash.exe 时没有使用 CREATE_NO_WINDOW 标志(Windows API)或 Node.js 的 windowsHide: true 选项,导致每次执行都创建一个新的可见控制台窗口。建议在 Windows 平台下 spawn 子进程时默认隐藏窗口。
What is the expected behavior?
No response
Additional information
No response