MoonshotAI / MoonshotAI/kimi-code
[web] Write/Edit 工具运行时看不到文件操作状态
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 7.5k
- Forks
- 1.2k
- Avg merge
- 11h 53m
- Merged PRs (30d)
- 350
Description
[web] Write/Edit 工具运行时看不到文件操作状态
问题描述
在 apps/kimi-web 里让 AI 创建或编辑文件时,界面底部只会显示模型的 thinking 状态,用户不知道当前正在操作哪个文件。
创建文件(Write)时这个问题最明显:整个写入过程中看不到 Write 工具卡片,等文件写完后才会突然跳出 Wrote xxx bytes to xxx 的结果,中间像是被跳过了一样。
编辑文件(Edit)稍微好一点。因为参数里有 old_string / new_string,前端可以提前算出 +N −M 的差异徽标,但运行期间同样没有 Editing xxx… 这样的实时状态文本。
复现步骤
- 启动
apps/kimi-web并连接工作区。 - 测试两个场景:
- 创建文件:发送“用 Python 写一个命令行猜数字游戏。”
- 编辑文件:发送“把 src/game.py 里的
print改成logger.info。”
- 观察界面:
- 只能看到模型思考文本和底部
thinking状态条; - 创建文件时看不到任何
Write工具卡片; - 编辑文件时
Edit卡片头部只有文件路径 + 脉冲圆点,没有运行状态文本; - 没有进度条、没有当前文件名、没有 Saving 等中间状态。
- 只能看到模型思考文本和底部
- 文件操作完成后,结果文本或已完成状态的工具卡片突然出现,中间看不到“运行中”的过程。
实际行为
- 底部 composer 状态栏只显示模型级别的
thinking。 - Write(创建文件):运行中的工具卡片不会即时出现;完成后才突然显示结果,例如
Wrote 1234 bytes to src/game.py。 - Edit(编辑文件):工具卡片可能出现,但运行期间只显示文件路径 + 脉冲圆点,没有
Editing xxx…状态文本。 - 工具卡片被折叠时只显示 “N tools · running”,需要手动展开才能看到具体文件。
EditTool.vue的详情区域在运行期间只显示Waiting for output…。- 文件操作完成后,状态从“无/运行中”直接跳到“完成绿勾”,没有中间过渡。
期望行为
AI 执行 Write/Edit 工具期间,界面应明确显示当前正在操作的文件路径和阶段状态,而不是只在完成后才出现结果。
环境信息
- 版本:
kimi-code-main源码(2026-07-06) - 平台:web(
apps/kimi-web) - 浏览器:Chrome / Edge
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running apps/kimi-web and reproducing both the Write and Edit scenarios described in the issue. Inspect EditTool.vue and the surrounding tool-card rendering to trace why running file operations are not visible or show only “Waiting for output…”. Done means Write and Edit display the current file and an explicit running-stage status before completion.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100