From 73ee8fa038377d28f041fe5ded492d5fcd46b044 Mon Sep 17 00:00:00 2001 From: Chara Date: Thu, 3 Sep 2026 13:24:32 +0000 Subject: [PATCH] agent_ui: Wrap long `ask_user` options (#63656) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # Objective Fixes #62955 Long `ask_user` option labels are currently truncated with an ellipsis, which can hide part of the response text. ## Solution Remove truncation from the shared elicitation option label so it uses the label's default multiline wrapping. This affects both single- and multi-select options without changing selection behavior. ## Testing - `cargo fmt --all -- --check` - `cargo test -p agent_ui -- --nocapture` — 429 passed, 0 failed - `cargo build -j 2 -p zed --bin zed` - Manually reproduced the issue using a long `ask_user` option label. - Verified that the complete label wraps without an ellipsis at wide and narrow panel widths. --- Release Notes: - Fixed long `ask_user` options being truncated instead of wrapping. --- crates/agent_ui/src/conversation_view/elicitation.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/agent_ui/src/conversation_view/elicitation.rs b/crates/agent_ui/src/conversation_view/elicitation.rs index 6260d46893..4efb8f8b38 100644 --- a/crates/agent_ui/src/conversation_view/elicitation.rs +++ b/crates/agent_ui/src/conversation_view/elicitation.rs @@ -1823,7 +1823,7 @@ impl<'a> ElicitationCard<'a> { .min_w_0() .flex_1() .gap_0p5() - .child(Label::new(option.label).size(LabelSize::Small).truncate()) + .child(Label::new(option.label).size(LabelSize::Small)) .when_some(option.description, |this, description| { this.child( Label::new(description)