From b4572eec232a20142650627ee4bee765fb480ea5 Mon Sep 17 00:00:00 2001 From: Richard Feldman Date: Thu, 10 Apr 2025 16:36:48 -0400 Subject: [PATCH] wip --- crates/agent/src/thread.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/agent/src/thread.rs b/crates/agent/src/thread.rs index ecc6a037b6..625508ef43 100644 --- a/crates/agent/src/thread.rs +++ b/crates/agent/src/thread.rs @@ -1236,7 +1236,6 @@ impl Thread { thread.cancel_last_completion(cx); } } - // Don't save buffers here - we'll save them after we know streaming is complete cx.emit(ThreadEvent::DoneStreaming); if let Ok(initial_usage) = initial_token_usage { @@ -1502,6 +1501,7 @@ impl Thread { // For create_file tool, replace the output with the assistant's message content if tool_name.as_ref() == "create_file" && output.is_ok() { if let Some(content) = last_assistant_message_content { + dbg!(&content); output = Ok(content); } }