Ted Li
6316648bab
fix(openai): keep stop-finished tool calls
Preserve silent structured OpenAI-compatible tool calls when providers stream tool_calls but finish with finish_reason stop, while keeping visible-text stop responses and unfinished streams from executing spurious tool calls.
Fixes #88791.
Verification:
- pnpm tsgo:prod
- node scripts/run-vitest.mjs src/llm/providers/openai-completions.test.ts src/agents/openai-transport-stream.test.ts
- loopback OpenAI-compatible SSE proof against createOpenAICompletionsTransportStreamFn
- .agents/skills/autoreview/scripts/autoreview --mode branch --base origin/main
2026-05-31 19:41:23 -04:00
..
2026-06-01 00:12:28 +01:00
2026-05-31 19:41:23 -04:00
2026-05-31 23:06:13 +01:00
2026-05-31 18:02:34 +01:00
2026-06-01 00:19:51 +01:00
2026-05-31 14:37:41 +01:00
2026-06-01 00:19:51 +01:00
2026-05-31 19:37:13 -04:00
2026-05-31 23:06:13 +01:00
2026-05-31 18:59:02 +01:00
2026-06-01 00:21:14 +01:00
2026-05-31 22:40:48 +01:00
2026-05-31 19:37:13 -04:00
2026-06-01 01:32:06 +02:00
2026-05-31 21:49:36 +01:00
2026-06-01 00:19:51 +01:00
2026-05-31 18:48:45 +01:00
2026-05-31 19:41:23 -04:00
2026-05-31 23:06:13 +01:00
2026-05-31 23:06:13 +01:00
2026-05-31 23:06:13 +01:00
2026-05-31 23:06:13 +01:00
2026-05-31 18:59:02 +01:00
2026-05-31 18:59:02 +01:00
2026-05-31 22:40:48 +01:00
2026-06-01 00:20:10 +01:00
2026-06-01 00:19:51 +01:00
2026-06-01 00:20:10 +01:00
2026-05-31 18:59:02 +01:00
2026-05-31 23:06:13 +01:00
2026-05-31 23:06:13 +01:00
2026-05-31 18:59:02 +01:00
2026-05-31 23:06:13 +01:00
2026-05-31 18:59:02 +01:00
2026-06-01 00:07:45 +01:00
2026-05-31 23:06:13 +01:00
2026-05-31 21:15:29 +01:00
2026-05-31 17:35:41 +01:00
2026-05-31 23:06:13 +01:00
2026-06-01 00:12:28 +01:00
2026-05-31 18:59:02 +01:00
2026-05-31 18:59:02 +01:00
2026-05-31 23:31:15 +01:00
2026-05-31 14:37:41 +01:00
2026-05-31 18:59:02 +01:00
2026-05-31 18:59:02 +01:00
2026-05-31 22:40:48 +01:00
2026-05-31 18:55:33 +01:00
2026-05-31 23:06:13 +01:00
2026-05-31 18:55:33 +01:00
2026-05-31 18:59:02 +01:00
2026-05-31 23:37:27 +01:00
2026-05-31 23:06:13 +01:00