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

Add a `/mutli-agents` alias for `/agent` and update the wording
This commit is contained in:
jif-oai
2026-03-02 16:51:54 +00:00
committed by GitHub
Unverified
parent c2e126f92a
commit 9a42a56d8f
4 changed files with 7 additions and 6 deletions
+2 -2
View File
@@ -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,
@@ -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]
+1 -1
View File
@@ -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 => {
+3 -2
View File
@@ -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,
}