diff --git a/crates/hx-ai/src/claude_cli.rs b/crates/hx-ai/src/claude_cli.rs index a455959..c299312 100644 --- a/crates/hx-ai/src/claude_cli.rs +++ b/crates/hx-ai/src/claude_cli.rs @@ -142,6 +142,10 @@ impl Provider for ClaudeCli { "stream-json", "--verbose", "--include-partial-messages", + // print mode defaults to display "omitted" (empty thinking text) on new models + // ponytail: hidden flag; an older claude that rejects it needs a version probe + "--thinking-display", + "summarized", "--model", &req.model, ]); @@ -199,6 +203,10 @@ impl Provider for ClaudeCli { } Some("thinking_delta") => { let t = e["delta"]["thinking"].as_str().unwrap_or_default(); + // omitted thinking: claude sends empty deltas (signature only) + if t.trim().is_empty() { + continue; + } think += t; let _ = tx.send(Ok(StreamEvent::ThinkingDelta { text: t.into() }));