mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Add live WebRTC voice conversations to the TUI (#43581)
## What changed - Add feature-gated `/voice`, `/voice mute`, and `/voice stop` commands with local WebRTC audio and app-server signaling. - Show live transcripts, conversation status, and microphone and speaker levels. Preserve captions and undelivered answers across thread switches. - Speak final answers from voice handoffs while keeping delegated reasoning and commentary hidden and typed answers unspoken. - Retry eligible startup failures once and clean up voice sessions on thread switches and disconnects. - Stop voice and block late handoffs after a misalignment policy violation. Remove realtime event payloads and spoken text from receipt and debug logs. ## Testing Add coverage for voice command mapping, rejected starts, disconnect cleanup, delegated final-answer speech, late handoff rejection, and transcript and footer rendering. GitOrigin-RevId: 11def1f86b0e023b21d0d92072d6636ccad89815
This commit is contained in:
1 parent
4110342321
commit
b01c3986fd
70 files changed
+4421
-69
No files matched your search
@@ -112,6 +112,18 @@ pub(super) enum ActivePopup {
|
||||
MentionV2(MentionV2Popup),
|
||||
}
|
||||
|
||||
impl ActivePopup {
|
||||
pub(super) fn required_height(&self, width: u16, footer_total_height: u16) -> u16 {
|
||||
match self {
|
||||
Self::None => footer_total_height,
|
||||
Self::Command(popup) => popup.calculate_required_height(width),
|
||||
Self::File(popup) => popup.calculate_required_height(),
|
||||
Self::Skill(popup) => popup.calculate_required_height(width),
|
||||
Self::MentionV2(popup) => popup.calculate_required_height(width),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
#[path = "popup_state_tests.rs"]
|
||||
mod tests;
|
||||
@@ -178,6 +178,7 @@ impl<'a> SlashInput<'a> {
|
||||
service_tier_commands_enabled: self.command_flags.service_tier_commands_enabled,
|
||||
goal_command_enabled: self.command_flags.goal_command_enabled,
|
||||
personality_command_enabled: self.command_flags.personality_command_enabled,
|
||||
voice_command_enabled: self.command_flags.voice_command_enabled,
|
||||
worktrees_enabled: self.command_flags.worktrees_enabled,
|
||||
windows_degraded_sandbox_active: self.command_flags.allow_elevate_sandbox,
|
||||
side_conversation_active: self.command_flags.side_conversation_active,
|
||||
@@ -216,6 +217,7 @@ impl ChatComposer {
|
||||
service_tier_commands_enabled: self.service_tier_commands_enabled,
|
||||
goal_command_enabled: self.goal_command_enabled,
|
||||
personality_command_enabled: self.personality_command_enabled,
|
||||
voice_command_enabled: self.voice_command_enabled,
|
||||
worktrees_enabled: self.worktrees_enabled,
|
||||
allow_elevate_sandbox: self.windows_degraded_sandbox_active,
|
||||
side_conversation_active: self.side_conversation_active,
|
||||
|
||||
Reference in new issue
Block a user