v0.8.3
What's Changed
Claude adapter: multi-turn tool use support
Claude CLI uses its own tools (Grep, Read, Write, etc.) during conversations, producing multiple assistant→user→assistant cycles before the final result event. Previously, the adapter would crash on tool_use content blocks and user (tool result) events it didn't recognize.
Fixes:
- Handle
tool_usecontent blocks — emitstool_callsession update notifications - Handle
userevents withtool_resultcontent — emitstool_resultsession update notifications - Handle
textcontent blocks from non-streamingassistantmessages — emitsagent_message_chunknotifications for streaming visibility - Track
in_tool_usestate to correctly reset text accumulator when the final answer arrives after tool use cycles
Full Changelog: v0.8.2...v0.8.3