From aa9bea12b9f077b23edd8d46e042da71196480fb Mon Sep 17 00:00:00 2001 From: Daniel Han Date: Fri, 27 Mar 2026 06:46:23 +0000 Subject: [PATCH] Address remaining reviewer findings: late tool_call IDs and XML speculation 1. Late-arriving tool_calls.id: when a provider sends the real ID on a later delta chunk (after the initial one with index and function name), the accumulator now updates the ID instead of keeping the synthetic "call_{idx}" placeholder. (P2, 2/10 reviewers) 2. XML speculation respects auto_heal_tool_calls: when auto_heal is explicitly disabled, _TOOL_XML_SIGNALS is empty so the BUFFERING state never speculatively holds content for XML prefix detection. Content starting with literal "" or "", "", "