Skip to content

fix(ai): preserve response reasoning items - #46288

Open
rekram1-node wants to merge 1 commit into
v2from
reasoning-replay
Open

fix(ai): preserve response reasoning items#46288
rekram1-node wants to merge 1 commit into
v2from
reasoning-replay

Conversation

@rekram1-node

Copy link
Copy Markdown
Collaborator

Before

  • Mixed raw and summary deltas could share incomplete indexing and state.
  • Raw reasoning could be mislabeled as summary.
  • Multiple summary entries could become separate visible blocks or be flattened during replay.

Raw and summary streaming therefore lost the exact provider structure needed for reliable continuation.

After

  • One visible reasoning block is emitted per provider reasoning item.
  • Completed summary is preferred for display, followed by completed raw content and then streamed fallback.
  • Exact summary and content arrays plus encrypted state remain in opaque provider replay state.
  • OpenAI replays the completed item unchanged.
  • Shared Open Responses projects the stored item to its formal input schema, preserving ordered summaries and encrypted content while omitting raw content.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant