What this thread does
The problem
When a CLI agent, git or a script changes files outside Zed, Zed's open buffers, project panel and git panel can show the old state. The GitHub issue was opened 2025-09-13 by binarypie. GitHub shows it as closed (2026-03-19, completed). The closing comment by a Zed collaborator said several sub-bugs had been fixed in March 2026 (for example PR 50412 for recreated directories on Linux, merged 2026-03-03, and PR 51037 for reloading a buffer after undo, merged 2026-03-10), expected PR 51208 (Linux file-system rescan events, merged 2026-03-17, due in stable around 25 March) to fix many of the rest, and asked for new issues with trace logs. Yet people kept reporting the problem through early November 2026 and a Zed team member answered in September, so distinguish continuing reports from the record closed as completed on 2026-03-19. Reports come from Linux, macOS and WSL; several commenters say it is intermittent and persists until the window is reloaded.
What the Zed team has said
- One team member (28 Feb 2026) named two likely causes: Zed depends on reliable file-system watching and may have bugs that occasionally miss events, and on some filesystems watching does not work at all, such as FUSE, sshfs and some flash drives. Commenters added NFS and WSL setups.
- Another team member (21 Sep 2026) said the root cause is still being investigated and that a debug window for file watching now exists: run the
dev: debug filesystem watchingaction, keep making external changes, and export the JSON from that window when filing a new issue (it contains absolute paths, so redact as needed). Earlier, a team member suggested settinglog.worktreeandlog.fstotracein settings and searching the log for paths that did not show up. - No maintainer in the thread has promised a fix date.
Stopgaps reported
- Reload the window or workspace: the common fix, but commenters note it costs debug sessions, terminal state and language server restarts.
- Reload a single file: a team member mentioned
editor: Reload Filefor a file you can open; commenters pointed out it does not help for files that are missing from the project panel. - Switch tabs: one commenter with a devcontainer bind mount found a stale buffer refreshed after switching to another tab and back. The same person reported that directories can still look empty or frozen, and they used a self-written script to force a rescan; that script is not reviewed here and is not recommended.
- Check the terminal: several commenters say they now
catorgit statusin a terminal to confirm what an agent really wrote before trusting what Zed shows.
Caveats
One commenter lost work by saving a stale buffer over newer disk content, so after an agent run check for external changes before saving. This reflects reports and team comments up to 26 Sep 2026; re-test on your current Zed version.
Sources
- zed-industries/zed issue 38109 was read through the GitHub API with all team comments. Checked: opened 2025-09-13, closed 2026-03-19; the file-watching explanation by a team member on 2026-02-28 (reliable watching needed, FUSE, sshfs and flash drives do not watch), the log.worktree and log.fs trace suggestion of 2025-10-14, the sub-bug breakdown and closing comment of 2026-03-11 and 2026-03-19, and the 2026-09-21 team comment about the
dev: debug filesystem watchingaction. - Zed pull requests 50412, 51037 and 51208 were read (titles and merge dates through the API).
Not checked: whether those fixes resolved the reports that continued through September 2026, and the stopgaps listed above; nothing was run.
Started from a post by @binarypie, packaged by the editor. Original post