Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

chore: `/multiagent` alias for `/agent` (#13249)

jif-oai9a42a56d8f0a
diff --git a/codex-rs/tui/src/app.rs b/codex-rs/tui/src/app.rs
index 52aefb4727..742a1c9778 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 62765d9c2c..cf43f65686 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 8822626b44..78e8fcc669 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 bbd0307da3..361c91a4a6 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,
}