fix(tui/help): hide /test-approval and rebrand descriptions to 'Code' in Help panel\n\n- Filter out internal /test-approval from the Ctrl+H list\n- Replace 'Codex' with 'Code' for user-facing descriptions in Help

This commit is contained in:
James Peter
2025-09-08 12:15:24 +10:00
parent 25aa36a31e
commit 5a93aee6f3
+4 -1
View File
@@ -3336,7 +3336,10 @@ impl ChatWidget<'_> {
lines.push(RtLine::from(""));
lines.push(RtLine::from(vec![RtSpan::styled("Slash commands", t_fg.add_modifier(Modifier::BOLD))]));
for (cmd_str, cmd) in crate::slash_command::built_in_slash_commands() {
let desc = cmd.description();
// Hide internal test command from the Help panel
if cmd_str == "test-approval" { continue; }
// Prefer "Code" branding in the Help panel
let desc = cmd.description().replace("Codex", "Code");
// Render as "/command — description"
lines.push(RtLine::from(vec![
RtSpan::styled(format!("/{cmd_str:<12}"), t_fg),