[BUG] Claude Code on the web: file diff panel misses deletes and renames
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
The "Changes" / diff panel in Claude Code on the web does not reflect file deletions or renames in the working tree. It also does not clear entries for files removed by git reset --hard + force-push. Only file creates and in-place edits propagate.
What Should Happen?
The diff panel should reflect the current working tree exactly. Deletes should disappear. Renames should show the old path gone and the new path added. Commits removed by a force-push should clear from the panel.
Error Messages/Logs
No errors. Silent divergence between the UI panel and actual filesystem/git state.
Steps to Reproduce
- Start a cloud session on a feature branch.
- Use the Write tool to create [docs/test.md] → appears in diff panel (✅).
- git add + git commit + git push, then git reset --hard HEAD~1 + git push --force-with-lease.
- Hard-refresh the UI, try a second browser. Diff panel still shows docs/test.md as added, though the file does not exist locally, on the tracking branch, or on github.com. (❌)
- Create [docs/test2.md] via Write tool → appears (✅).
- rm docs/test2.md → panel still shows it (❌).
- Rewrite [docs/test2.md] via Write tool → panel updates content (✅).
- mv docs/test2.md docs/test3.md → panel still shows test2.md; test3.md never appears (❌).
Verified clean git state during the bug: git status clean, git ls-remote matches origin/main, mcp__github__get_file_contents returns 404 for the "still-shown" path.
Claude Model
Opus
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.119
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
WSL (Windows Subsystem for Linux)
Additional Information
Reproduced across two different browsers → server-side, not client cache.
Reproduced in Claude Code in Web and in Cloud Desktop (Code) (Windows)
The real GitHub repo agrees with the clean local state; only the web UI panel is stale.
Related commit in this repo's history acknowledging a similar UI/diff mismatch: 36f5cfd process(ops): fast-forward local main after push to fix cloud UI diff — suggests the cloud UI has had prior trouble with what it compares against (possibly local main rather than origin/main).
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗