MoonshotAI / MoonshotAI/kimi-code

kimi -c 命令报错: error: failed to start shell: storage stat failed: unrecognized I/O error

Open
#3,545 0 comments 0 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

你运行的 Kimi Code 版本是?

0.40.1

你使用的是哪个开放平台/订阅?

kimi

你使用的是哪个模型?

k3-256k

你的电脑平台是?

macOS

你遇到了什么问题?

Mac 系统,通过 Finder 打开会话目录后,自动生成了 .DS_Store 文件,比如:~/.kimi-code/sessions/wd_opay_ca8e96d328c8/.DS_Store

此时,kimi -c 命令无法执行,直接报错:error: failed to start shell: storage stat failed: unrecognized I/O error

复现步骤?
  1. 在 Mac 系统下,通过 Finder 打开 session 目录,会自动生成 .DS_Store 文件
  2. 在命令行下执行 kimi -c 试图续接上一次会话时,报错并无法启动:

error: failed to start shell: storage stat failed: unrecognized I/O error

期望的行为是什么?

kimi -c 可用,忽略 session 目录下的异常文件

补充信息

No response

Contribution
  • 我愿意自己提交修复此 bug 的 PR(请先等待维护者在本 issue 中批准)

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

Reproduce the failure on macOS by opening a session directory in Finder so it contains .DS_Store, then run kimi -c and trace where session storage reports the stat error. Done means kimi -c resumes the previous session while ignoring the anomalous file.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.