Finish long-running agent parity
This commit is contained in:
@@ -56,21 +56,22 @@ impl App {
|
||||
);
|
||||
} else {
|
||||
let markdown_style = markdown::Style::from_palette(app_theme().palette());
|
||||
if let Some(summary) = self.compaction_summary() {
|
||||
messages = messages.push(
|
||||
container(
|
||||
column![
|
||||
text("Compacted task state").size(11),
|
||||
text(summary).size(13).color(muted_text()),
|
||||
]
|
||||
.spacing(5),
|
||||
)
|
||||
.padding(14)
|
||||
.width(Length::Fill)
|
||||
.style(preference_group_style),
|
||||
);
|
||||
}
|
||||
for (index, message) in self.conversation.iter().enumerate() {
|
||||
if message.compaction {
|
||||
messages = messages.push(
|
||||
container(
|
||||
column![
|
||||
text("Context compacted").size(11),
|
||||
text(&message.content).size(13).color(muted_text()),
|
||||
]
|
||||
.spacing(5),
|
||||
)
|
||||
.padding(14)
|
||||
.width(Length::Fill)
|
||||
.style(preference_group_style),
|
||||
);
|
||||
continue;
|
||||
}
|
||||
if message.system {
|
||||
continue;
|
||||
}
|
||||
@@ -149,6 +150,14 @@ impl App {
|
||||
.style(move |theme| chat_message_style(theme, user)),
|
||||
);
|
||||
}
|
||||
if let Some(activity) = &self.activity {
|
||||
messages = messages.push(
|
||||
container(text(activity).size(13).color(muted_text()))
|
||||
.padding(12)
|
||||
.width(Length::Fill)
|
||||
.style(preference_group_style),
|
||||
);
|
||||
}
|
||||
}
|
||||
// Tab walks every focusable widget of every window, so a composer
|
||||
// left behind an open dialog would take a turn in that dialog's
|
||||
|
||||
Reference in New Issue
Block a user