refactor(anthropic): fix N+1 thinking message storage issue (#7958)

Signed-off-by: Rabi Mishra <mishra.rabi@gmail.com>
This commit is contained in:
Rabi Mishra
2026-03-20 20:24:23 +05:30
committed by GitHub
parent 4ed475c220
commit d2576001fe
2 changed files with 217 additions and 105 deletions
+3
View File
@@ -280,6 +280,9 @@ pub fn render_message_streaming(
for content in &message.content {
if !matches!(content, MessageContent::Thinking(_)) {
if *thinking_header_shown {
println!();
}
*thinking_header_shown = false;
}