Skip to content

Conversation

@vrtnis
Copy link
Contributor

@vrtnis vrtnis commented Jun 24, 2025

Resolves #106

  • Adds support for the 'conversation.item.input_audio_transcription.completed' event
  • Updates updateRealtimeHistory() to merge transcripts into existing user messages
  • Prevents null transcripts from showing as '...' in the UI
  • Resolves issue Realtime history gets corrupted when user speaks multiple times #106 where if a user spoke multiple times before receiving a response, the
    SDK would insert a user message with a null transcript, causing the UI to
    render a placeholder ("..."). This PR eliminates need for frontend workaround

Tested with pnpm test and pnpm lint and also in various browsers

…penai#106)

- Adds support for the 'conversation.item.input_audio_transcription.completed' event
- Updates updateRealtimeHistory() to merge transcripts into existing user messages
- Prevents null transcripts from showing as '...' in the UI
- Resolves issue openai#106 and eliminates need for frontend workaround
@changeset-bot
Copy link

changeset-bot bot commented Jun 24, 2025

🦋 Changeset detected

Latest commit: 71c70da

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

@seratch
Copy link
Member

seratch commented Jun 24, 2025

Hi @vrtnis, thanks for sending this PR! Could you add changeset file for this? You can run pnpm changeset command for it.

  • changed packages: agents-realtime only
  • version bump: patch

@vrtnis
Copy link
Contributor Author

vrtnis commented Jun 24, 2025

Hi @vrtnis, thanks for sending this PR! Could you add changeset file for this? You can run pnpm changeset command for it.

  • changed packages: agents-realtime only
  • version bump: patch

Thanks @seratch ! I've Just added the changeset file

@dkundel-openai dkundel-openai merged commit 6e0d1bd into openai:main Jul 4, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working package:agents-realtime

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Realtime history gets corrupted when user speaks multiple times

3 participants