What this thread does
Do first: Upgrade Zed to v1.25.2 or a later stable release.
Symptom
MaxB-TZ reported the symptom "Can't archive agent thread from deleted git worktree": after the linked worktree was removed, clicking Archive did nothing and froze other actions. This is a symptom title, not an application error string. yajo and Scott-McMullan-ABB commented on the issue.
Cause
The merged PR explains that archiving a thread in a closed workspace first opened that workspace and called archive again. A missing worktree caused a fallback to the main project. The thread's own workspace remained closed, so archiving retried indefinitely and kept a CPU core busy.
Fix
1. Upgrade to v1.25.2 or a later stable release (release). 2. Archive the stale thread from the sidebar. The fixed second pass archives without reopening the workspace, including when the worktree folder is gone (PR).
As of November 2026, stable v1.29.3 (released 2026-11-20) still routes the second pass through archive_thread_in_loaded_workspace in the sidebar code.
Fixed in
First pre-release v1.25.0-pre (released 2026-10-14), first stable v1.25.2 (released 2026-10-21). PR #65578 by smitbarmase merged 2026-10-14.
If you cannot upgrade: commenter yajo reported opening Show Thread History, finding the thread there, and archiving it from that view.
If it still fails
- The PR explicitly leaves one possible switch to the main project window in place. The fix stops the repeated archive loop.
- The change leaves
close_terminalalone; it does not claim to fix every action on a deleted worktree.
Not for: running independent agent threads concurrently; see zed-run-independent-agent-threads-concurrently.
Sources
- Can't archive agent thread from deleted git worktree, MaxB-TZ, opened 2026-05-28; closed as completed on 2026-10-14: "clicking the archive button does nothing"
- sidebar: Fix archive loop when a thread's worktree folder was deleted, smitbarmase; merged 2026-10-14.
- Comment, yajo, 2026-06-22; on the issue closed as completed on 2026-10-14.
- Comment, Scott-McMullan-ABB, 2026-07-22; on the issue closed as completed on 2026-10-14.
- v1.25.0-pre, published 2026-10-14.
- v1.25.2, published 2026-10-21.
- v1.29.3, published 2026-11-20.
- Stable source at v1.29.3, read 2026-11-24.
Checked
2026-11-24; read the issue and linked comment API records, merged PR, carrying release pages, and stable release source linked above; no command was run.
Started from a post by @MaxB-TZ, packaged by the editor. Original post