agent: Add message editor UI improvements (#29594)

Probably the most relevant change in this PR is the commented out (still
pending) line number diffs. Aside from this, commits are pretty
descriptive.

Release Notes:

- N/A
This commit is contained in:
Danilo Leal 2025-04-29 09:38:44 -03:00 committed by GitHub
parent 9b37206147
commit 7e25460708
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 47 additions and 26 deletions

View file

@ -1514,8 +1514,6 @@ impl ActiveThread {
let show_feedback = thread.is_turn_end(ix);
let needs_confirmation = tool_uses.iter().any(|tool_use| tool_use.needs_confirmation);
let generating_label = (is_generating && is_last_message)
.then(|| AnimatedLabel::new("Generating").size(LabelSize::Small));
@ -1920,7 +1918,7 @@ impl ActiveThread {
parent.child(self.render_rules_item(cx))
})
.child(styled_message)
.when(!needs_confirmation && generating_label.is_some(), |this| {
.when(generating_label.is_some(), |this| {
this.child(
h_flex()
.h_8()