Files
zed/crates/gpui_platform
Kirill Bulatov e463c5ab74 Fix focus cleanup stalls during conversation restoration (#65177)
Noticed hangs when opening certain agent threads, hang sample: [Sample
of Zed
Nightly.txt](https://github.com/user-attachments/files/33056833/Sample.of.Zed.Nightly.txt)

Focus cleanup scanned the entire handle registry before each app effect,
amplifying work while restoring large conversations. Queue final handle
drops instead and process only those IDs at the existing cleanup
boundary, preserving blur and pending-input behavior.

Recheck subagent registration after loading to avoid duplicate views and
subscriptions from concurrent loads.

Add targeted regression coverage and a focus-cleanup benchmark.

Release Notes:

- Fixed threads with subagents restoration causing hangs
- [GPUI] Improved focus cleanup performance when many focus handles are
retained or released
2026-10-14 17:42:31 +00:00
..