Skip to content
This repository was archived by the owner on Sep 23, 2026. It is now read-only.
This repository was archived by the owner on Sep 23, 2026. It is now read-only.

[Windows Bug] 输入任何内容都崩溃:'ascii' codec can't encode characters || [Windows Bug] Crash when entering any content: 'ascii' codec can't encode characters #773

Description

@resurrection-i

What version of Kimi Code CLI is running?

kimi, version 1.3

Which open platform/subscription were you using?

/login

Which model were you using?

kimi-for-coding (powered by kimi-k2.5)

What platform is your computer?

Microsoft Windows NT 10.0.22631.0

What issue are you seeing?

Unexpected error: 'ascii' codec can't encode characters in position 0-2: ordinal not in range(128)

输入任何内容(包括简单的 "hello")后 CLI 立即崩溃。

Image

What steps can reproduce the bug?

  1. 在 Windows 上安装 Kimi CLI:Invoke-RestMethod https://code.kimi.com/install.ps1 | Invoke-Expression
  2. 在终端运行 kimi
  3. CLI 显示欢迎界面和提示符 25362@test💫
  4. 输入任意内容,例如 hello
  5. 按回车
  6. CLI 崩溃,显示 ascii 编码错误

Session ID: 69f9f260-4656-456f-bcea-11cf7a09f911(来自欢迎界面)

What is the expected behavior?

CLI 应该正常接受用户输入并开始对话,不应该崩溃。

Additional information

  • 已尝试设置 PYTHONIOENCODING=utf-8 和 PYTHONUTF8=1,无效
  • 已尝试 chcp 65001,无效
  • 错误可能与提示符中的 emoji (💫) 在写入历史记录文件时的编码问题有关
  • 无法执行任何命令,包括 /version、/help,因为输入后立即崩溃
  • 在 Windows 11 中文系统上全新安装
  • 使用 PowerShell 和 Windsurf 终端都测试过,同样报错

What version of Kimi Code CLI is running?

kimi, version 1.3

Which open platform/subscription were you using?

/login

Which model were you using?

kimi-for-coding (powered by kimi-k2.5)

What platform is your computer?

Microsoft Windows NT 10.0.22631.0

What issue are you seeing?

Unexpected error: 'ascii' codec can't encode characters in position 0-2: ordinal not in range(128)

The CLI crashes immediately after typing anything, including a simple "hello".

Image

What steps can reproduce the bug?

  1. Install Kimi CLI on Windows: Invoke-RestMethod https://code.kimi.com/install.ps1 | Invoke-Expression
  2. Run kimi in the terminal
  3. CLI displays the welcome interface and prompt 25362@test💫
  4. Enter any content, such as hello
  5. Press Enter
  6. CLI crashes with ascii encoding error

Session ID: 69f9f260-4656-456f-bcea-11cf7a09f911 (from the welcome interface)

What is the expected behavior?

The CLI should accept user input and start a dialog normally, and should not crash.

Additional information

  • Tried setting PYTHONIOENCODING=utf-8 and PYTHONUTF8=1, to no avail
  • Tried chcp 65001, to no avail
  • The bug may be related to an encoding issue with the emoji (💫) in the prompt when writing to the history file
  • Unable to execute any commands, including /version, /help, because they crash immediately after typing them
  • Fresh installation on Windows 11 Chinese system
  • Tested using both PowerShell and Windsurf terminals, same error reported

Activity

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

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions