anthropics / anthropics/claude-code

[BUG] Desktop Code tab: open editor does not reload files changed by Claude

Open
#95,438 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area:desktop bug platform:macos
Dominant language
TypeScript
Stars
147k
Forks
24k
PR merge metrics
PR metrics pending

Description

Summary

In the Claude desktop app (Code tab), when Claude modifies a file that is currently open in the inline editor, the editor keeps showing the old contents. The only way to see the new version is to close the file tab and reopen it.

Environment

  • Claude Code: 2.1.269
  • Surface: Claude desktop app, Code tab (inline editor)
  • OS: macOS 26.5 (Apple Silicon)

Steps to reproduce

  1. Open a project in the desktop app's Code tab.
  2. Open a source file in the inline editor so its contents are visible.
  3. Ask Claude to modify that same file.
  4. Wait for Claude to report the change as complete, and confirm on disk (e.g. cat the file in a terminal) that the new contents are written.
  5. Look at the still-open editor tab.

Expected

The editor reflects the file as it now exists on disk, or shows some indication that the file changed underneath it.

Actual

The editor continues to display the pre-change contents indefinitely. Closing the tab and reopening the file shows the correct, updated contents, so the write itself is fine — only the open buffer is stale.

Notes

  • Reproduced repeatedly across several files in one session (Python sources and test files).
  • In the session where this was observed, every file write went through shell redirection (cat > file <<'EOF') via the Bash tool rather than the Write/Edit tools. I have not verified whether Write/Edit-based changes refresh correctly, so it is an open question whether this affects all file modifications or only those made through the shell. If it is shell-only, the underlying issue may be that the editor listens for tool-level edit events rather than watching the filesystem.
  • Practical impact: while following along with a session, the editor silently shows outdated code. If the user has their own unsaved edits in that buffer, there is also a risk of overwriting or losing changes without any conflict warning.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the stale-buffer behavior in the Claude desktop app's Code tab with a Python source or test file, using shell redirection through the Bash tool. Compare this with changes made through Write/Edit and trace the inline editor's file-change handling. Done means an open file refreshes or clearly warns about on-disk changes without losing unsaved edits.

Written by the indexing model from the issue text.

Assessment

Tech stack
bash, python
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.