Files
zed/crates/agent
Kirill Bulatov e4fa164225 Keep FIFOs in a project from stalling the scanner and git jobs (#67356)
A FIFO named `.git` in a project made the worktree scanner block forever
in open(2) while it held its state lock.
Everything waiting on the scanner hung with it: agent file tools,
project search and file opens.

Zed now checks the file type before reads that can stall shared state,
and treats a FIFO there as unreadable:
- the worktree scanner: the `.git` file and `commondir` of every
repository it finds, `.gitignore` and `info/exclude`;
- project settings files, which load as one batch;
- `MERGE_MSG`, the commit template and a linked worktree's `.git` file,
read on a repository's git job queue;
- the agent's rules files and project skills, which build the project
context of every agent thread.

#67426 already added a regular-file check for `objects/info/alternates`
and for the `.git` file and `commondir` reads of
`discover_confirmed_root_repo_metadata`.

Files that the user or the agent opens directly keep the current
behaviour and may wait for a writer, because tools such as 1Password
serve `.env` files as named pipes.
On the git job queue, files that git itself blocks on, such as
`shallow`, get no extra check.

The Cargo registry permalink fallback read `.cargo_vcs_info.json` and
`Cargo.toml` with `std::fs` on the main thread.
It now reads them through `Fs` on a background thread, and in remote
projects it returns no permalink instead of reading the local disk at
the remote path.

Release Notes:

- Fixed certain FS entries stalling agent threads and git scans
2026-11-26 10:56:03 +00:00
..
2026-11-24 12:02:03 +00:00