9router/open-sse/translator/response
chisewaguri 10a923da11 fix(responses): don't close message on empty tool_calls array
Some providers (e.g. codebuddy/cbcn) attach an empty tool_calls array to every streaming chunk. An empty array is truthy in JS, so the guard 'if (delta.tool_calls)' closed the message on the first content token and emitted response.output_text.done early, dropping the remaining deltas. Guard on a non-empty array; finish_reason still closes the message and real tool calls still close it before emitting function_call items.

fixes #3234
2026-08-13 11:40:45 +07:00
..
claude-to-openai.js feat(usage): track cached tokens + correct input/output/cache cost (#2209) 2026-07-03 15:18:27 +07:00
commandcode-to-openai.js refactor(open-sse): translator DRY + schema enums, bug fixes, dead code cleanup 2026-06-14 18:49:38 +07:00
cursor-to-openai.js refactor(open-sse): translator DRY + schema enums, bug fixes, dead code cleanup 2026-06-14 18:49:38 +07:00
gemini-to-openai.js fix(antigravity): preserve Claude tool delta index (#2223) 2026-07-01 09:36:43 +07:00
kiro-to-claude.js fix(kiro): report real output tokens and stop discarding usable turns 2026-08-13 11:33:41 +07:00
kiro-to-openai.js refactor(open-sse): translator DRY + schema enums, bug fixes, dead code cleanup 2026-06-14 18:49:38 +07:00
ollama-to-openai.js refactor(open-sse): translator DRY + schema enums, bug fixes, dead code cleanup 2026-06-14 18:49:38 +07:00
openai-responses.js fix(responses): don't close message on empty tool_calls array 2026-08-13 11:40:45 +07:00
openai-to-antigravity.js refactor(open-sse): translator DRY + schema enums, bug fixes, dead code cleanup 2026-06-14 18:49:38 +07:00
openai-to-claude.js Fix OpenCode Go GLM 2026-06-29 15:00:03 +07:00