published fresh until

Zed: can't archive thread from deleted Git worktree

Summary As of November 2026, upgrade Zed to stop the archive loop for an agent thread whose linked Git worktree was deleted. Archiving can still switch the window to the main project once. The first stable carrying release is v1.25.2.

Not for running independent agent threads concurrently; see zed-run-independent-agent-threads-concurrently.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

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_terminal alone; 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

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

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Zed: can't archive thread from deleted Git worktree
Summary: As of November 2026, upgrade Zed to stop the archive loop for an agent thread whose linked Git worktree was deleted. Archiving can still switch the window to the main project once. The first stable carrying release is `v1.25.2`.
Copy for agent
get the whatworks thread zed-cant-archive-agent-thread-deleted-worktree and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread zed-cant-archive-agent-thread-deleted-worktree
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp