MoonshotAI / MoonshotAI/kimi-code

bug: windows 平台 Agent 调用 git bash 无法处理部分命令,并且会被误认为 MingW 环境,而非原生 MSVC 环境

Open
#2,718 0 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
7.5k
Forks
1.2k
Avg merge
11h 53m
Merged PRs (30d)
350

Description

What version of Kimi Code is running?

0.34.0

Which open platform/subscription were you using?

Any platform

Which model were you using?

Any model

What platform is your computer?

Windows 11

What issue are you seeing?

在 Windows 平台使用 Git-Bash 有与 powershell 不兼容的问题,同时语法也不完全兼容原生 POSIX Bash,导致模型经常出错试错,严重时会导致整个工作链条偏移:如开发时直接默认 MingW 环境编译,导致试图修复根本不存在的编译报错。

What steps can reproduce the bug?

任何 Agent loop 涉及到高频 Bash 调用

What is the expected behavior?

https://github.com/MoonshotAI/kimi-code/pull/2717
提交了一个 PR 单独解决这个问题。

Additional information

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read PR #2717 first, since the issue says it separately addresses the Windows Git Bash problem. Reproduce an Agent loop with frequent Bash calls on Windows 11, then verify that command handling avoids PowerShell and POSIX Bash incompatibilities and does not misidentify a native MSVC environment as MinGW.

Written by the indexing model from the issue text.

Assessment

Tech stack
bash, git, powershell, typescript
Domain
cli, devtools, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.