zed/crates/collab_ui
Ben Kunkle 671931a092 Fix zoomed panels closing when focus moves within the panel
Panels previously returned a transient child editor's focus handle from
Focusable::focus_handle. Containment checks (Zen-mode auto-close,
toggle_panel_focus, dock focus subscriptions) and focus-the-panel
callsites both used that handle, so focus moving to another element
inside the panel (tool call output, thread title editor, a non-active
terminal pane) looked like the panel losing focus and closed the zoomed
panel.

Focusable::focus_handle now always returns a stable handle tracked at
the panel's root and is used for containment checks, while the new
Panel::activation_focus_handle returns what should receive focus when
the panel is activated (filter/commit/message editor) and must be a
focus-tree descendant of the root.

Migrated: AgentPanel (incl. thread views), CollabPanel, GitPanel,
OutlinePanel, TerminalPanel.
2026-07-09 15:40:26 -04:00
..
src Fix zoomed panels closing when focus moves within the panel 2026-07-09 15:40:26 -04:00
Cargo.toml Remove auto watch feature flag (#59619) 2026-06-26 21:13:01 +00:00
LICENSE-GPL chore: Change AGPL-licensed crates to GPL (except for collab) (#4231) 2024-01-24 00:26:58 +01:00