MoonshotAI / MoonshotAI/kimi-cli
Edit/Write tools report success but never write to disk (0.38.0, macOS)
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 11.4k
- Forks
- 1.3k
- Avg merge
- 9h 47m
- Merged PRs (30d)
- 2
Description
Summary
Since 2026-08-25 ~17:00 UTC, both the Edit and Write tools silently no-op in my sessions: they return success ("The file has been updated..." / "File created successfully") but nothing is ever written to disk. 100% reproducible.
Environment
- Kimi Code CLI 0.38.0 (
~/.kimi-code/bin/kimi) - macOS (Apple Silicon),
/bin/bash - Regular user home directory, no sandbox
Repro (Edit)
- Bash tool:
printf 'alpha\n' > /tmp/t.txt - Read tool on
/tmp/t.txt→ showsalpha - Edit tool: old_string
alpha→ new_stringomega→ returns "The file has been updated" - Bash:
cat /tmp/t.txt→ stillalpha;ls -lashows mtime unchanged; Read tool also still showsalpha.
Repro (Write)
- Write tool to a non-existent path → returns "File created successfully"
- File does not exist afterwards (
cat: No such file or directory).
What still works
- Read tool (shows true disk content)
- Bash tool file writes (heredoc, printf)
- Earlier the same day (before a context compaction in the same session),
Writegenuinely worked — a 13 KB markdown file was created and re-verified from disk.
Scope / persistence
- Affects paths inside and outside the working directory; plain UTF-8 LF text files.
- Persists across
kimisession restarts and a full macOS reboot (session resumed). - Nothing relevant in
~/.kimi-code/logs/kimi-code.logat INFO level around the tool calls. - Possibly related scheduler issue observed in the same period: a deleted cron job kept firing 4 more times after deletion (
CronListempty,CronDeletereported "no cron job with id"). This stopped after a CLI restart.
Impact
Any agentic edit workflow silently loses work: the model believes edits landed and proceeds on false state. In my case 7 "successful" edits across 4 files were lost before disk verification caught it.
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 reproducing the failure with the Edit and Write tools, then verify results using Read, Bash, and direct disk checks. Inspect the tool execution path and ~/.kimi-code/logs/kimi-code.log around the calls, comparing it with the working Bash writes. Done means both tools persist changes and newly created files across session restarts.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100