feat: Add btw alias for side slash command (#23592)

This commit is contained in:
anp-oai
2026-05-20 08:49:35 -07:00
committed by GitHub
Unverified
parent e9f59e30d9
commit f198ca115b
7 changed files with 279 additions and 16 deletions
+7 -2
View File
@@ -38,6 +38,7 @@ pub enum SlashCommand {
Goal,
Agent,
Side,
Btw,
Copy,
Raw,
Diff,
@@ -114,7 +115,9 @@ impl SlashCommand {
SlashCommand::Plan => "switch to Plan mode",
SlashCommand::Goal => "set or view the goal for a long-running task",
SlashCommand::Agent | SlashCommand::MultiAgents => "switch the active agent thread",
SlashCommand::Side => "start a side conversation in an ephemeral fork",
SlashCommand::Side | SlashCommand::Btw => {
"start a side conversation in an ephemeral fork"
}
SlashCommand::Permissions => "choose what Codex is allowed to do",
SlashCommand::Keymap => "remap TUI shortcuts",
SlashCommand::Vim => "toggle Vim mode for the composer",
@@ -154,6 +157,7 @@ impl SlashCommand {
| SlashCommand::Raw
| SlashCommand::Pets
| SlashCommand::Side
| SlashCommand::Btw
| SlashCommand::Resume
| SlashCommand::SandboxReadRoot
)
@@ -217,7 +221,8 @@ impl SlashCommand {
| SlashCommand::Ide
| SlashCommand::Quit
| SlashCommand::Exit
| SlashCommand::Side => true,
| SlashCommand::Side
| SlashCommand::Btw => true,
SlashCommand::Rollout => true,
SlashCommand::TestApproval => true,
SlashCommand::Realtime => true,