Files
zed/crates
Richard Feldman bf0fcfbbac Preserve archived thread project paths after worktree removal (#53893)
When a thread created in a git worktree is archived, the archive flow
removes the linked worktree from the project. If a subsequent thread
event fires after this (e.g. an async title-generation task completing),
`handle_thread_event` recalculates `worktree_paths` from the project's
current state — which no longer includes the removed worktree — and
overwrites the archived thread's stored paths with empty ones.

This causes restoring the thread to prompt the user to re-associate a
project, instead of restoring it directly.

**Fix:** return early from `handle_thread_event` when the thread is
already archived, so the stored paths are never overwritten.

Release Notes:

- Fixed archived threads in git worktrees losing their project
association.
2026-04-14 15:05:34 -04:00
..
2026-04-05 23:05:35 +01:00
2026-03-27 14:56:46 -07:00
2026-03-11 03:08:39 +00:00
2026-03-30 09:06:59 +00:00
2026-04-14 16:21:28 +02:00
2026-02-26 18:36:50 +01:00
2026-04-09 14:11:55 -04:00
2026-04-14 18:56:29 +00:00