fix(antigravity): preserve Claude tool delta index (#2223)
Gemini response translation wrote OpenAI-shaped bookkeeping into the shared state.toolCalls map, which the downstream openai-to-claude translator uses for Claude block metadata. That pre-population skipped blockIndex creation, so Anthropic input_json_delta events lost index. Track Gemini function calls via state.geminiToolCallCount instead, leaving state.toolCalls clean for the Claude translator. Closes #2218 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
committed by
decolua
parent
182c849979
commit
8f81f17b99
@@ -171,6 +171,7 @@ describe("Kiro → Claude (direct route, OpenAI-shaped chunks from executor)", (
|
||||
const jsonDelta = events.find(
|
||||
(e) => e.type === "content_block_delta" && e.delta.type === "input_json_delta"
|
||||
);
|
||||
expect(jsonDelta.index).toBeDefined();
|
||||
expect(jsonDelta.delta.partial_json).toBe('{"q":"x"}');
|
||||
const md = events.find((e) => e.type === "message_delta");
|
||||
expect(md.delta.stop_reason).toBe("tool_use");
|
||||
|
||||
Reference in New Issue
Block a user