mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-07 15:52:52 +03:00
When Claude Code compacts conversation context to fit within token limits, it may remove assistant messages containing tool_use/tool_calls while leaving the corresponding tool_result/function_call_output messages intact. This creates orphaned tool results that cause providers to reject requests with errors like "tool result's tool id not found" or "No tool call found for function call output".