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

Add a `/mutli-agents` alias for `/agent` and update the wording
This commit is contained in:
jif-oai authored and GitHub committed 2026-03-02 16:51:54 +00:00
1 parent c2e126f92a
commit 9a42a56d8f
4 files changed
+7 -6

No files matched your search

+2 -2
View File
@@ -1246,8 +1246,8 @@ impl App {
.collect(); .collect();
self.chat_widget.show_selection_view(SelectionViewParams { self.chat_widget.show_selection_view(SelectionViewParams {
title: Some("Agents".to_string()), title: Some("Multi-agents".to_string()),
subtitle: Some("Select a thread to focus".to_string()), subtitle: Some("Select an agent to watch".to_string()),
footer_hint: Some(standard_popup_hint_line()), footer_hint: Some(standard_popup_hint_line()),
items, items,
initial_selected_idx, initial_selected_idx,
@@ -342,7 +342,7 @@ mod tests {
CommandItem::UserPrompt(_) => None, CommandItem::UserPrompt(_) => None,
}) })
.collect(); .collect();
assert_eq!(cmds, vec!["model", "mention", "mcp"]); assert_eq!(cmds, vec!["model", "mention", "mcp", "multi-agents"]);
} }
#[test] #[test]
+1 -1
View File
@@ -3609,7 +3609,7 @@ impl ChatWidget {
} }
self.open_collaboration_modes_popup(); self.open_collaboration_modes_popup();
} }
SlashCommand::Agent => { SlashCommand::Agent | SlashCommand::MultiAgents => {
self.app_event_tx.send(AppEvent::OpenAgentPicker); self.app_event_tx.send(AppEvent::OpenAgentPicker);
} }
SlashCommand::Approvals => { SlashCommand::Approvals => {
+3 -2
View File
@@ -53,6 +53,7 @@ pub enum SlashCommand {
Realtime, Realtime,
Settings, Settings,
TestApproval, TestApproval,
MultiAgents,
// Debugging commands. // Debugging commands.
#[strum(serialize = "debug-m-drop")] #[strum(serialize = "debug-m-drop")]
MemoryDrop, MemoryDrop,
@@ -93,7 +94,7 @@ impl SlashCommand {
SlashCommand::Settings => "configure realtime microphone/speaker", SlashCommand::Settings => "configure realtime microphone/speaker",
SlashCommand::Plan => "switch to Plan mode", SlashCommand::Plan => "switch to Plan mode",
SlashCommand::Collab => "change collaboration mode (experimental)", 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::Approvals => "choose what Codex is allowed to do",
SlashCommand::Permissions => "choose what Codex is allowed to do", SlashCommand::Permissions => "choose what Codex is allowed to do",
SlashCommand::ElevateSandbox => "set up elevated agent sandbox", SlashCommand::ElevateSandbox => "set up elevated agent sandbox",
@@ -167,7 +168,7 @@ impl SlashCommand {
SlashCommand::Realtime => true, SlashCommand::Realtime => true,
SlashCommand::Settings => true, SlashCommand::Settings => true,
SlashCommand::Collab => true, SlashCommand::Collab => true,
SlashCommand::Agent => true, SlashCommand::Agent | SlashCommand::MultiAgents => true,
SlashCommand::Statusline => false, SlashCommand::Statusline => false,
SlashCommand::Theme => false, SlashCommand::Theme => false,
} }