Skip to content

Add realtime audio device picker#12850

Merged
aibrahim-oai merged 4 commits intomainfrom
codex/realtime-audio-picker-clean
Feb 27, 2026
Merged

Add realtime audio device picker#12850
aibrahim-oai merged 4 commits intomainfrom
codex/realtime-audio-picker-clean

Conversation

@aibrahim-oai
Copy link
Collaborator

Summary

  • add a dedicated /audio picker for realtime microphone and speaker selection
  • persist realtime audio choices and prompt to restart only local audio when voice is live
  • add snapshot coverage for the new picker surfaces

Validation

  • cargo test -p codex-tui
  • cargo insta accept
  • just fix -p codex-tui
  • just fmt

@aibrahim-oai aibrahim-oai force-pushed the codex/realtime-audio-config-clean branch from 7063b84 to f573b67 Compare February 26, 2026 01:58
@aibrahim-oai aibrahim-oai force-pushed the codex/realtime-audio-picker-clean branch from bd37f95 to e0f9212 Compare February 26, 2026 01:58
aibrahim-oai added a commit that referenced this pull request Feb 26, 2026
Co-authored-by: Codex <noreply@openai.com>
aibrahim-oai added a commit that referenced this pull request Feb 26, 2026
Co-authored-by: Codex <noreply@openai.com>
@aibrahim-oai aibrahim-oai force-pushed the codex/realtime-audio-picker-clean branch from 7961f57 to da7306d Compare February 26, 2026 02:03
aibrahim-oai added a commit that referenced this pull request Feb 26, 2026
Co-authored-by: Codex <noreply@openai.com>
@aibrahim-oai aibrahim-oai force-pushed the codex/realtime-audio-picker-clean branch from da7306d to 657d6b2 Compare February 26, 2026 02:15
@aibrahim-oai
Copy link
Collaborator Author

@codex review this

SlashCommand::Model => "choose what model and reasoning effort to use",
SlashCommand::Personality => "choose a communication style for Codex",
SlashCommand::Realtime => "toggle realtime voice mode (experimental)",
SlashCommand::Audio => "select microphone/speaker for realtime voice",
Copy link
Collaborator

Choose a reason for hiding this comment

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

I almost want /settings.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Don't want to add a new command for each new setting.

use super::*;
use crate::app_event::AppEvent;
use crate::app_event::ExitMode;
#[cfg(all(not(target_os = "linux"), feature = "voice-input"))]
Copy link
Collaborator

Choose a reason for hiding this comment

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

let's not add feature build, @bolinfest just cleaned them all out

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

okay

SlashCommand::Model => "choose what model and reasoning effort to use",
SlashCommand::Personality => "choose a communication style for Codex",
SlashCommand::Realtime => "toggle realtime voice mode (experimental)",
SlashCommand::Audio => "select microphone/speaker for realtime voice",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Hide when feature is not enabled.

Copy link
Contributor

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 657d6b29f7

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +283 to +284
if !self.realtime_conversation.is_live() {
return;
Copy link
Contributor

Choose a reason for hiding this comment

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

P2 Badge Reject restart requests once realtime conversation is stopping

restart_realtime_audio_device only checks is_live(), and is_live() includes the Stopping phase. But request_realtime_conversation_close() already stops local audio immediately. If /audio changes are applied during shutdown, selecting restart can re-enable mic/speaker after the user asked realtime to stop, causing unexpected capture/playback until close completes.

Useful? React with 👍 / 👎.

},

/// Persist the selected realtime microphone or speaker to top-level config.
#[cfg(all(not(target_os = "linux"), feature = "voice-input"))]
Copy link
Collaborator

Choose a reason for hiding this comment

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

let's avoid all cross complitation

aibrahim-oai added a commit that referenced this pull request Feb 26, 2026
Co-authored-by: Codex <noreply@openai.com>
aibrahim-oai added a commit that referenced this pull request Feb 26, 2026
Co-authored-by: Codex <noreply@openai.com>
Base automatically changed from codex/realtime-audio-config-clean to main February 26, 2026 23:08
@aibrahim-oai aibrahim-oai force-pushed the codex/realtime-audio-picker-clean branch from 59019fb to 9619843 Compare February 26, 2026 23:25
@aibrahim-oai aibrahim-oai merged commit f90e97e into main Feb 27, 2026
30 of 32 checks passed
@aibrahim-oai aibrahim-oai deleted the codex/realtime-audio-picker-clean branch February 27, 2026 01:27
@github-actions github-actions bot locked and limited conversation to collaborators Feb 27, 2026
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