eeb671872a
The history builder was silently dropping tool_calls from prior turns, causing the LLM to lose article/search context on every follow-up. Now reconstructs the assistant tool_call dict + per-call tool result entries. Messages without tool_calls are unaffected. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>