Skip to content

没有安装Git Bash时无法启动 #259

Closed

Description

@WindwithNothing

What version of Kimi Code is running?

0.6.0

Which open platform/subscription were you using?

kimi code

Which model were you using?

What platform is your computer?

Microsoft Windows NT 10.0.22631.0 x64

What issue are you seeing?

PS D:\optimization-research> kimi
D:\a\kimi-code\kimi-code\apps\kimi-code\dist-native\intermediates\main.cjs:120601
if (error instanceof KaosShellNotFoundError) throw new KimiError(ErrorCodes.SHELL_GIT_BASH_NOT_FOUND, error.message);
^

KimiError: Git Bash was not found on this Windows host. Install Git for Windows from https://gitforwindows.org/ or set KIMI_SHELL_PATH to a bash.exe. Checked: C:\Program Files\Git\bin\bash.exe, C:\Program Files (x86)\Git\bin\bash.exe, C:\Users\72439\AppData\Local\Programs\Git\bin\bash.exe.
at D:\a\kimi-code\kimi-code\apps\kimi-code\dist-native\intermediates\main.cjs:120601:55 {
code: 'shell.git_bash_not_found',
details: undefined,
cause: undefined
}

Node.js v24.15.0

What steps can reproduce the bug?

新电脑,运行文档的安装命令
> irm https://code.kimi.com/kimi-code/install.ps1 | iex
然后,在命令行启动kimi
> kimi

What is the expected behavior?

No response

Additional information

虽然手动安装Git Bash就好了,但手册里没有提这事,应该不是预期的行为

Activity

  1. added
    bug
    on May 31, 2026
  2. fancyboi999 commented on Jun 2, 2026

    @fancyboi999

    Fixed in #305: detectEnvironment no longer throws when Git Bash is absent — it returns shell-availability metadata, so KimiCore constructs successfully, the CLI starts, and only the Bash tool is omitted (with a startup warning and an in-prompt note telling the model to use the built-in file tools). KIMI_SHELL_PATH still overrides detection.

    Verified locally that the real detectEnvironment(win32, no Git Bash) path returns shellAvailable=false without throwing, and that the packaged dist/main.mjs boots past the core-construction point that used to crash here.

  3. 7Sageer commented on Jun 4, 2026

    @7Sageer
    Collaborator

    这个是预期行为——目前 Windows 上需要 Git Bash 作为 shell 环境,不过安装文档里确实应该提前说明这个依赖,我们会补上。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions