claw-code-parity/rust/crates
Yeachan-Heo dc2a817360 Accept reasoning-style content blocks in the Rust API parser
The Rust API layer rejected thinking-enabled responses because it only recognized text and tool_use content blocks. This commit extends the response and SSE parser types to accept reasoning-style content blocks and deltas, with regression coverage for both non-streaming and streaming responses.

Constraint: Keep parsing compatible with existing text and tool-use message flows
Rejected: Deserialize unknown content blocks into an untyped catch-all | would weaken protocol coverage and test precision
Confidence: high
Scope-risk: narrow
Directive: Keep new protocol variants covered at the API boundary so downstream code can make explicit choices about preservation vs. ignoring
Tested: cargo test -p api thinking -- --nocapture
Not-tested: Live API traffic from a real thinking-enabled model
2026-04-01 08:06:10 +00:00
..
api Accept reasoning-style content blocks in the Rust API parser 2026-04-01 08:06:10 +00:00
commands feat: plugin hooks + tool registry + CLI integration 2026-04-01 07:11:42 +00:00
compat-harness wip: plugins progress 2026-04-01 07:09:06 +00:00
plugins Harden installed-plugin discovery against stale registry state 2026-04-01 07:34:55 +00:00
runtime feat: plugin hooks + tool registry + CLI integration 2026-04-01 07:11:42 +00:00
rusty-claude-cli Keep plugin-aware CLI validation aligned with the shared registry 2026-04-01 07:22:41 +00:00
tools Allow subagent tool flows to reach plugin-provided tools 2026-04-01 07:36:05 +00:00