Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
acp: Load agent panel even if serialized config is bogus (#37134)
Conrad Irwine5cea54cbbdb
diff --git a/crates/agent_ui/src/agent_panel.rs b/crates/agent_ui/src/agent_panel.rsindex 232311c5b02..3eb171054a2 100644--- a/crates/agent_ui/src/agent_panel.rs+++ b/crates/agent_ui/src/agent_panel.rs@@ -86,7 +86,7 @@ use zed_actions::{const AGENT_PANEL_KEY: &str = "agent_panel";-#[derive(Serialize, Deserialize)]+#[derive(Serialize, Deserialize, Debug)]struct SerializedAgentPanel {width: Option<Pixels>,selected_agent: Option<AgentType>,@@ -592,7 +592,7 @@ impl AgentPanel {.log_err().flatten(){- Some(serde_json::from_str::<SerializedAgentPanel>(&panel)?)+ serde_json::from_str::<SerializedAgentPanel>(&panel).log_err()} else {None};