Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

updating comment to better indicate intent of skipping `quit` in the main slash command menu (#10186)

natea-oaica9d417633ad
diff --git a/codex-rs/tui/src/bottom_pane/command_popup.rs b/codex-rs/tui/src/bottom_pane/command_popup.rs
index 5423231db8..621683923d 100644
--- a/codex-rs/tui/src/bottom_pane/command_popup.rs
+++ b/codex-rs/tui/src/bottom_pane/command_popup.rs
@@ -122,7 +122,8 @@ impl CommandPopup {
if filter.is_empty() {
// Built-ins first, in presentation order.
for (_, cmd) in self.builtins.iter() {
- // Skipping quit as it's a duplicate of exit.
+ // Hide alias commands in the default popup list so each unique action appears once.
+ // `quit` is an alias of `exit`, so we skip `quit` here.
if *cmd == SlashCommand::Quit {
continue;
}