From 9a42a56d8f0a14298c0e54b1ac6d7dda48ec347b Mon Sep 17 00:00:00 2001 From: jif-oai Date: Mon, 2 Mar 2026 16:51:54 +0000 Subject: [PATCH] chore: `/multiagent` alias for `/agent` (#13249) Add a `/mutli-agents` alias for `/agent` and update the wording --- codex-rs/tui/src/app.rs | 4 ++-- codex-rs/tui/src/bottom_pane/command_popup.rs | 2 +- codex-rs/tui/src/chatwidget.rs | 2 +- codex-rs/tui/src/slash_command.rs | 5 +++-- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/codex-rs/tui/src/app.rs b/codex-rs/tui/src/app.rs index 52aefb472..742a1c977 100644 --- a/codex-rs/tui/src/app.rs +++ b/codex-rs/tui/src/app.rs @@ -1246,8 +1246,8 @@ impl App { .collect(); self.chat_widget.show_selection_view(SelectionViewParams { - title: Some("Agents".to_string()), - subtitle: Some("Select a thread to focus".to_string()), + title: Some("Multi-agents".to_string()), + subtitle: Some("Select an agent to watch".to_string()), footer_hint: Some(standard_popup_hint_line()), items, initial_selected_idx, diff --git a/codex-rs/tui/src/bottom_pane/command_popup.rs b/codex-rs/tui/src/bottom_pane/command_popup.rs index 62765d9c2..cf43f6568 100644 --- a/codex-rs/tui/src/bottom_pane/command_popup.rs +++ b/codex-rs/tui/src/bottom_pane/command_popup.rs @@ -342,7 +342,7 @@ mod tests { CommandItem::UserPrompt(_) => None, }) .collect(); - assert_eq!(cmds, vec!["model", "mention", "mcp"]); + assert_eq!(cmds, vec!["model", "mention", "mcp", "multi-agents"]); } #[test] diff --git a/codex-rs/tui/src/chatwidget.rs b/codex-rs/tui/src/chatwidget.rs index 8822626b4..78e8fcc66 100644 --- a/codex-rs/tui/src/chatwidget.rs +++ b/codex-rs/tui/src/chatwidget.rs @@ -3609,7 +3609,7 @@ impl ChatWidget { } self.open_collaboration_modes_popup(); } - SlashCommand::Agent => { + SlashCommand::Agent | SlashCommand::MultiAgents => { self.app_event_tx.send(AppEvent::OpenAgentPicker); } SlashCommand::Approvals => { diff --git a/codex-rs/tui/src/slash_command.rs b/codex-rs/tui/src/slash_command.rs index bbd0307da..361c91a4a 100644 --- a/codex-rs/tui/src/slash_command.rs +++ b/codex-rs/tui/src/slash_command.rs @@ -53,6 +53,7 @@ pub enum SlashCommand { Realtime, Settings, TestApproval, + MultiAgents, // Debugging commands. #[strum(serialize = "debug-m-drop")] MemoryDrop, @@ -93,7 +94,7 @@ impl SlashCommand { SlashCommand::Settings => "configure realtime microphone/speaker", SlashCommand::Plan => "switch to Plan mode", SlashCommand::Collab => "change collaboration mode (experimental)", - SlashCommand::Agent => "switch the active agent thread", + SlashCommand::Agent | SlashCommand::MultiAgents => "switch the active agent thread", SlashCommand::Approvals => "choose what Codex is allowed to do", SlashCommand::Permissions => "choose what Codex is allowed to do", SlashCommand::ElevateSandbox => "set up elevated agent sandbox", @@ -167,7 +168,7 @@ impl SlashCommand { SlashCommand::Realtime => true, SlashCommand::Settings => true, SlashCommand::Collab => true, - SlashCommand::Agent => true, + SlashCommand::Agent | SlashCommand::MultiAgents => true, SlashCommand::Statusline => false, SlashCommand::Theme => false, }