Skip to content

Conversation

@IM594
Copy link

@IM594 IM594 commented Oct 25, 2025

This pull request resolves #613

To resolve this issue, I added an onconnectionstatechange listener to the RTCPeerConnection instance — this is the minimum fix. If the underlying connection state transitions to 'disconnected', 'failed', or 'closed', the close() method is now invoked.

@changeset-bot
Copy link

changeset-bot bot commented Oct 25, 2025

🦋 Changeset detected

Latest commit: 57d292f

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

This PR includes changesets to release 2 packages
Name Type
@openai/agents-realtime Patch
@openai/agents 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

@IM594 IM594 marked this pull request as draft October 27, 2025 03:26
@IM594 IM594 marked this pull request as ready for review October 27, 2025 05:33
@IM594
Copy link
Author

IM594 commented Oct 27, 2025

sdk.v0.1.11.webrtc.bug.mov
webrtc.bug.fixed.mov

@seratch seratch added bug Something isn't working package:agents-realtime labels Oct 27, 2025
@seratch
Copy link
Member

seratch commented Oct 27, 2025

@codex review

@seratch
Copy link
Member

seratch commented Oct 27, 2025

Thanks for sending this patch! I actually also did something similar, so I think this should be fine. I will look into details and do testing on my end too.

@seratch seratch self-requested a review October 27, 2025 12:41
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.

OpenAIRealtimeWebRTC connection_change Fails to Detect Disconnection After Connection is Established

2 participants