diff --git a/codex-rs/tui/src/bottom_pane/help_view.rs b/codex-rs/tui/src/bottom_pane/help_view.rs index c65c78a9c7..972d6bd859 100644 --- a/codex-rs/tui/src/bottom_pane/help_view.rs +++ b/codex-rs/tui/src/bottom_pane/help_view.rs @@ -19,7 +19,6 @@ use crate::slash_command::built_in_slash_commands; use crate::wrapping::RtOptions; use crate::wrapping::word_wrap_lines; -const HELP_VIEW_MAX_HEIGHT: u16 = 28; const HELP_VIEW_MIN_BODY_ROWS: u16 = 6; pub(crate) struct SlashHelpView { @@ -203,6 +202,6 @@ impl crate::render::renderable::Renderable for SlashHelpView { fn desired_height(&self, width: u16) -> u16 { let content_rows = Self::build_lines(width.saturating_sub(4)).len() as u16; - content_rows.clamp(HELP_VIEW_MIN_BODY_ROWS + 3, HELP_VIEW_MAX_HEIGHT) + content_rows.max(HELP_VIEW_MIN_BODY_ROWS + 3) } } diff --git a/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__slash_help_output.snap b/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__slash_help_output.snap index 56056fb2f6..37b2292018 100644 --- a/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__slash_help_output.snap +++ b/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__slash_help_output.snap @@ -27,4 +27,217 @@ expression: popup /approvals choose what Codex is allowed to do + Usage: + /approvals + /approvals [--confirm-full-access] [--remember-full-access] + [--confirm-world-writable] [--remember-world-writable] [--enable-windows- + sandbox=elevated|legacy] + + /permissions + choose what Codex is allowed to do + Usage: + /permissions + /permissions [--confirm-full-access] [--remember-full-access] + [--confirm-world-writable] [--remember-world-writable] [--enable-windows- + sandbox=elevated|legacy] + + /setup-default-sandbox + set up elevated agent sandbox + Usage: + /setup-default-sandbox + + /experimental + toggle experimental features + Usage: + /experimental + /experimental =on|off ... + + /skills + use skills to improve how Codex performs specific tasks + Usage: + /skills + /skills + + /review + review my current changes and find issues + Usage: + /review + /review uncommitted + /review branch + /review commit [title] + /review + + /rename + rename the current thread + Usage: + /rename + /rename + + /new + start a new chat during a conversation + Usage: + /new + + /resume + resume a saved chat + Usage: + /resume + /resume + + /fork + fork the current chat + Usage: + /fork + + /init + create an AGENTS.md file with instructions for Codex + Usage: + /init + + /compact + summarize conversation to prevent hitting the context limit + Usage: + /compact + + /plan + switch to Plan mode + Usage: + /plan + /plan + + /collab + change collaboration mode (experimental) + Usage: + /collab + /collab + + /agent + switch the active agent thread + Usage: + /agent + /agent + + /diff + show git diff (including untracked files) + Usage: + /diff + + /copy + copy the latest Codex output to your clipboard + Usage: + /copy + + /mention + mention a file + Usage: + /mention + + /status + show current session configuration and token usage + Usage: + /status + + /debug-config + show config layers and requirement sources for debugging + Usage: + /debug-config + + /statusline + configure which items appear in the status line + Usage: + /statusline + /statusline ... + /statusline none + + /theme + choose a syntax highlighting theme + Usage: + /theme + /theme + + /mcp + list configured MCP tools + Usage: + /mcp + + /apps + manage apps + Usage: + /apps + + /logout + log out of Codex + Usage: + /logout + + /quit + exit Codex + Usage: + /quit + + /exit + exit Codex + Usage: + /exit + + /feedback + send logs to maintainers + Usage: + /feedback + /feedback + + /rollout + print the rollout file path + Usage: + /rollout + + /ps + list background terminals + Usage: + /ps + + /clean + stop all background terminals + Usage: + /clean + + /clear + clear the terminal and start a new chat + Usage: + /clear + + /personality + choose a communication style for Codex + Usage: + /personality + /personality + + /realtime + toggle realtime voice mode (experimental) + Usage: + /realtime + + /settings + configure realtime microphone/speaker + Usage: + /settings + /settings [default|] + + /test-approval + test approval request + Usage: + /test-approval + + /multi-agents + switch the active agent thread + Usage: + /multi-agents + /multi-agents + + /debug-m-drop + DO NOT USE + Usage: + /debug-m-drop + + /debug-m-update Scroll with ↑/↓ or pgup/pgdn, close with esc.