Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
agent_panel: Allow dismissing the worktree error callout (#53375)
Danilo Leala2cf71d09e65
diff --git a/crates/agent_ui/src/agent_panel.rs b/crates/agent_ui/src/agent_panel.rsindex 305d4026108..eba76d2a59f 100644--- a/crates/agent_ui/src/agent_panel.rs+++ b/crates/agent_ui/src/agent_panel.rs@@ -4119,9 +4119,20 @@ impl AgentPanel {),WorktreeCreationStatus::Error(message) => Some(Callout::new()- .icon(IconName::Warning)- .severity(Severity::Warning)- .title(message.clone())+ .icon(IconName::XCircleFilled)+ .severity(Severity::Error)+ .title("Worktree Creation Error")+ .description(message.clone())+ .border_position(ui::BorderPosition::Bottom)+ .dismiss_action(+ IconButton::new("dismiss-worktree-error", IconName::Close)+ .icon_size(IconSize::Small)+ .tooltip(Tooltip::text("Dismiss"))+ .on_click(cx.listener(|this, _, _, cx| {+ this.worktree_creation_status = None;+ cx.notify();+ })),+ ).into_any_element(),),}