Skip to content

Add a helper-backed realtime WebRTC session API - #43097

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/458cd80353697f7411cee785f380d1d53aef8416
Sep 5, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/458cd80353697f7411cee785f380d1d53aef8416

Conversation

@copyberry

@copyberry copyberry Bot commented Sep 5, 2026 •

Copy link
Copy Markdown

Add a helper-backed realtime WebRTC session API

What changed

  • Add RealtimeWebrtcSession and cloneable handles for startup, answer negotiation, audio controls, level meters, and error reporting.
  • Open devices after answer negotiation and apply the latest controls before enabling audio. Preserve subsequent control transitions in order and close the session if the command queue fills.
  • Cancel pending work on explicit close, external cancellation, or final handle drop, with a shared runtime keeping helper reaping alive.
  • Add audio-state polling to consume microphone and speaker peaks and detect helper, device, or connection failures.
  • Check packaged helper/runtime availability and initialize build information in the standalone TUI for the helper handshake.

Testing

Add unit and helper-process integration tests covering startup control ordering, queue overflow, cancellation, helper reaping and loss, package availability, SDP debug redaction, and peak accumulation, clamping, and consumption.

## What changed

- Add `RealtimeWebrtcSession` and cloneable handles for startup, answer negotiation, audio controls, level meters, and error reporting.
- Open devices after answer negotiation and apply the latest controls before enabling audio. Preserve subsequent control transitions in order and close the session if the command queue fills.
- Cancel pending work on explicit close, external cancellation, or final handle drop, with a shared runtime keeping helper reaping alive.
- Add audio-state polling to consume microphone and speaker peaks and detect helper, device, or connection failures.
- Check packaged helper/runtime availability and initialize build information in the standalone TUI for the helper handshake.

## Testing

Add unit and helper-process integration tests covering startup control ordering, queue overflow, cancellation, helper reaping and loss, package availability, SDP debug redaction, and peak accumulation, clamping, and consumption.

GitOrigin-RevId: 458cd80353697f7411cee785f380d1d53aef8416
@github-actions

github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown
Contributor


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/458cd80353697f7411cee785f380d1d53aef8416 branch from 02d5184 to 64e9a68 Compare September 5, 2026 20:40
@copyberry
copyberry Bot merged commit 64e9a68 into main Sep 5, 2026
25 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/458cd80353697f7411cee785f380d1d53aef8416 branch September 5, 2026 20:42
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 5, 2026

This branch was previously deployed

1 inactive deployment
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants