Add WebRTC media transport to realtime TUI (#17058)

Adds the `[realtime].transport = "webrtc"` TUI media path using a new
`codex-realtime-webrtc` crate, while leaving app-server as the
signaling/event source.\n\nLocal checks: fmt, diff-check, dependency
tree only; test signal should come from CI.

---------

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
Ahmed IbrahimandCodex authored and GitHub committed 2026-04-08 10:26:55 -07:00
1 parent 7b6486a145
commit d90a348870
15 files changed
+1190 -61

No files matched your search

+11 -2
View File
@@ -6502,7 +6502,11 @@ impl ChatWidget {
);
}
}
ServerNotification::ThreadRealtimeSdp(_) => {}
ServerNotification::ThreadRealtimeSdp(notification) => {
if !from_replay {
self.on_realtime_conversation_sdp(notification.sdp);
}
}
ServerNotification::ServerRequestResolved(_)
| ServerNotification::AccountUpdated(_)
| ServerNotification::AccountRateLimitsUpdated(_)
@@ -7022,7 +7026,11 @@ impl ChatWidget {
self.on_realtime_conversation_started(ev);
}
}
EventMsg::RealtimeConversationSdp(_) => {}
EventMsg::RealtimeConversationSdp(ev) => {
if !from_replay {
self.on_realtime_conversation_sdp(ev.sdp);
}
}
EventMsg::RealtimeConversationRealtime(ev) => {
if !from_replay {
self.on_realtime_conversation_realtime(ev);
@@ -10586,6 +10594,7 @@ impl ChatWidget {
pub(crate) fn sync_plugin_mentions_config(&mut self, config: &Config) {
self.config.features = config.features.clone();
self.config.config_layer_stack = config.config_layer_stack.clone();
self.config.realtime = config.realtime.clone();
}
pub(crate) fn open_review_popup(&mut self) {