Skip to content

fix(llm): restore OpenAI reasoning streams - #28552

Merged
kitlangton merged 2 commits into
devfrom
fix/llm-openai-reasoning
May 21, 2026
Merged

kitlangton merged 2 commits into
devfrom
fix/llm-openai-reasoning

Conversation

@kitlangton

Copy link
Copy Markdown
Contributor

Summary

  • parse OpenAI-compatible chat reasoning_content deltas into common reasoning events
  • parse OpenAI Responses reasoning summary/text stream events
  • add deterministic parser regressions and a recorded OpenAI Responses reasoning cassette

Tests

  • bunx prettier --write packages/llm/src/protocols/openai-chat.ts packages/llm/src/protocols/openai-responses.ts packages/llm/src/protocols/utils/lifecycle.ts packages/llm/test/provider/golden.recorded.test.ts packages/llm/test/provider/openai-chat.test.ts packages/llm/test/provider/openai-responses.test.ts packages/llm/test/recorded-golden.ts packages/llm/test/recorded-scenarios.ts packages/llm/test/fixtures/recordings/openai-responses/openai-responses-gpt-5-5-reasoning.json
  • bunx oxlint packages/llm/src/protocols/openai-chat.ts packages/llm/src/protocols/openai-responses.ts packages/llm/src/protocols/utils/lifecycle.ts packages/llm/test/provider/golden.recorded.test.ts packages/llm/test/provider/openai-chat.test.ts packages/llm/test/provider/openai-responses.test.ts packages/llm/test/recorded-golden.ts packages/llm/test/recorded-scenarios.ts
  • bun test --timeout 30000 test/provider/openai-chat.test.ts test/provider/openai-responses.test.ts test/provider/openai-compatible-chat.test.ts test/provider/openrouter.test.ts test/provider/golden.recorded.test.ts
  • bun test --timeout 30000 test/provider/golden.recorded.test.ts -t "uses reasoning"
  • bun typecheck
  • bun test --timeout 30000 test/session/llm-native.test.ts test/session/llm.test.ts -t "reasoning|native"
  • push hook: bun turbo typecheck

@kitlangton
kitlangton merged commit 16fb6da into dev May 21, 2026
13 of 14 checks passed
@kitlangton
kitlangton deleted the fix/llm-openai-reasoning branch May 21, 2026 01:03
AIALRA-0 pushed a commit to AIALRA-0/opencode-turn-engine that referenced this pull request Jun 10, 2026
isaacfinnegan pushed a commit to isaacfinnegan/whispercode that referenced this pull request Jun 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant