Change summary
crates/agent2/src/agent2.rs | 1 +
crates/agent2/src/thread_element.rs | 13 +++++++------
crates/agent_ui/src/agent_panel.rs | 3 +--
3 files changed, 9 insertions(+), 8 deletions(-)
Detailed changes
@@ -228,6 +228,7 @@ impl Thread {
{
// todo! merge with last chunk if same type
chunks.push(chunk);
+ cx.notify();
return;
}
}
@@ -140,11 +140,10 @@ impl Render for ThreadElement {
let focus_handle = self.message_editor.focus_handle(cx);
v_flex()
- .p_2()
.key_context("MessageEditor")
.on_action(cx.listener(Self::chat))
.child(
- v_flex().h_full().gap_1().children(
+ v_flex().p_2().h_full().gap_1().children(
self.thread
.read(cx)
.entries()
@@ -153,10 +152,12 @@ impl Render for ThreadElement {
),
)
.when(self.send_task.is_some(), |this| {
- this.my_1().child(
- Label::new("Generating...")
- .color(Color::Muted)
- .size(LabelSize::Small),
+ this.child(
+ div().p_2().child(
+ Label::new("Generating...")
+ .color(Color::Muted)
+ .size(LabelSize::Small),
+ ),
)
})
.child(
@@ -897,8 +897,7 @@ impl AgentPanel {
.next()
.map(|worktree| worktree.read(cx).abs_path())
else {
- // todo! handle no project
- return;
+ todo!();
};
let cli_path =