mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-31 04:12:10 +03:00
In OpenAI Chat Completions streaming format, the tool call id and type should only appear on the first chunk (tool declaration). Subsequent argument delta chunks should only include index and function.arguments. Including id on every delta chunk caused openai-to-claude.ts to emit a new content_block_start for each chunk, breaking Claude Code ACP sessions with malformed Claude-format streams. Fixes #682 Co-authored-by: Chris Staley <christopher.staley@protonmail.com>