mirror of
https://github.com/block/goose.git
synced 2026-07-17 12:56:20 +02:00
fix: emit user-facing message on compaction failure (#7975)
Signed-off-by: Rabi Mishra <mishra.rabi@gmail.com>
This commit is contained in:
@@ -1533,6 +1533,11 @@ impl Agent {
|
||||
Err(e) => {
|
||||
crate::posthog::emit_error("compaction_failed", &e.to_string());
|
||||
error!("Compaction failed: {}", e);
|
||||
yield AgentEvent::Message(
|
||||
Message::assistant().with_text(
|
||||
format!("Ran into this error trying to compact: {e}.\n\nPlease try again or create a new session")
|
||||
)
|
||||
);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user