Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
agent_ui_v2: Fix `set_position` not updating the position properly (#44902)
Finn Evers7cd483321b4f
diff --git a/crates/agent_ui_v2/src/agents_panel.rs b/crates/agent_ui_v2/src/agents_panel.rsindex a7afdddda43..254b8d2999d 100644--- a/crates/agent_ui_v2/src/agents_panel.rs+++ b/crates/agent_ui_v2/src/agents_panel.rs@@ -384,8 +384,7 @@ impl Panel for AgentsPanel {update_settings_file(self.fs.clone(), cx, move |settings, _| {settings.agent.get_or_insert_default().agents_panel_dock = Some(match position {DockPosition::Left => settings::DockSide::Left,- DockPosition::Bottom => settings::DockSide::Right,- DockPosition::Right => settings::DockSide::Left,+ DockPosition::Right | DockPosition::Bottom => settings::DockSide::Right,});});self.re_register_utility_pane(window, cx);