Summarize old tool calls (#6119)

Co-authored-by: Douwe Osinga <douwe@squareup.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Douwe Osinga
2026-01-28 11:35:08 -05:00
committed by GitHub
parent 18d6db47cf
commit 9e31cfd7f8
5 changed files with 396 additions and 17 deletions
+2 -1
View File
@@ -186,7 +186,8 @@ pub async fn handle_term_log(command: String) -> Result<()> {
chrono::Utc::now().timestamp_millis(),
vec![MessageContent::text(command)],
)
.with_metadata(MessageMetadata::user_only());
.with_metadata(MessageMetadata::user_only())
.with_generated_id();
let session_manager = SessionManager::instance();
session_manager.add_message(&session_id, &message).await?;