Skip to content

[v6.0] reproduction: @ai-sdk/open-responses: response.reasoningsummarytext.delta is silently dropped, so the standard - #19684

Closed
ai-sdk-factory[bot] wants to merge 1 commit into
release-v6.0from
bug-reproduction-19659-20260826145545026015
Closed

ai-sdk-factory[bot] wants to merge 1 commit into
release-v6.0from
bug-reproduction-19659-20260826145545026015

Conversation

@ai-sdk-factory

Copy link
Copy Markdown
Contributor

Bug

@ai-sdk/open-responses: response.reasoning_summary_text.delta is silently dropped, so the standard reasoning carrier streams no reasoning-delta

Reproduction

  • A live OpenAI gpt-5-mini request returned 101 response.reasoning_summary_text.delta events containing 379 characters, while AI SDK emitted one reasoning start, zero reasoning deltas, and one reasoning end.
  • The target branch contains @ai-sdk/open-responses@1.0.37; packages/open-responses/src/responses/open-responses-language-model.ts maps response.reasoning_text.delta but drops the documented reasoning-summary delta carrier.
  • examples/ai-functions/src/reproduction/issue-19659-open-responses-reasoning-summary.ts exits with code 1 because the expected streamed reasoning Thinking. is received as an empty string; a valid fix would reconstruct it from the two supplied deltas.
  • The live-derived fixture packages/open-responses/src/responses/__fixtures__/openai-reasoning-summary-text.1.chunks.txt and regression test in packages/open-responses/src/responses/open-responses-language-model.test.ts expect a reasoning delta between reasoning start and end, but only start and end are received.
  • The report's final-summary metadata comparison cannot be evaluated exactly on release-v6.0 because this branch's reasoning-end event does not include the later release's summary provider metadata; the primary missing streamed-reasoning outcome still reproduces.

Relevant Documentation

Related Issues

Reproduces #19659

Co-authored-by: Gregor Martynus <39992+gr2m@users.noreply.github.com>

@vercel vercel Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additional Suggestion:

The streaming transform never handles the official OpenAI Responses event response.reasoning_summary_text.delta, so reasoning summary text from OpenAI models is silently dropped (no reasoning-delta parts emitted).

Fix on Vercel

gr2m added a commit that referenced this pull request Aug 26, 2026
…ummary text events (#19747)

## Background

OpenAI-compatible Responses streams using the standard reasoning summary
carrier emitted reasoning start and end events but omitted the streamed
text, leaving callers with empty reasoning until final metadata arrived.

## Root Cause

The Open Responses transform handled the LM Studio
`response.reasoning_text.delta` extension but omitted the standard
`response.reasoning_summary_text.delta` event even though it was already
in the event union; the regression fixture and immutable reproduction
confirmed the events parsed successfully but were silently discarded.

## Summary

The transform now maps standard reasoning summary text deltas to
`reasoning-delta` parts using `item_id` while preserving extension
support and authoritative final summary metadata. The pull request
includes a representative SSE fixture, focused regression coverage, and
a patch changeset, with no dependency or configuration changes.

## Testing

Regression coverage verifies reasoning start, two streamed summary
deltas, reasoning end, and final summary metadata. All 89 Open Responses
tests passed in both Node and Edge environments, full repository type
checking passed, formatting and lint checks passed, and the immutable
reproduction no longer reproduces the issue.

## End-to-end Validation

- `pnpm -C examples/ai-functions exec tsx
src/reproduction/issue-19659-open-responses-reasoning-summary.ts` exited
0, streamed `Thinking.` through two reasoning deltas, matched final
summary metadata, and was classified `no-longer-reproduces`.

## Related Issues

Fixes #19659

Closes #19684

Backport of #19661

---------

Co-authored-by: ai-sdk-factory[bot] <305873210+ai-sdk-factory[bot]@users.noreply.github.com>
Co-authored-by: ai-sdk-factory <308175966+ai-sdk-factory@users.noreply.github.com>
Co-authored-by: Gregor Martynus <39992+gr2m@users.noreply.github.com>
@ai-sdk-factory

ai-sdk-factory Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor Author

resolved via #19747

@ai-sdk-factory ai-sdk-factory Bot closed this Sep 1, 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