Skip to content

Conversation

@vrtnis
Copy link
Contributor

@vrtnis vrtnis commented Aug 17, 2025

fixes the bug where history_updated kept items stuck as "in_progress" even after response.output_item.done arrived.

With these changes:

We preserve whatever status the API sends.

If the status is missing on a done event, we default to "completed".

Added regression tests to cover both cases. history_updated now correctly flips to "completed" once the response finishes.

Resolves #336

@changeset-bot
Copy link

changeset-bot bot commented Aug 17, 2025

🦋 Changeset detected

Latest commit: 18265e1

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@openai/agents-realtime Patch
@openai/agents Patch
@openai/agents-extensions Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@dudududukim
Copy link

dudududukim commented Aug 18, 2025

Thank you for addressing the bug I reported!
I've tested this PR locally and confirmed the history_updated status now properly reflects "completed" after response.output_item.done. Working as expected!

image

@vrtnis vrtnis marked this pull request as ready for review August 18, 2025 20:45
@seratch seratch enabled auto-merge (squash) August 18, 2025 22:46
@seratch seratch merged commit 8cf5356 into openai:main Aug 18, 2025
4 checks passed
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.

Realtime API: history_updated shows in_progress even after response.output_item.done with completed status

3 participants