Skip to content

List of files in workspace seems to not load or get stuck #62633

Description

@afgomez

Reproduction steps

Looks like the workspace sometimes cannot list all files in the directory.

I haven't found yet a good way to reproduce this consistently. The best I could do is get a big repo and run pnpm install. Then sometimes it blips.

In this video, I'm running pnpm install in the turborepo monorepo. Around the 0:11 and 0:15 second marks you can see the workspace removing all files and adding them again.

sidebar-shenanigans-pnpm-i.mov

In this other video, the same thing happens after the pnpm install, around the 0:03 second mark

sidebar-shenanigans-2.mov

I do have a private project in which the issue is more severe, as in: it takes seconds for the worktree to load. While the worktree is in that state, the file picker cannot select any files. (Might be related to #62431)

Current vs. Expected behavior

See the videos above for current behaviour.

The expected behaviour is that this doesn't happen. The worktree stays stable.

Zed version and system specs

Zed: v1.16.0+preview.338.99b8cea6b36fe2fe40cc95e06bba335d52a3238a (Zed Preview)
OS: macOS 26.6.1
Memory: 48 GiB
Architecture: aarch64

Attach Zed log file

These are not exactly from when the video was recorded, but might be relevant nonetheless

Zed.log
[...same for 200+ lines]
2026-08-14T15:51:32+02:00 WARN  [fs::fs_watcher] filesystem watcher lost sync for many files, not logging more
2026-08-14T15:51:32+02:00 WARN  [fs::fs_watcher] filesystem watcher lost sync for many files, not logging more
2026-08-14T15:51:32+02:00 WARN  [fs::fs_watcher] filesystem watcher lost sync for many files, not logging more
2026-08-14T15:51:32+02:00 WARN  [fs::fs_watcher] filesystem watcher lost sync for Native; scheduling rescans for 16 registrations
2026-08-14T15:51:32+02:00 WARN  [fs::fs_watcher] filesystem watcher lost sync for many files, not logging more
2026-08-14T15:51:32+02:00 WARN  [fs::fs_watcher] filesystem watcher lost sync for many files, not logging more
2026-08-14T15:51:32+02:00 WARN  [fs::fs_watcher] filesystem watcher lost sync for many files, not logging more
2026-08-14T15:51:32+02:00 WARN  [fs::fs_watcher] filesystem watcher lost sync for many files, not logging more
2026-08-14T15:51:32+02:00 WARN  [fs::fs_watcher] filesystem watcher lost sync for many files, not logging more
2026-08-14T15:51:32+02:00 WARN  [fs::fs_watcher] filesystem watcher lost sync for many files, not logging more
2026-08-14T15:51:32+02:00 WARN  [fs::fs_watcher] filesystem watcher lost sync for many files, not logging more
2026-08-14T15:51:32+02:00 WARN  [fs::fs_watcher] filesystem watcher lost sync for many files, not logging more
2026-08-14T15:51:32+02:00 WARN  [fs::fs_watcher] filesystem watcher lost sync for many files, not logging more
2026-08-14T15:51:32+02:00 WARN  [fs::fs_watcher] filesystem watcher lost sync for many files, not logging more
2026-08-14T15:51:32+02:00 WARN  [fs::fs_watcher] filesystem watcher lost sync for many files, not logging more
2026-08-14T15:51:32+02:00 WARN  [fs::fs_watcher] filesystem watcher lost sync for many files, not logging more
2026-08-14T15:51:32+02:00 WARN  [fs::fs_watcher] filesystem watcher lost sync for many files, not logging more
2026-08-14T15:51:32+02:00 WARN  [fs::fs_watcher] filesystem watcher lost sync for many files, not logging more
2026-08-14T15:51:32+02:00 WARN  [fs::fs_watcher] filesystem watcher lost sync for many files, not logging more
2026-08-14T15:51:32+02:00 WARN  [fs::fs_watcher] filesystem watcher lost sync for many files, not logging more
2026-08-14T15:51:34+02:00 INFO  [project::prettier_store] Prettier config file ".editorconfig" changed, reloading prettier instances for worktree 6
2026-08-14T15:51:34+02:00 INFO  [dev_container::devcontainer_api] find_configs_in_snapshot: Found 1 configurations
2026-08-14T15:51:34+02:00 WARN  [fs::fs_watcher] filesystem watcher lost sync for Native; scheduling rescans for 16 registrations
2026-08-14T15:51:34+02:00 WARN  [fs::fs_watcher] filesystem watcher lost sync for many files, not logging more
2026-08-14T15:51:34+02:00 WARN  [fs::fs_watcher] filesystem watcher lost sync for many files, not logging more
2026-08-14T15:51:34+02:00 WARN  [fs::fs_watcher] filesystem watcher lost sync for many files, not logging more
2026-08-14T15:51:34+02:00 WARN  [fs::fs_watcher] filesystem watcher lost sync for many files, not logging more
2026-08-14T15:51:34+02:00 WARN  [fs::fs_watcher] filesystem watcher lost sync for many files, not logging more
2026-08-14T15:51:34+02:00 WARN  [fs::fs_watcher] filesystem watcher lost sync for many files, not logging more
2026-08-14T15:51:34+02:00 WARN  [fs::fs_watcher] filesystem watcher lost sync for many files, not logging more
2026-08-14T15:51:34+02:00 WARN  [fs::fs_watcher] filesystem watcher lost sync for many files, not logging more
2026-08-14T15:51:34+02:00 WARN  [fs::fs_watcher] filesystem watcher lost sync for many files, not logging more
2026-08-14T15:51:34+02:00 WARN  [fs::fs_watcher] filesystem watcher lost sync for many files, not logging more
2026-08-14T15:51:34+02:00 WARN  [fs::fs_watcher] filesystem watcher lost sync for many files, not logging more
2026-08-14T15:51:34+02:00 WARN  [fs::fs_watcher] filesystem watcher lost sync for many files, not logging more
2026-08-14T15:51:34+02:00 WARN  [fs::fs_watcher] filesystem watcher lost sync for many files, not logging more
2026-08-14T15:51:34+02:00 WARN  [fs::fs_watcher] filesystem watcher lost sync for many files, not logging more
2026-08-14T15:51:34+02:00 WARN  [fs::fs_watcher] filesystem watcher lost sync for many files, not logging more
2026-08-14T15:51:34+02:00 INFO  [zed::reliability::hang_detection::logging] Background hang detected on Unknown:
Tasks(s) that ran too long
261.009542ms         - crates/extension_host/src/wasm_host.rs:580:35

2026-08-14T15:51:34+02:00 INFO  [zed::reliability::hang_detection::logging] Background hang detected on Unknown:
Tasks(s) that ran too long
161.559542ms         - crates/session/src/session.rs:89:30

2026-08-14T15:51:34+02:00 INFO  [zed::reliability::hang_detection::logging] Background hang detected on Unknown:
Tasks(s) that ran too long
161.571791ms         - crates/session/src/session.rs:89:30

2026-08-14T15:51:34+02:00 INFO  [zed::reliability::hang_detection::logging] Background hang detected on Unknown:
Tasks(s) that ran too long
161.512084ms         - crates/workspace/src/workspace.rs:7063:26

Relevant Zed settings

settings.json

Relevant Keymap

keymap.json

(for AI issues) Model provider details

No response

If you are using WSL on Windows, what flavor of Linux are you using?

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    community championIssues filed by our amazing community champions! 🫶state:needs triagetriage is not complete: no `area:*` label, or no `severity:*`/`reach:*` for Bugs/Crashes

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions