[BUG] Race condition? Sometimes files remains unchanged after a task done
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 12/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Active
- Domain
- tooling
Research direction
The report describes intermittent lost writes from Claude Desktop on Windows, with no reproduction steps, no logs and no pointer to any file in this repository. The first step is to establish whether the desktop app's write path is even part of this codebase, then try to reproduce by asking for a file edit and reading the file back from disk while watching the tool result. Until a failing case or a concrete write-path entry point is identified, there is nothing a newcomer can start from.
Written by the indexing model from the issue text.
Description
Preflight Checklist
- I have searched existing issues and this hasn't been reported yet
- This is a single bug report (please file separate reports for different bugs)
- I am using the latest version of Claude Code
What's Wrong?
I've installed Claude Desktop on my Windows machine a few days ago.
Quite often, when a task is performed, Claude says it changed a file, but the file is not actually changed.
For example a recent task: it changed several files, except the one it should have changed too.
When I point this to Claude, it says that it was reported to him that write to file was successful, but it was not actually.
An example of Claude answer:
You were right: my first write didn't take. It reported success but saved the unchanged file. I've written it again and checked the file on your disk this time. file.cpp now has the fix (20,463 bytes instead of 20,036), with the redirect branch using m_redirectedSource.
Another one:
In both cases, a write the tool reported as successful left behind an older copy of my own file. I also told you the changes were in place without reading them back from your disk.
From now on I'll read every file back from your disk after writing it before telling you it's done.
The workaround I'm using now is that I ask Claude to verify if it actually written all the changes. After such a verify it actually writes all the changes. A few weeks ago I was using Codex and it never had such an issue.
What Should Happen?
Changes are written actually.
Error Messages/Logs
Steps to Reproduce
Sorry, I don't have steps to reproduce. It just happens from time to time.
Claude Model
Opus
Is this a regression?
I don't know
Last Working Version
No response
Claude Code Version
I can't run such a command. I'm using Claude Desktop. I'm new to this app. I don't see Claude Code tab, only Chat and Cowork tabs are shown. Maybe something is wrong with my setup? I use Cowork tab to perform my tasks.
Platform
Other
Operating System
Windows
Terminal/Shell
Non-interactive/CI environment
Additional Information
I'm using Claude Desktop (windows app)
- Dominant language
- TypeScript
- Stars
- 156k
- Forks
- 25k
- Avg merge
- 16h 19m
- Merged PRs (30d)
- 5
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- No pull request template
- No contributing 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.
More from anthropics/claude-code
-
area:vscode bug has repro platform:vscode platform:windows
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
anthropics/claude-code#111416 ·
-
area:plugins area:tui bug platform:macos
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
anthropics/claude-code#111195 ·
-
area:docs area:security documentation enhancement platform:macos
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
anthropics/claude-code#111180 ·
-
area:ide enhancement platform:macos platform:vscode
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
anthropics/claude-code#111172 ·
-
area:mcp bug has repro platform:linux platform:wsl
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
anthropics/claude-code#111077 ·
All issues in anthropics/claude-code
Similar issues
-
area: cli beginner beginner friendly bug community difficulty: easy dx easy first-timers-only good first issue hacktoberfest help wanted low-hanging fruit mentor available priority: P3 severity: low tech: typescript testing up-for-grabs ux
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
backlog-skill cat:docs documentation effort:s ready-for-agent sev:low
Difficulty 1/5 Under an hour Newbie friendliness 82/100
LucasSantana-Dev/Lucky#3284 ·
Maintainers usually reply within 1 day
-
area: backend bug priority: low
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
snapotter-hq/SnapOtter#5194 ·
Maintainers usually reply within 1 day
-
needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
homarr-labs/homarr#7671 ·
Maintainers usually reply within 1 day
-
clawsweeper:needs-maintainer-review clawsweeper:needs-product-decision clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster P3
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
openclaw/openclaw#203385 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day