Skip to content

Commit 5277b3d

Browse files
committed
add summary in /context
1 parent f413816 commit 5277b3d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

crates/q_chat/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1841,6 +1841,9 @@ impl ChatContext {
18411841
style::Print(format!("\nTotal: ~{} tokens\n\n", total_tokens)),
18421842
)?;
18431843

1844+
self.compact_history(Some(tool_uses.clone()), pending_tool_index, None, true, false)
1845+
.await?;
1846+
18441847
execute!(self.output, style::Print("\n"))?;
18451848
}
18461849
},

0 commit comments

Comments
 (0)