Diff view does not refresh after a follow-up Edit to the same file
Open 💬 0 comments Opened Jul 9, 2026 by LloydPerna
Environment: Claude Code Windows app.
Repro:
- Claude Code writes a new file (e.g. via the Write tool) - a 205-line SQL script.
- In the same session, Claude Code makes a follow-up Edit to that same file (a multi-line find/replace changing
bit NOT NULL DEFAULT 0tosmallint NOT NULL DEFAULT ((0))on 19 lines). - The file's diff view inside Claude Code still shows the pre-edit content from step 1 (
bit), even though reading the file directly confirms the edit was applied on disk (smallint).
Expected: Claude Code's diff view reflects the current on-disk content after a subsequent edit in the same session.
Actual: the diff view is stale and still shows the file's state from before the second edit, which makes it look like the requested change was not applied when it actually was.