diff --git a/src/core/bot/mod.rs b/src/core/bot/mod.rs index 834be19b..4861a490 100644 --- a/src/core/bot/mod.rs +++ b/src/core/bot/mod.rs @@ -883,8 +883,8 @@ impl BotOrchestrator { // Check if this chunk is an internal event (thinking/thinking_clear) let is_internal_signal = if chunk.trim().starts_with("{\"type\"") { - if let Ok(v) = serde_json::from_str::(&chunk) { - let t = v.get("type").and_then(|t| t.as_str()).unwrap_or_default(); + if let Ok(v) = serde_json::from_str::(&chunk) { + let t = v.get("type").and_then(|t: &serde_json::Value| t.as_str()).unwrap_or_default(); t == "thinking" || t == "thinking_clear" } else { false } } else { false };