codex/codex-rs/tui/src
Benjamin Carlsson 9c9451131f Add /voice settings to choose a voice for future conversations (#44622)
## Why

The TUI has no voice picker, and realtime start requests omit the voice preference. Voice selection also needs to reflect the active project's effective server settings, which can differ from cached local settings.

## What changed

- Add `/voice settings` with the server's voice catalog and current effective selection, falling back to the built-in catalog when unavailable.
- Save `realtime.voice` through the app server and reread effective settings before confirming the selection. Report save failures and overrides.
- Resolve the effective voice for each realtime start. Apply selections to the next voice conversation without interrupting live audio, and retain compatibility with servers that lack `config/read` or return unknown voice names.

## Testing

Add picker and confirmation snapshots, plus request tests covering persistence, server defaults, catalog fallback, unknown voices, config read failures, overrides, and project settings after thread switches.

GitOrigin-RevId: d47e3da6c1164053c5be9d1da0f5932f2a09261f
History 2026-09-10 19:14:57 +00:00
..
app Add /voice settings to choose a voice for future conversations (#44622) 2026-09-10 19:14:57 +00:00
app_backtrack Refactor shared TUI input routing (#42199) 2026-09-02 04:06:44 +00:00
app_server_session Add /voice settings to choose a voice for future conversations (#44622) 2026-09-10 19:14:57 +00:00
backend_banners Show actionable rate-limit banners in the TUI (#41742) 2026-08-31 00:20:06 +00:00
bin Rename tui_app_server to tui (#16104) 2026-03-28 11:23:07 -06:00
bottom_pane Add /voice settings to choose a voice for future conversations (#44622) 2026-09-10 19:14:57 +00:00
chatwidget Add /voice settings to choose a voice for future conversations (#44622) 2026-09-10 19:14:57 +00:00
custom_terminal Repair cursor-style rendering on older JediTerm terminals (#41673) 2026-08-30 13:42:42 +00:00
exec_cell Show read-only conversations when resume encounters an active writer (#43253) 2026-09-06 17:27:44 +00:00
external_agent_config_migration Prepare the TUI for conversation recaps (#40696) 2026-08-25 20:51:34 +00:00
history_cell Show streaming reasoning summaries in the TUI status row (#43921) 2026-09-08 21:41:02 +00:00
ide_context Restrict Windows IDE pipe client impersonation (#39020) 2026-08-17 16:34:21 +00:00
inline_visualization Organize bundled Rust resources under asset directories (#41477) 2026-08-29 06:05:28 +00:00
keymap Add archive and delete actions to the agents overview (#44433) 2026-09-10 06:06:21 +00:00
keymap_setup Add archive and delete actions to the agents overview (#44433) 2026-09-10 06:06:21 +00:00
markdown_render Render assistant file citations as local links (#42650) 2026-09-04 01:46:55 +00:00
notifications [codex] Add tmux-aware OSC 9 notifications (#17836) 2026-04-21 17:10:36 +00:00
onboarding Separate TUI preferences from server configuration (#42202) 2026-09-02 04:20:38 +00:00
pager_overlay Style spoken prompts and link workspace files in voice transcripts (#43676) 2026-09-08 03:15:37 +00:00
pets Cache the test pet spritesheet encoding (#39028) 2026-08-17 16:58:24 +00:00
public_widgets Harden embedded composer input handling (#42408) 2026-09-03 01:46:37 +00:00
render Render only visible rows in the transcript pager (#39063) 2026-08-17 19:59:22 +00:00
resume_picker Use app-server metadata for TUI session restoration (#43360) 2026-09-07 04:59:12 +00:00
snapshots Add app-server APIs for stored thread attachments (#44564) 2026-09-10 15:52:09 +00:00
status Add AWS credential export commands for Amazon Bedrock (#44028) 2026-09-09 03:17:48 +00:00
status_indicator_widget Show live context compaction status in the TUI (#42319) 2026-09-02 18:03:55 +00:00
streaming Render assistant file citations as local links (#42650) 2026-09-04 01:46:55 +00:00
terminal_hyperlinks Render Markdown links as clickable labels in supported terminals (#40471) 2026-08-24 20:04:52 +00:00
terminal_probe Probe Windows terminal colors without risking startup input (#40598) 2026-08-25 12:20:41 +00:00
tui Recover missed tmux resize notifications in the TUI (#43603) 2026-09-07 22:03:58 +00:00
additional_dirs.rs Preserve target-native paths in command approvals (#42577) 2026-09-03 16:21:10 +00:00
app.rs Add /voice settings to choose a voice for future conversations (#44622) 2026-09-10 19:14:57 +00:00
app_backtrack.rs Style spoken prompts and link workspace files in voice transcripts (#43676) 2026-09-08 03:15:37 +00:00
app_command.rs Enable MCP user verification in the TUI (#43712) 2026-09-08 05:39:17 +00:00
app_command_tests.rs Add live WebRTC voice conversations to the TUI (#43581) 2026-09-07 20:25:30 +00:00
app_event.rs Add /voice settings to choose a voice for future conversations (#44622) 2026-09-10 19:14:57 +00:00
app_event_sender.rs Enable MCP user verification in the TUI (#43712) 2026-09-08 05:39:17 +00:00
app_info.rs Remove first-party type from app metadata (#34844) 2026-07-22 23:45:45 +00:00
app_server_approval_conversions.rs Use ApiPathString in app-server filesystem permission paths (#28367) 2026-06-15 19:25:54 -07:00
app_server_connection.rs Support the app-server daemon on Windows (#42405) 2026-09-03 01:26:35 +00:00
app_server_session.rs Remove retired model entries while preserving migration prompts (#44250) 2026-09-09 17:56:33 +00:00
approval_events.rs Require approval for input to escalated terminals (#40978) 2026-08-26 21:39:05 +00:00
ascii_animation.rs [codex] Remove unused Rust helpers (#17146) 2026-04-13 18:27:00 -07:00
assistant_directives.rs Render assistant file citations as local links (#42650) 2026-09-04 01:46:55 +00:00
assistant_directives_tests.rs Render assistant file citations as local links (#42650) 2026-09-04 01:46:55 +00:00
auto_review_denials.rs Route approvals through the extension decision API (#43432) 2026-09-07 11:07:28 +00:00
backend_banners.rs Add Luna Reserve usage fallback to the TUI (#42372) 2026-09-02 21:50:51 +00:00
backend_banners_tests.rs Show actionable rate-limit banners in the TUI (#41742) 2026-08-31 00:20:06 +00:00
branch_summary.rs Reject implicitly discovered bare Git repositories (#36924) 2026-08-04 16:53:33 +00:00
chatwidget.rs Add /voice settings to choose a voice for future conversations (#44622) 2026-09-10 19:14:57 +00:00
cli.rs Add a dedicated codex agents dashboard command (#39114) 2026-08-18 00:31:51 +00:00
clipboard_copy.rs Preserve Markdown formatting when copying TUI responses (#42847) 2026-09-04 20:38:08 +00:00
clipboard_html.rs Preserve Markdown formatting when copying TUI responses (#42847) 2026-09-04 20:38:08 +00:00
clipboard_html_tests.rs Preserve Markdown formatting when copying TUI responses (#42847) 2026-09-04 20:38:08 +00:00
clipboard_paste.rs Allow paste in searchable selection menus (#25400) 2026-06-01 18:01:52 +02:00
collaboration_modes.rs Discover TUI collaboration modes from the app server (#42401) 2026-09-03 00:45:48 +00:00
color.rs Rename tui_app_server to tui (#16104) 2026-03-28 11:23:07 -06:00
config_update.rs Add /voice settings to choose a voice for future conversations (#44622) 2026-09-10 19:14:57 +00:00
config_update_tests.rs Preserve parent repository discovery through sandbox metadata mounts (#39629) 2026-08-20 06:57:00 +00:00
custom_terminal.rs Fix transcript viewer restoration and half-page scrolling (#43889) 2026-09-08 19:06:42 +00:00
custom_terminal_test_support.rs Fix transcript viewer restoration and half-page scrolling (#43889) 2026-09-08 19:06:42 +00:00
cwd_prompt.rs Separate TUI preferences from server configuration (#42202) 2026-09-02 04:20:38 +00:00
daemon_startup_tests.rs Support the app-server daemon on Windows (#42405) 2026-09-03 01:26:35 +00:00
daybreak.rs Tailor TUI cyber refusal notices to Daybreak eligibility (#42667) 2026-09-04 03:30:21 +00:00
daybreak_tests.rs Tailor TUI cyber refusal notices to Daybreak eligibility (#42667) 2026-09-04 03:30:21 +00:00
debug_config.rs Expose managed application network requirements (#42417) 2026-09-03 02:09:10 +00:00
diff_model.rs Remove core protocol dependency [1/2] (#20324) 2026-04-30 10:52:19 -07:00
diff_render.rs Show full patches and terminal input in TUI history (#42107) 2026-09-01 17:37:47 +00:00
dynamic_tools.rs Expose thread originators through the app-server API (#42458) 2026-09-03 06:02:25 +00:00
dynamic_tools_mcp.rs Reconnect TUI app-server sessions automatically (#41916) 2026-08-31 21:36:49 +00:00
dynamic_tools_tests.rs Separate TUI preferences from server configuration (#42202) 2026-09-02 04:20:38 +00:00
exec_command.rs Rename tui_app_server to tui (#16104) 2026-03-28 11:23:07 -06:00
experimental_features.rs Persist server-advertised experimental features from the TUI (#42674) 2026-09-04 04:55:40 +00:00
experimental_features_tests.rs Persist server-advertised experimental features from the TUI (#42674) 2026-09-04 04:55:40 +00:00
external_editor.rs Preserve target-native paths in command approvals (#42577) 2026-09-03 16:21:10 +00:00
external_editor_tests.rs Preserve target-native paths in command approvals (#42577) 2026-09-03 16:21:10 +00:00
file_search.rs Rename tui_app_server to tui (#16104) 2026-03-28 11:23:07 -06:00
footer_hint.rs Extract shared footer hint wrapping in the TUI (#44354) 2026-09-10 00:57:33 +00:00
footer_hint_tests.rs Extract shared footer hint wrapping in the TUI (#44354) 2026-09-10 00:57:33 +00:00
frames.rs Rename tui_app_server to tui (#16104) 2026-03-28 11:23:07 -06:00
get_git_diff.rs Reject implicitly discovered bare Git repositories (#36924) 2026-08-04 16:53:33 +00:00
git_action_directives.rs Harden TUI parsing of assistant markup (#42640) 2026-09-04 00:31:51 +00:00
goal_display.rs Show blocked goals as stalled in the TUI (#35886) 2026-07-29 03:50:00 +00:00
goal_files.rs [3 of 3] Support images in TUI goals (#27510) 2026-06-12 17:14:27 -07:00
hooks_rpc.rs Improve hooks trust flow in TUI (#21755) 2026-05-09 21:17:30 +00:00
ide_context.rs Add /ide context support to the TUI (#20294) 2026-05-01 09:39:48 -07:00
inline_visualization.rs Preserve target-native paths in command approvals (#42577) 2026-09-03 16:21:10 +00:00
inline_visualization_tests.rs Protect inline visualization viewers from sandbox writes (#38306) 2026-08-13 04:08:23 +00:00
insert_history.rs Style spoken prompts and link workspace files in voice transcripts (#43676) 2026-09-08 03:15:37 +00:00
key_hint.rs Add TUI building blocks for inline async question editing (#42889) 2026-09-04 23:56:25 +00:00
keymap.rs Add archive and delete actions to the agents overview (#44433) 2026-09-10 06:06:21 +00:00
keymap_setup.rs Add archive and delete actions to the agents overview (#44433) 2026-09-10 06:06:21 +00:00
lib.rs Extract shared footer hint wrapping in the TUI (#44354) 2026-09-10 00:57:33 +00:00
line_truncation.rs Fix TUI layout for halfwidth Japanese sound marks (#35962) 2026-07-29 14:01:31 +00:00
line_truncation_tests.rs Fix TUI layout for halfwidth Japanese sound marks (#35962) 2026-07-29 14:01:31 +00:00
live_wrap.rs Fix TUI layout for halfwidth Japanese sound marks (#35962) 2026-07-29 14:01:31 +00:00
local_chatgpt_auth.rs Support managed AWS access keys for Amazon Bedrock (#40481) 2026-08-24 21:39:48 +00:00
local_settings.rs Make older app-server notices configurable in the TUI (#43698) 2026-09-08 04:35:21 +00:00
local_settings_tests.rs Make older app-server notices configurable in the TUI (#43698) 2026-09-08 04:35:21 +00:00
main.rs Add a helper-backed realtime WebRTC session API (#43097) 2026-09-05 20:39:46 +00:00
managed_new_thread_defaults.rs [codex] Use managed defaults for TUI threads (#30147) 2026-06-26 19:27:31 +00:00
managed_new_thread_defaults_tests.rs [codex] Use managed defaults for TUI threads (#30147) 2026-06-26 19:27:31 +00:00
markdown.rs Preserve Markdown formatting when copying TUI responses (#42847) 2026-09-04 20:38:08 +00:00
markdown_render.rs Render assistant file citations as local links (#42650) 2026-09-04 01:46:55 +00:00
markdown_render_tests.rs Harden TUI parsing of assistant markup (#42640) 2026-09-04 00:31:51 +00:00
markdown_stream.rs Use the Markdown collector as the streaming source of truth (#34197) 2026-07-19 16:50:54 +00:00
markdown_text_merge.rs fix(tui): linkify complete bare URLs with tildes (#27088) 2026-06-08 17:02:36 -07:00
mention_codec.rs Share linked tool mention parsing in the TUI (#41218) 2026-08-27 23:10:10 +00:00
model_catalog.rs Discover TUI collaboration modes from the app server (#42401) 2026-09-03 00:45:48 +00:00
model_migration.rs Prepare the TUI for conversation recaps (#40696) 2026-08-25 20:51:34 +00:00
motion.rs Encapsulate TUI shimmer under the motion module (#39032) 2026-08-17 17:10:16 +00:00
multi_agents.rs Track remaining multi-agent v2 tools in analytics (#40585) 2026-08-25 10:17:03 +00:00
named_session_lookup.rs Resolve session labels uniquely before acting on them (#43315) 2026-09-07 00:56:16 +00:00
named_session_lookup_tests.rs Resolve session labels uniquely before acting on them (#43315) 2026-09-07 00:56:16 +00:00
npm_registry.rs Guard npm update readiness (#19389) 2026-04-25 17:09:29 -07:00
oss_selection.rs Keep the composer editable during TUI startup (#38642) 2026-08-14 20:30:30 +00:00
pager_overlay.rs Fix transcript viewer restoration and half-page scrolling (#43889) 2026-09-08 19:06:42 +00:00
permission_discovery.rs Enable remote named permission profile selection in the TUI (#43340) 2026-09-07 03:19:57 +00:00
permission_discovery_tests.rs Discover permission profiles from the app server (#42453) 2026-09-03 05:24:31 +00:00
resize_reflow_cap.rs fix(tui): reflow scrollback on terminal resize (#18575) 2026-04-25 22:00:32 -03:00
resume_picker.rs Use app-server metadata for TUI session restoration (#43360) 2026-09-07 04:59:12 +00:00
resume_picker_transcript_preview.rs Route rollout reads through the canonical JSON decoder (#42378) 2026-09-02 22:45:19 +00:00
resume_picker_transcript_preview_tests.rs Route rollout reads through the canonical JSON decoder (#42378) 2026-09-02 22:45:19 +00:00
selection_list.rs Upgrade Ratatui to 0.30.2 (#35959) 2026-07-29 13:53:15 +00:00
service_tier_resolution.rs Separate TUI preferences from server configuration (#42202) 2026-09-02 04:20:38 +00:00
session_archive_commands.rs Resolve session labels uniquely before acting on them (#43315) 2026-09-07 00:56:16 +00:00
session_archive_commands_tests.rs Resolve session labels uniquely before acting on them (#43315) 2026-09-07 00:56:16 +00:00
session_log.rs Drive TUI stream animation from the foreground loop (#40644) 2026-08-25 17:17:01 +00:00
session_log_tests.rs Preserve Markdown formatting when copying TUI responses (#42847) 2026-09-04 20:38:08 +00:00
session_queue_commands.rs Resolve session labels uniquely before acting on them (#43315) 2026-09-07 00:56:16 +00:00
session_queue_commands_tests.rs Add a command to queue messages for existing sessions (#39092) 2026-08-17 22:44:37 +00:00
session_resume.rs Use app-server metadata for TUI session restoration (#43360) 2026-09-07 04:59:12 +00:00
session_start.rs Preserve saved permissions when resuming or forking remote tasks (#43330) 2026-09-07 02:28:25 +00:00
session_start_tests.rs Use app-server metadata for TUI session restoration (#43360) 2026-09-07 04:59:12 +00:00
session_state.rs core: load AGENTS.md from foreign environments (#28958) 2026-06-18 15:06:23 -07:00
shimmer.rs Encapsulate TUI shimmer under the motion module (#39032) 2026-08-17 17:10:16 +00:00
skills_helpers.rs Use app-server skill metadata directly in the TUI (#34368) 2026-07-20 15:44:37 +00:00
slash_command.rs Add /voice settings to choose a voice for future conversations (#44622) 2026-09-10 19:14:57 +00:00
startup_draft.rs Use server model defaults for fresh TUI startup (#43177) 2026-09-06 07:31:40 +00:00
startup_draft_tests.rs Use server model defaults for fresh TUI startup (#43177) 2026-09-06 07:31:40 +00:00
startup_error.rs fix: Auto-recover from corrupted sqlite databases (#26859) 2026-06-10 11:24:29 -07:00
startup_hooks_review.rs Separate TUI preferences from server configuration (#42202) 2026-09-02 04:20:38 +00:00
startup_orchestration.rs Tag TUI startup metrics with terminal and multiplexer categories (#43937) 2026-09-08 22:39:16 +00:00
startup_preflight.rs Show onboarding when Codex home lacks authentication state (#38644) 2026-08-14 20:38:52 +00:00
startup_preflight_tests.rs Show onboarding when Codex home lacks authentication state (#38644) 2026-08-14 20:38:52 +00:00
status_indicator_widget.rs Show streaming reasoning summaries in the TUI status row (#43921) 2026-09-08 21:41:02 +00:00
style.rs Show read-only conversations when resume encounters an active writer (#43253) 2026-09-06 17:27:44 +00:00
summary_shimmer.rs Show streaming reasoning summaries in the TUI status row (#43921) 2026-09-08 21:41:02 +00:00
summary_shimmer_tests.rs Show streaming reasoning summaries in the TUI status row (#43921) 2026-09-08 21:41:02 +00:00
table_detect.rs feat(tui): render responsive Markdown tables in TUI (#22052) 2026-05-10 20:42:11 +00:00
task_mentions.rs Expose thread originators through the app-server API (#42458) 2026-09-03 06:02:25 +00:00
task_mentions_tests.rs Add task mentions to the TUI composer (#40315) 2026-08-24 02:46:56 +00:00
temporary_structured_request.rs Add experimental context management activation (#42385) 2026-09-02 23:37:39 +00:00
temporary_structured_request_tests.rs Add structured asynchronous user input requests (#42178) 2026-09-02 02:09:35 +00:00
terminal_hyperlinks.rs Style spoken prompts and link workspace files in voice transcripts (#43676) 2026-09-08 03:15:37 +00:00
terminal_hyperlinks_tests.rs Preserve composer hyperlinks across wrapped lines (#40720) 2026-08-25 22:05:48 +00:00
terminal_palette.rs Probe Windows terminal colors without risking startup input (#40598) 2026-08-25 12:20:41 +00:00
terminal_probe.rs Probe Windows terminal colors without risking startup input (#40598) 2026-08-25 12:20:41 +00:00
terminal_title.rs fix(tui): use BEL for terminal title updates (#18261) 2026-04-17 08:39:37 -07:00
terminal_visualization_instructions.rs [codex] Gate terminal visualization instructions in TUI (#26013) 2026-06-05 17:23:45 -07:00
test_backend.rs Show estimated thread usage in /status (#38281) 2026-08-13 00:30:08 +00:00
test_support.rs Remove TUI legacy core test_support dependencies (#27484) 2026-06-10 17:55:49 -07:00
text_formatting.rs Fix TUI layout for halfwidth Japanese sound marks (#35962) 2026-07-29 14:01:31 +00:00
theme_picker.rs Uprev Rust toolchain pins to 1.95.0 (#24684) 2026-05-26 20:59:47 -07:00
thread_transcript.rs Style spoken prompts and link workspace files in voice transcripts (#43676) 2026-09-08 03:15:37 +00:00
token_usage.rs Display blended token count in status line (#21669) 2026-05-08 07:56:13 -07:00
tooltips.rs Expose voice conversations in experimental features (#44331) 2026-09-09 23:16:06 +00:00
transcript_reflow.rs Improve paginated TUI history loading (#36949) 2026-08-04 19:05:45 +00:00
tui.rs Fix transcript viewer restoration and half-page scrolling (#43889) 2026-09-08 19:06:42 +00:00
tui_startup_tests.rs Show resume and fork status during TUI startup (#38788) 2026-08-15 17:30:13 +00:00
ui_consts.rs [tui] Truncate hook context in conversation history (#31252) 2026-07-06 16:33:13 -04:00
unarchive_prompt.rs Prepare the TUI for conversation recaps (#40696) 2026-08-25 20:51:34 +00:00
unarchive_prompt_tests.rs Preserve saved permissions when resuming or forking remote tasks (#43330) 2026-09-07 02:28:25 +00:00
update_action.rs Detect Vite+-managed Codex installs (#42071) 2026-09-01 15:12:53 +00:00
update_prompt.rs Prepare the TUI for conversation recaps (#40696) 2026-08-25 20:51:34 +00:00
update_versions.rs Warn when the connected Codex service is older than the CLI (#43622) 2026-09-07 23:52:29 +00:00
updates.rs Detect Vite+-managed Codex installs (#42071) 2026-09-01 15:12:53 +00:00
updates_cache.rs Persist update dismissal without cache (#27783) 2026-06-12 09:26:08 -07:00
updates_cache_tests.rs Persist update dismissal without cache (#27783) 2026-06-12 09:26:08 -07:00
version.rs Rename tui_app_server to tui (#16104) 2026-03-28 11:23:07 -06:00
vim_search.rs Add Vim search motions to the composer (#41586) 2026-08-30 00:42:00 +00:00
width.rs Fix TUI layout for halfwidth Japanese sound marks (#35962) 2026-07-29 14:01:31 +00:00
windows_sandbox.rs Remove the Windows /sandbox-add-read-dir slash command (#44259) 2026-09-09 18:11:39 +00:00
workspace_command.rs [codex] Remove async_trait from first-party code (#27475) 2026-06-11 18:16:39 -07:00
workspace_messages.rs Add workspace messages app-server API (#29001) 2026-06-22 04:25:07 -07:00
workspace_messages_tests.rs Add workspace messages app-server API (#29001) 2026-06-22 04:25:07 -07:00
worktree_browser.rs Show worktree owner details and add confirmed deletion (#43942) 2026-09-08 23:37:26 +00:00
worktree_startup.rs Support managed worktrees for interactive sessions and forks (#43069) 2026-09-05 18:06:26 +00:00
worktree_startup_tests.rs Support managed worktrees for interactive sessions and forks (#43069) 2026-09-05 18:06:26 +00:00
wrapping.rs Fix TUI layout for halfwidth Japanese sound marks (#35962) 2026-07-29 14:01:31 +00:00