Skip to content

fix: duplicated reasoning tasks#76

Closed
Palen wants to merge 1 commit intoopenai:mainfrom
Palen:fix/duplicated_reasonings
Closed

fix: duplicated reasoning tasks#76
Palen wants to merge 1 commit intoopenai:mainfrom
Palen:fix/duplicated_reasonings

Conversation

@Palen
Copy link

@Palen Palen commented Dec 3, 2025

  • Prevent duplicated reasoning tasks by storing deep copies of newly added items in the streaming pending-items tracker, so _update_pending_items no longer mutates the responder’s original workflow item twice.
  • Add regression test test_workflow_updates_not_applied_twice proving a responder that mutates a workflow before emitting updates yields only one reasoning task in both streamed and stored workflow items.

@jiwon-oai
Copy link
Collaborator

Thank you for this and apologies for the belated response! We merged this change in a separate PR 👍

@jiwon-oai jiwon-oai closed this Jan 10, 2026
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.

2 participants