Desktop preview pane serves stale HTML — doesn't refresh on Reload after the file changes
Resolved 💬 1 comment Opened Jun 4, 2026 by afram123 Closed Jul 10, 2026
What happened
In the Claude Code desktop app, the Launch preview pane renders a static local .html file once and then serves a stale snapshot. After the underlying file is changed on disk, pressing the Reload button in the preview pane does not update the rendered content — it keeps showing the original version. The file on disk was confirmed updated (both <title> and body changed). Only fully closing and re-launching the preview — or pointing the preview at a brand-new filename — shows the new content.
Steps to reproduce
- Create
review.htmland open it via Launch preview in the desktop app — it renders correctly. - Modify
review.htmlon disk (e.g., change the<title>and replace the page body). - Click the Reload/refresh control in the preview pane.
- Expected: the preview reflects the updated file.
- Actual: the preview still shows the original content. Confirmed by re-reading the file that disk content was updated.
Notes
- No dev server is involved — this is a plain static
.html. - Reload does not bust the cache; it behaves as if the webview cached the initial parse/render and the reload re-serves the cached resource (looks like missing no-cache headers / no cache-busting on reload).
- Workaround: open the file directly in an external browser, or write to a new filename each time (a never-before-launched path always renders fresh).
Impact
Iterating on generated HTML (e.g., an image-review/approval page that Claude regenerates) is confusing — it looks like edits didn't save, when they actually did.
Environment
- Claude Code: 2.1.162
- App: Claude Code desktop
- OS: Windows 11, ARM64 (Snapdragon X Plus)
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗