Skip to content

fix: #2940 emit RealtimeHistoryUpdated when transcript_delta updates history#2977

Closed
nileshpatil6 wants to merge 2 commits intoopenai:mainfrom
nileshpatil6:fix/realtime-history-updated-transcript-delta
Closed

fix: #2940 emit RealtimeHistoryUpdated when transcript_delta updates history#2977
nileshpatil6 wants to merge 2 commits intoopenai:mainfrom
nileshpatil6:fix/realtime-history-updated-transcript-delta

Conversation

@nileshpatil6
Copy link
Copy Markdown
Contributor

Problem

RealtimeSession accumulates transcript text and updates self._history on every transcript_delta event, but never emits RealtimeHistoryUpdated. UI consumers that follow the documented pattern of listening to history_added / history_updated events miss all live partial transcript changes.

Every other branch that mutates history (item_updated, item_deleted) correctly emits RealtimeHistoryUpdatedtranscript_delta is the only one that doesn't.

Fix

Emit RealtimeHistoryUpdated immediately after _get_new_history in the transcript_delta branch, consistent with the other branches.

Fixes #2940

transcript_delta mutates self._history via _get_new_history but never
emits RealtimeHistoryUpdated, so UI consumers listening to history events
miss live partial transcript changes. Emit the event consistently with
the item_updated and item_deleted branches.

Fixes openai#2940
@github-actions github-actions Bot added bug Something isn't working feature:realtime labels Apr 20, 2026
@seratch seratch changed the title fix: emit RealtimeHistoryUpdated when transcript_delta updates history fix: #2940 emit RealtimeHistoryUpdated when transcript_delta updates history Apr 20, 2026
@seratch seratch marked this pull request as draft April 20, 2026 21:32
@nileshpatil6 nileshpatil6 marked this pull request as ready for review April 20, 2026 21:41
@seratch seratch marked this pull request as draft April 23, 2026 00:43
@nileshpatil6 nileshpatil6 marked this pull request as ready for review April 30, 2026 16:30
@seratch
Copy link
Copy Markdown
Member

seratch commented May 9, 2026

duplicate with #2941 and #3086; also we are lean to #2941 changes so far

@seratch seratch closed this May 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working feature:realtime

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RealtimeSession does not emit history_updated for transcript_delta

2 participants