diff --git a/codex-rs/tui/src/chatwidget.rs b/codex-rs/tui/src/chatwidget.rs index d62329024c..738a1da027 100644 --- a/codex-rs/tui/src/chatwidget.rs +++ b/codex-rs/tui/src/chatwidget.rs @@ -1482,7 +1482,7 @@ impl ChatWidget { let mut config = config; config.model = Some(model.clone()); let mut rng = rand::rng(); - let placeholder = EXAMPLE_PROMPTS[rng.random_range(0..EXAMPLE_PROMPTS.len())].to_string(); + let placeholder = PLACEHOLDERS[rng.random_range(0..PLACEHOLDERS.len())].to_string(); let codex_op_tx = spawn_agent(config.clone(), app_event_tx.clone(), thread_manager); let mut widget = Self { @@ -1570,7 +1570,7 @@ impl ChatWidget { .. } = common; let mut rng = rand::rng(); - let placeholder = EXAMPLE_PROMPTS[rng.random_range(0..EXAMPLE_PROMPTS.len())].to_string(); + let placeholder = PLACEHOLDERS[rng.random_range(0..PLACEHOLDERS.len())].to_string(); let codex_op_tx = spawn_agent_from_existing(conversation, session_configured, app_event_tx.clone()); @@ -4143,13 +4143,15 @@ impl Notification { const AGENT_NOTIFICATION_PREVIEW_GRAPHEMES: usize = 200; -const EXAMPLE_PROMPTS: [&str; 6] = [ +const PLACEHOLDERS: [&str; 8] = [ "Explain this codebase", "Summarize recent commits", "Implement {feature}", "Find and fix a bug in @filename", "Write tests for @filename", "Improve documentation in @filename", + "Run /review on my current changes", + "Use /skills to list available skills", ]; // Extract the first bold (Markdown) element in the form **...** from `s`. diff --git a/codex-rs/tui/tooltips.txt b/codex-rs/tui/tooltips.txt index 0fdb0ca73b..3ba7931ff1 100644 --- a/codex-rs/tui/tooltips.txt +++ b/codex-rs/tui/tooltips.txt @@ -2,6 +2,13 @@ Use /compact when the conversation gets long to summarize history and free up co Start a fresh idea with /new; the previous session stays in history. Use /feedback to send logs to the maintainers when something looks off. Switch models or reasoning effort quickly with /model. +Use /approvals to control when Codex asks for confirmation. +Run /review to get a code review of your current changes. +Use /skills to list available skills or ask Codex to use one. +Use /status to see the current model, approvals, and token usage. +Use /fork to branch a saved chat into a new thread. +Use /init to create an AGENTS.md with project-specific guidance. +Use /mcp to list configured MCP tools. You can run any shell command from Codex using `!` (e.g. `!ls`) Type / to open the command popup; Tab autocompletes slash commands and saved prompts. You can define your own `/` commands with custom prompts. More info: https://developers.openai.com/codex/guides/slash-commands#create-your-own-slash-commands-with-custom-prompts diff --git a/codex-rs/tui2/src/chatwidget.rs b/codex-rs/tui2/src/chatwidget.rs index 66eebde6b3..55deadf81a 100644 --- a/codex-rs/tui2/src/chatwidget.rs +++ b/codex-rs/tui2/src/chatwidget.rs @@ -1342,7 +1342,7 @@ impl ChatWidget { let mut config = config; config.model = Some(model.clone()); let mut rng = rand::rng(); - let placeholder = EXAMPLE_PROMPTS[rng.random_range(0..EXAMPLE_PROMPTS.len())].to_string(); + let placeholder = PLACEHOLDERS[rng.random_range(0..PLACEHOLDERS.len())].to_string(); let codex_op_tx = spawn_agent(config.clone(), app_event_tx.clone(), thread_manager); let mut widget = Self { @@ -1428,7 +1428,7 @@ impl ChatWidget { .. } = common; let mut rng = rand::rng(); - let placeholder = EXAMPLE_PROMPTS[rng.random_range(0..EXAMPLE_PROMPTS.len())].to_string(); + let placeholder = PLACEHOLDERS[rng.random_range(0..PLACEHOLDERS.len())].to_string(); let codex_op_tx = spawn_agent_from_existing(conversation, session_configured, app_event_tx.clone()); @@ -3874,13 +3874,15 @@ impl Notification { const AGENT_NOTIFICATION_PREVIEW_GRAPHEMES: usize = 200; -const EXAMPLE_PROMPTS: [&str; 6] = [ +const PLACEHOLDERS: [&str; 8] = [ "Explain this codebase", "Summarize recent commits", "Implement {feature}", "Find and fix a bug in @filename", "Write tests for @filename", "Improve documentation in @filename", + "Run /review on my current changes", + "Use /skills to list available skills", ]; // Extract the first bold (Markdown) element in the form **...** from `s`. diff --git a/codex-rs/tui2/tooltips.txt b/codex-rs/tui2/tooltips.txt index 0fdb0ca73b..3ba7931ff1 100644 --- a/codex-rs/tui2/tooltips.txt +++ b/codex-rs/tui2/tooltips.txt @@ -2,6 +2,13 @@ Use /compact when the conversation gets long to summarize history and free up co Start a fresh idea with /new; the previous session stays in history. Use /feedback to send logs to the maintainers when something looks off. Switch models or reasoning effort quickly with /model. +Use /approvals to control when Codex asks for confirmation. +Run /review to get a code review of your current changes. +Use /skills to list available skills or ask Codex to use one. +Use /status to see the current model, approvals, and token usage. +Use /fork to branch a saved chat into a new thread. +Use /init to create an AGENTS.md with project-specific guidance. +Use /mcp to list configured MCP tools. You can run any shell command from Codex using `!` (e.g. `!ls`) Type / to open the command popup; Tab autocompletes slash commands and saved prompts. You can define your own `/` commands with custom prompts. More info: https://developers.openai.com/codex/guides/slash-commands#create-your-own-slash-commands-with-custom-prompts