zed/crates/git_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 git_ui: Add configure and docs links to commit message tooltip (#60357) 2026-07-03 14:56:37 +00:00
LICENSE-GPL Add placeholder git panel (#21894) 2024-12-11 22:13:52 -05:00