Under the hood
Tool-result repair now detects and reports 'misplaced' tool results in debug output
What
The internal pass that repairs mismatched tool calls and their results now includes a check for tool results that are "misplaced." When this happens, the debug information generated (both in telemetry and in the strict-mode error message) now includes a misplaced_tool_results=[...] list for each affected assistant message.
Why
This gives more detail when diagnosing cases where a tool's result got separated from or mismatched with its originating call, making it easier to understand what went wrong in a conversation's transcript.