Skip to content

fix(openai realtime): reject pending response future on error event#5576

Open
longcw wants to merge 1 commit intomainfrom
longc/fix-openai-realtime-response-error
Open

fix(openai realtime): reject pending response future on error event#5576
longcw wants to merge 1 commit intomainfrom
longc/fix-openai-realtime-response-error

Conversation

@longcw
Copy link
Copy Markdown
Contributor

@longcw longcw commented Apr 28, 2026

Summary

  • When OpenAI realtime sends an error event referencing the event_id of a response.create we issued, resolve the future created by generate_reply() with llm.RealtimeError.

Closes #5566.

Resolves the future created by generate_reply when an OpenAI realtime
error event references its client event id, instead of leaving it to
hang until the 10s timeout.
@chenghao-mou chenghao-mou requested a review from a team April 28, 2026 08:38
Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 2 additional findings.

Open in Devin Review

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.

OpenAI Realtime: response.error mid-flight causes future to hang indefinitely (TODO at realtime_model.py:2005)

1 participant