Replace compaction notifications with system notifications (#5218)
This commit is contained in:
@@ -369,8 +369,8 @@ pub fn message_to_markdown(message: &Message, export_all_content: bool) -> Strin
|
||||
md.push_str("**Thinking:**\n");
|
||||
md.push_str("> *Thinking was redacted*\n\n");
|
||||
}
|
||||
MessageContent::ConversationCompacted(summarization) => {
|
||||
md.push_str(&format!("*{}*\n\n", summarization.msg));
|
||||
MessageContent::SystemNotification(notification) => {
|
||||
md.push_str(&format!("*{}*\n\n", notification.msg));
|
||||
}
|
||||
_ => {
|
||||
md.push_str(
|
||||
|
||||
@@ -185,8 +185,18 @@ pub fn render_message(message: &Message, debug: bool) {
|
||||
println!("\n{}", style("Thinking:").dim().italic());
|
||||
print_markdown("Thinking was redacted", theme);
|
||||
}
|
||||
MessageContent::ConversationCompacted(summarization) => {
|
||||
println!("\n{}", style(&summarization.msg).yellow());
|
||||
MessageContent::SystemNotification(notification) => {
|
||||
use goose::conversation::message::SystemNotificationType;
|
||||
|
||||
match notification.notification_type {
|
||||
SystemNotificationType::ThinkingMessage => {
|
||||
show_thinking();
|
||||
set_thinking_message(¬ification.msg);
|
||||
}
|
||||
SystemNotificationType::InlineMessage => {
|
||||
println!("\n{}", style(¬ification.msg).yellow());
|
||||
}
|
||||
}
|
||||
}
|
||||
_ => {
|
||||
println!("WARNING: Message content type could not be rendered");
|
||||
|
||||
Reference in New Issue
Block a user