[BUG] Claude Code on the web: file diff panel misses deletes and renames

Resolved 💬 2 comments Opened Apr 24, 2026 by mikaelh Closed Apr 24, 2026

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

  1. Start a cloud session on a feature branch.
  2. Use the Write tool to create [docs/test.md] → appears in diff panel (✅).
  3. git add + git commit + git push, then git reset --hard HEAD~1 + git push --force-with-lease.
  4. 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. (❌)
  5. Create [docs/test2.md] via Write tool → appears (✅).
  6. rm docs/test2.md → panel still shows it (❌).
  7. Rewrite [docs/test2.md] via Write tool → panel updates content (✅).
  8. 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).

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗