Refresh terminal tips and show configured leader and agent shortcuts (#63176)

## What changed

Update the tips to cover inline mentions, steering a running turn, and
current command usage such as copying content with `/copy`. Explain how
to enter key chords and show the configured leader key. Use the active
keymap for tips on opening the agent command center and archiving a
thread there. Skip tips when a referenced binding is unavailable.

## Testing

Expand the 40-column snapshot to cover default and remapped shortcuts
alongside tips without keybinding placeholders. Check that the leader
tip is skipped when the leader key is unbound.

GitOrigin-RevId: 2a12e4021abc0365514d8e41889a4b4e9a7150ce
This commit is contained in:
Benjamin Carlsson
2026-11-22 19:23:56 +00:00
committed by copyberry
parent 7085656b5e
commit 61cb947f05
4 changed files with 271 additions and 73 deletions
+52 -40
View File
@@ -1,47 +1,59 @@
# Tips support Markdown: **emphasis**, `code`, and [label](https://example.com) links.
# Tips may use {key:context.action} to insert the configured primary key or chord.
# A tip is skipped if any referenced action is unbound or unavailable.
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 **/permissions** 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 **/statusline** to configure which items appear in the status line.
Use **/fork** to branch the current chat into a new thread.
Use **/side** to start a side conversation in a temporary fork without polluting the main thread.
Use **/init** to create an `AGENTS.md` with project-specific guidance.
Use **/mcp** to list configured MCP tools.
Use **/rename** to rename your threads for easier thread resuming.
Use the OpenAI docs MCP for API questions; enable it with `codex mcp add openaiDeveloperDocs --url https://developers.openai.com/mcp`.
Visit the [Codex community forum](https://community.openai.com/c/codex/37).
You can run any shell command from Codex using `!` (e.g. `!ls`)
Type `/` to open the command popup; `Tab` autocompletes slash commands.
When the composer is empty, press `Esc` to step back and edit your last message; `Enter` confirms.
Press {key:composer.queue} to queue a message when a task is running; otherwise it sends immediately (except `!`).
Use **/keymap** to configure keyboard shortcuts.
Paste an image with `Ctrl+V` to attach it to your next message.
You can resume a previous conversation by running `codex resume`
Use **/copy** or press {key:global.copy} to copy the latest agent response as Markdown.
Use **/vim** to toggle Vim editing in the composer.
Moving from Claude Code? Use **/import** to bring over your setup, project, and recent chats.
Use **/hooks** to view and manage lifecycle hooks.
Use **/archive** to archive the current session.
When worktree support is available, use **/worktree** to start or continue a conversation in a separate Git worktree.
Coming back to a conversation? Use **/recap** to summarize it.
When voice is available, use **/voice** to start or stop a voice conversation, or **/voice settings** to choose a voice.
When goals are enabled, use **/goal** to set or inspect the objective for a long-running task.
Use **/agents** to open the agent command center.
Use **/subagents** to switch between this session’s subagents.
Use **/export** to save your conversation as Markdown.
When signed in with ChatGPT, use **/usage** to check your account usage and access available usage limit resets.
Use **/title** to choose what appears in your terminal’s title.
Use **/theme** to choose a syntax highlighting theme.
When plugins are enabled, use **/plugins** to browse plugins.
Start a fresh idea with `/new`. Your existing session will be saved.
Use `/feedback` to collect and (optionally) send logs to OpenAI when something looks off.
Switch models or reasoning efforts with `/model`.
Use `/permissions` 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.
Type `$` to mention a skill inline.
Type `@` to mention a skill, plugin, or other artifact inline.
Use `/status` to see the current model, approvals, token usage, and more.
Use `/statusline` to configure which items appear in the area below the composer.
Use `/fork` to branch the current chat into a new one.
Use `/side` to start a side conversation in a fork without polluting the main thread.
Use `/btw` as an alternative to `/side`.
Use `/init` to create an `AGENTS.md` with project-specific guidance.
Use `/mcp` to list configured Model Context Protocol tools.
Use `/rename <name>` to rename your thread for easy finding later.
Use `/rename` with no arguments to get a suggested name for the current thread.
Run `codex mcp add openaiDeveloperDocs --url https://developers.openai.com/mcp` to enable the OpenAI documentation MCP in Codex.
Visit the [OpenAI Developer Community](https://community.openai.com/c/codex/37) to share ideas with other Codex users.
In a local conversation, you can run shell commands by starting your turn with `!` (e.g. `!ls`).
Start a message with `/` to autocomplete slash commands.
In the main chat, type `Esc Esc` from an empty, idle composer to browse and edit your past turns.
Codex supports key chords. When you see a keybind with a space like `a b`, it means press and release `a`, then press and release `b`.
The leader key is {key:global.leader}. Press it to begin common key chords.
You can submit a turn while Codex is working to steer its behavior.
Press {key:composer.queue} to queue a message while Codex is working. It will be sent when Codex finishes its turn.
Use `/keymap` to configure keyboard shortcuts.
Paste an image with `ctrl+v` to attach it to your message.
You can get straight to your list of agents from a shell with `codex agents`.
Press {key:global.copy} to copy the latest agent response as Markdown.
Use `/copy` to copy a recent turn, blockquote, or code block to your clipboard.
Use `/vim` to toggle Vim editing.
Moving from another tool? Use `/import` to bring over your setup, project, and recent chats.
Use `/hooks` to view and manage lifecycle hooks.
Use `/archive` to archive the current session.
When worktree support is available, use `/worktree` to start or continue a conversation in a separate Git worktree.
Use `codex --worktree` to start a thread in a worktree directly from the shell.
Coming back to a conversation? Use `/recap` to summarize it.
When voice is available, use `/voice` to start or stop a voice conversation.
When voice is available, use `/voice settings` to choose which voice Codex uses in voice mode.
When goals are enabled, use `/goal` to set or inspect the objective for a long-running task.
Use `/agents` to open the agent command center.
Use {key:global.open_agents} to open the agent command center.
In the agent command center, use {key:agents.archive} to archive the selected thread.
Use `/subagents` to navigate between this session’s subagents.
Use `/export` to save your conversation as Markdown.
When signed in with ChatGPT, use `/usage` to check your account usage and access available usage limit resets.
Use `/title` to choose what appears in your terminal’s title.
Use `/theme` to choose a syntax highlighting theme.
When plugins are enabled, use `/plugins` to browse plugins.
Press {key:global.open_transcript} to open the full transcript.
Press {key:global.find_transcript} to search this conversation.
Press {key:global.open_external_editor} to edit your current draft in an external editor.
Press {key:composer.history_search_previous} to search previously entered prompts.
For models with adjustable reasoning, press {key:chat.increase_reasoning_effort} to increase reasoning effort or {key:chat.decrease_reasoning_effort} to decrease it.
Use {key:chat.open_presets}, then 0–9 to run a preset; Enter browses, s saves, and d deletes.
Press {key:chat.increase_reasoning_effort} to increase reasoning effort or {key:chat.decrease_reasoning_effort} to decrease it.
Use {key:chat.open_presets} to open presets.
+10 -3
View File
@@ -149,11 +149,18 @@ pub(crate) fn render_tooltip(mut template: &str, keymap: Option<&RuntimeKeymap>)
while let Some((prefix, rest)) = template.split_once("{key:") {
let (action, suffix) = rest.split_once('}')?;
let (context, action) = action.split_once('.')?;
let action = keymap_action_id(context, action)?;
let hint = keymap?.primary_hint(action.context, action.action)?;
let keymap = keymap?;
let label = if (context, action) == ("global", "leader") {
keymap.chords.leader.first()?.display_label()
} else {
let action = keymap_action_id(context, action)?;
keymap
.primary_hint(action.context, action.action)?
.display_label()
};
rendered.push_str(prefix);
// A key or two-key chord can contain literal backticks; use a padded code span.
rendered.push_str(&format!("`` {} ``", hint.display_label()));
rendered.push_str(&format!("`` {label} ``"));
template = suffix;
}
rendered.push_str(template);
+23 -10
View File
@@ -9,6 +9,8 @@ use serde_json::json;
fn configured_shortcut_tips_render_at_narrow_width() {
let config = serde_json::from_value(json!({
"global": {
"leader": "f9",
"open_agents": "f11",
"open_transcript": ["ctrl-x t", "f12"],
"find_transcript": "ctrl-x f",
"open_external_editor": "ctrl-x e",
@@ -22,15 +24,19 @@ fn configured_shortcut_tips_render_at_narrow_width() {
"open_presets": "ctrl-x p",
"increase_reasoning_effort": "ctrl-x +",
"decrease_reasoning_effort": "ctrl-x minus"
}
},
"agents": { "archive": "f10" }
}))
.unwrap();
let keymap = RuntimeKeymap::from_config(&config).unwrap();
let mut lines = Vec::new();
for (label, keymap) in [("Default", RuntimeKeymap::defaults()), ("Remapped", keymap)] {
lines.push(label.into());
for template in TOOLTIPS.iter().filter(|tip| tip.contains("{key:")) {
let tip = render_tooltip(template, Some(&keymap)).expect("valid shortcut tip");
for tip in TOOLTIPS
.iter()
.filter(|tip| tip.contains("{key:"))
.filter_map(|template| render_tooltip(template, Some(&keymap)))
{
crate::markdown::append_markdown(
&format!("**Tip:** {tip}"),
Some(40),
@@ -40,13 +46,19 @@ fn configured_shortcut_tips_render_at_narrow_width() {
lines.push("".into());
}
}
// This snapshot owns the preset hint's content and layout; Markdown tests own the
// terminal-default foreground applied to the shared "Tip:" prefix.
for line in lines
.iter_mut()
.filter(|line| line.to_string().contains("then 0–9"))
lines.push("Other tips".into());
for template in RAW_TOOLTIPS
.lines()
.map(str::trim)
.filter(|tip| !tip.is_empty() && !tip.starts_with('#') && !tip.contains("{key:"))
{
line.spans[0].style.fg = None;
crate::markdown::append_markdown(
&format!("**Tip:** {template}"),
Some(40),
/*cwd*/ None,
&mut lines,
);
lines.push("".into());
}
insta::assert_snapshot!(
lines
@@ -59,10 +71,11 @@ fn configured_shortcut_tips_render_at_narrow_width() {
#[test]
fn skips_unbound_or_invalid_placeholders() {
let config = serde_json::from_value(json!({ "global": { "copy": [] } })).unwrap();
let config = serde_json::from_value(json!({ "global": { "copy": [], "leader": [] } })).unwrap();
let keymap = RuntimeKeymap::from_config(&config).unwrap();
for template in [
"Press {key:global.copy} to copy.",
"Press {key:global.leader} to start a chord.",
"Press {key:global.open_transcript} or {key:global.copy}.",
"Press {key:global.missing}.",
"Press {key:missing.copy}.",
@@ -3,12 +3,18 @@ source: tui/src/tooltips/keybinding_tests.rs
expression: "lines.iter().map(|line| format!(\"{line:?}\")).collect::<Vec<_>>().join(\"\\n\")"
---
Line::from("Default")
Line::from_iter([Span::from("Tip:").fg(Color::Reset).bold(), Span::from(" Press "), Span::from("tab").fg(Color::Rgb(166, 227, 161)), Span::from(" to queue a message when a")])
Line::from("task is running; otherwise it sends")
Line::from_iter([Span::from("immediately (except "), Span::from("!").fg(Color::Rgb(166, 227, 161)), Span::from(").")])
Line::from_iter([Span::from("Tip:").fg(Color::Reset).bold(), Span::from(" The leader key is "), Span::from("⌃x").fg(Color::Rgb(166, 227, 161)), Span::from(". Press it to")])
Line::from("begin common key chords.")
Line::default()
Line::from_iter([Span::from("Tip:").fg(Color::Reset).bold(), Span::from(" Use "), Span::from("/copy").fg(Color::Reset).bold(), Span::from(" or press "), Span::from("⌃o").fg(Color::Rgb(166, 227, 161)), Span::from(" to copy the")])
Line::from("latest agent response as Markdown.")
Line::from_iter([Span::from("Tip:").fg(Color::Reset).bold(), Span::from(" Press "), Span::from("tab").fg(Color::Rgb(166, 227, 161)), Span::from(" to queue a message while")])
Line::from("Codex is working. It will be sent when")
Line::from("Codex finishes its turn.")
Line::default()
Line::from_iter([Span::from("Tip:").fg(Color::Reset).bold(), Span::from(" Press "), Span::from("⌃o").fg(Color::Rgb(166, 227, 161)), Span::from(" to copy the latest agent")])
Line::from("response as Markdown.")
Line::default()
Line::from_iter([Span::from("Tip:").fg(Color::Reset).bold(), Span::from(" In the agent command center, use "), Span::from("a").fg(Color::Rgb(166, 227, 161))])
Line::from("to archive the selected thread.")
Line::default()
Line::from_iter([Span::from("Tip:").fg(Color::Reset).bold(), Span::from(" Press "), Span::from("⌃t").fg(Color::Rgb(166, 227, 161)), Span::from(" to open the full")])
Line::from("transcript.")
@@ -22,20 +28,27 @@ Line::default()
Line::from_iter([Span::from("Tip:").fg(Color::Reset).bold(), Span::from(" Press "), Span::from("⌃r").fg(Color::Rgb(166, 227, 161)), Span::from(" to search previously")])
Line::from("entered prompts.")
Line::default()
Line::from_iter([Span::from("Tip:").fg(Color::Reset).bold(), Span::from(" For models with adjustable")])
Line::from_iter([Span::from("reasoning, press "), Span::from("⌥.").fg(Color::Rgb(166, 227, 161)), Span::from(" to increase")])
Line::from_iter([Span::from("reasoning effort or "), Span::from("⌥,").fg(Color::Rgb(166, 227, 161)), Span::from(" to decrease it.")])
Line::from_iter([Span::from("Tip:").fg(Color::Reset).bold(), Span::from(" Press "), Span::from("⌥.").fg(Color::Rgb(166, 227, 161)), Span::from(" to increase reasoning")])
Line::from_iter([Span::from("effort or "), Span::from("⌥,").fg(Color::Rgb(166, 227, 161)), Span::from(" to decrease it.")])
Line::default()
Line::from_iter([Span::from("Tip:").bold(), Span::from(" Use "), Span::from("⌃x p").fg(Color::Rgb(166, 227, 161)), Span::from(", then 0–9 to run a preset;")])
Line::from("Enter browses, s saves, and d deletes.")
Line::from_iter([Span::from("Tip:").fg(Color::Reset).bold(), Span::from(" Use "), Span::from("⌃x p").fg(Color::Rgb(166, 227, 161)), Span::from(" to open presets.")])
Line::default()
Line::from("Remapped")
Line::from_iter([Span::from("Tip:").fg(Color::Reset).bold(), Span::from(" Press "), Span::from("⌃x q").fg(Color::Rgb(166, 227, 161)), Span::from(" to queue a message when")])
Line::from("a task is running; otherwise it sends")
Line::from_iter([Span::from("immediately (except "), Span::from("!").fg(Color::Rgb(166, 227, 161)), Span::from(").")])
Line::from_iter([Span::from("Tip:").fg(Color::Reset).bold(), Span::from(" The leader key is "), Span::from("f9").fg(Color::Rgb(166, 227, 161)), Span::from(". Press it to")])
Line::from("begin common key chords.")
Line::default()
Line::from_iter([Span::from("Tip:").fg(Color::Reset).bold(), Span::from(" Use "), Span::from("/copy").fg(Color::Reset).bold(), Span::from(" or press "), Span::from("⌃x `").fg(Color::Rgb(166, 227, 161)), Span::from(" to copy the")])
Line::from("latest agent response as Markdown.")
Line::from_iter([Span::from("Tip:").fg(Color::Reset).bold(), Span::from(" Press "), Span::from("⌃x q").fg(Color::Rgb(166, 227, 161)), Span::from(" to queue a message while")])
Line::from("Codex is working. It will be sent when")
Line::from("Codex finishes its turn.")
Line::default()
Line::from_iter([Span::from("Tip:").fg(Color::Reset).bold(), Span::from(" Press "), Span::from("⌃x `").fg(Color::Rgb(166, 227, 161)), Span::from(" to copy the latest agent")])
Line::from("response as Markdown.")
Line::default()
Line::from_iter([Span::from("Tip:").fg(Color::Reset).bold(), Span::from(" Use "), Span::from("f11").fg(Color::Rgb(166, 227, 161)), Span::from(" to open the agent command")])
Line::from("center.")
Line::default()
Line::from_iter([Span::from("Tip:").fg(Color::Reset).bold(), Span::from(" In the agent command center, use")])
Line::from_iter([Span::from("f10").fg(Color::Rgb(166, 227, 161)), Span::from(" to archive the selected thread.")])
Line::default()
Line::from_iter([Span::from("Tip:").fg(Color::Reset).bold(), Span::from(" Press "), Span::from("⌃x t").fg(Color::Rgb(166, 227, 161)), Span::from(" to open the full")])
Line::from("transcript.")
@@ -49,10 +62,163 @@ Line::default()
Line::from_iter([Span::from("Tip:").fg(Color::Reset).bold(), Span::from(" Press "), Span::from("⌃x r").fg(Color::Rgb(166, 227, 161)), Span::from(" to search previously")])
Line::from("entered prompts.")
Line::default()
Line::from_iter([Span::from("Tip:").fg(Color::Reset).bold(), Span::from(" For models with adjustable")])
Line::from_iter([Span::from("reasoning, press "), Span::from("⌃x +").fg(Color::Rgb(166, 227, 161)), Span::from(" to increase")])
Line::from_iter([Span::from("reasoning effort or "), Span::from("⌃x -").fg(Color::Rgb(166, 227, 161)), Span::from(" to decrease it.")])
Line::from_iter([Span::from("Tip:").fg(Color::Reset).bold(), Span::from(" Press "), Span::from("⌃x +").fg(Color::Rgb(166, 227, 161)), Span::from(" to increase reasoning")])
Line::from_iter([Span::from("effort or "), Span::from("⌃x -").fg(Color::Rgb(166, 227, 161)), Span::from(" to decrease it.")])
Line::default()
Line::from_iter([Span::from("Tip:").bold(), Span::from(" Use "), Span::from("⌃x p").fg(Color::Rgb(166, 227, 161)), Span::from(", then 0–9 to run a preset;")])
Line::from("Enter browses, s saves, and d deletes.")
Line::from_iter([Span::from("Tip:").fg(Color::Reset).bold(), Span::from(" Use "), Span::from("⌃x p").fg(Color::Rgb(166, 227, 161)), Span::from(" to open presets.")])
Line::default()
Line::from("Other tips")
Line::from_iter([Span::from("Tip:").fg(Color::Reset).bold(), Span::from(" Start a fresh idea with "), Span::from("/new").fg(Color::Rgb(166, 227, 161)), Span::from(". Your")])
Line::from("existing session will be saved.")
Line::default()
Line::from_iter([Span::from("Tip:").fg(Color::Reset).bold(), Span::from(" Use "), Span::from("/feedback").fg(Color::Rgb(166, 227, 161)), Span::from(" to collect and")])
Line::from("(optionally) send logs to OpenAI when")
Line::from("something looks off.")
Line::default()
Line::from_iter([Span::from("Tip:").fg(Color::Reset).bold(), Span::from(" Switch models or reasoning efforts")])
Line::from_iter([Span::from("with "), Span::from("/model").fg(Color::Rgb(166, 227, 161)), Span::from(".")])
Line::default()
Line::from_iter([Span::from("Tip:").fg(Color::Reset).bold(), Span::from(" Use "), Span::from("/permissions").fg(Color::Rgb(166, 227, 161)), Span::from(" to control when")])
Line::from("Codex asks for confirmation.")
Line::default()
Line::from_iter([Span::from("Tip:").fg(Color::Reset).bold(), Span::from(" Run "), Span::from("/review").fg(Color::Rgb(166, 227, 161)), Span::from(" to get a code review of")])
Line::from("your current changes.")
Line::default()
Line::from_iter([Span::from("Tip:").fg(Color::Reset).bold(), Span::from(" Use "), Span::from("/skills").fg(Color::Rgb(166, 227, 161)), Span::from(" to list available")])
Line::from("skills or ask Codex to use one.")
Line::default()
Line::from_iter([Span::from("Tip:").fg(Color::Reset).bold(), Span::from(" Type "), Span::from("$").fg(Color::Rgb(166, 227, 161)), Span::from(" to mention a skill inline.")])
Line::default()
Line::from_iter([Span::from("Tip:").fg(Color::Reset).bold(), Span::from(" Type "), Span::from("@").fg(Color::Rgb(166, 227, 161)), Span::from(" to mention a skill, plugin,")])
Line::from("or other artifact inline.")
Line::default()
Line::from_iter([Span::from("Tip:").fg(Color::Reset).bold(), Span::from(" Use "), Span::from("/status").fg(Color::Rgb(166, 227, 161)), Span::from(" to see the current")])
Line::from("model, approvals, token usage, and more.")
Line::default()
Line::from_iter([Span::from("Tip:").fg(Color::Reset).bold(), Span::from(" Use "), Span::from("/statusline").fg(Color::Rgb(166, 227, 161)), Span::from(" to configure which")])
Line::from("items appear in the area below the")
Line::from("composer.")
Line::default()
Line::from_iter([Span::from("Tip:").fg(Color::Reset).bold(), Span::from(" Use "), Span::from("/fork").fg(Color::Rgb(166, 227, 161)), Span::from(" to branch the current")])
Line::from("chat into a new one.")
Line::default()
Line::from_iter([Span::from("Tip:").fg(Color::Reset).bold(), Span::from(" Use "), Span::from("/side").fg(Color::Rgb(166, 227, 161)), Span::from(" to start a side")])
Line::from("conversation in a fork without polluting")
Line::from("the main thread.")
Line::default()
Line::from_iter([Span::from("Tip:").fg(Color::Reset).bold(), Span::from(" Use "), Span::from("/btw").fg(Color::Rgb(166, 227, 161)), Span::from(" as an alternative to "), Span::from("/").fg(Color::Rgb(166, 227, 161))])
Line::from_iter([Span::from("side").fg(Color::Rgb(166, 227, 161)), Span::from(".")])
Line::default()
Line::from_iter([Span::from("Tip:").fg(Color::Reset).bold(), Span::from(" Use "), Span::from("/init").fg(Color::Rgb(166, 227, 161)), Span::from(" to create an "), Span::from("AGENTS.md").fg(Color::Rgb(166, 227, 161))])
Line::from("with project-specific guidance.")
Line::default()
Line::from_iter([Span::from("Tip:").fg(Color::Reset).bold(), Span::from(" Use "), Span::from("/mcp").fg(Color::Rgb(166, 227, 161)), Span::from(" to list configured Model")])
Line::from("Context Protocol tools.")
Line::default()
Line::from_iter([Span::from("Tip:").fg(Color::Reset).bold(), Span::from(" Use "), Span::from("/rename <name>").fg(Color::Rgb(166, 227, 161)), Span::from(" to rename your")])
Line::from("thread for easy finding later.")
Line::default()
Line::from_iter([Span::from("Tip:").fg(Color::Reset).bold(), Span::from(" Use "), Span::from("/rename").fg(Color::Rgb(166, 227, 161)), Span::from(" with no arguments to")])
Line::from("get a suggested name for the current")
Line::from("thread.")
Line::default()
Line::from_iter([Span::from("Tip:").fg(Color::Reset).bold(), Span::from(" Run "), Span::from("codex mcp add").fg(Color::Rgb(166, 227, 161))])
Line::from(Span::from("openaiDeveloperDocs --url").fg(Color::Rgb(166, 227, 161)))
Line::from_iter([Span::from("https://developers.openai.com/mcp").fg(Color::Rgb(166, 227, 161)), Span::from(" to")])
Line::from("enable the OpenAI documentation MCP in")
Line::from("Codex.")
Line::default()
Line::from_iter([Span::from("Tip:").fg(Color::Reset).bold(), Span::from(" Visit the "), Span::from("OpenAI Developer").fg(Color::Reset).underlined()])
Line::from(Span::from("Community").fg(Color::Reset).underlined())
Line::from_iter([Span::from("("), Span::from("https://community.openai.com/c/codex/37").fg(Color::Reset).underlined(), Span::from(")")])
Line::from("to share ideas with other Codex users.")
Line::default()
Line::from_iter([Span::from("Tip:").fg(Color::Reset).bold(), Span::from(" In a local conversation, you can")])
Line::from("run shell commands by starting your turn")
Line::from_iter([Span::from("with "), Span::from("!").fg(Color::Rgb(166, 227, 161)), Span::from(" (e.g. "), Span::from("!ls").fg(Color::Rgb(166, 227, 161)), Span::from(").")])
Line::default()
Line::from_iter([Span::from("Tip:").fg(Color::Reset).bold(), Span::from(" Start a message with "), Span::from("/").fg(Color::Rgb(166, 227, 161)), Span::from(" to")])
Line::from("autocomplete slash commands.")
Line::default()
Line::from_iter([Span::from("Tip:").fg(Color::Reset).bold(), Span::from(" In the main chat, type "), Span::from("Esc Esc").fg(Color::Rgb(166, 227, 161)), Span::from(" from")])
Line::from("an empty, idle composer to browse and")
Line::from("edit your past turns.")
Line::default()
Line::from_iter([Span::from("Tip:").fg(Color::Reset).bold(), Span::from(" Codex supports key chords. When you")])
Line::from_iter([Span::from("see a keybind with a space like "), Span::from("a b").fg(Color::Rgb(166, 227, 161)), Span::from(", it")])
Line::from_iter([Span::from("means press and release "), Span::from("a").fg(Color::Rgb(166, 227, 161)), Span::from(", then press")])
Line::from_iter([Span::from("and release "), Span::from("b").fg(Color::Rgb(166, 227, 161)), Span::from(".")])
Line::default()
Line::from_iter([Span::from("Tip:").fg(Color::Reset).bold(), Span::from(" You can submit a turn while Codex")])
Line::from("is working to steer its behavior.")
Line::default()
Line::from_iter([Span::from("Tip:").fg(Color::Reset).bold(), Span::from(" Use "), Span::from("/keymap").fg(Color::Rgb(166, 227, 161)), Span::from(" to configure keyboard")])
Line::from("shortcuts.")
Line::default()
Line::from_iter([Span::from("Tip:").fg(Color::Reset).bold(), Span::from(" Paste an image with "), Span::from("ctrl+v").fg(Color::Rgb(166, 227, 161)), Span::from(" to")])
Line::from("attach it to your message.")
Line::default()
Line::from_iter([Span::from("Tip:").fg(Color::Reset).bold(), Span::from(" You can get straight to your list")])
Line::from_iter([Span::from("of agents from a shell with "), Span::from("codex").fg(Color::Rgb(166, 227, 161))])
Line::from_iter([Span::from("agents").fg(Color::Rgb(166, 227, 161)), Span::from(".")])
Line::default()
Line::from_iter([Span::from("Tip:").fg(Color::Reset).bold(), Span::from(" Use "), Span::from("/copy").fg(Color::Rgb(166, 227, 161)), Span::from(" to copy a recent turn,")])
Line::from("blockquote, or code block to your")
Line::from("clipboard.")
Line::default()
Line::from_iter([Span::from("Tip:").fg(Color::Reset).bold(), Span::from(" Use "), Span::from("/vim").fg(Color::Rgb(166, 227, 161)), Span::from(" to toggle Vim editing.")])
Line::default()
Line::from_iter([Span::from("Tip:").fg(Color::Reset).bold(), Span::from(" Moving from another tool? Use "), Span::from("/").fg(Color::Rgb(166, 227, 161))])
Line::from_iter([Span::from("import").fg(Color::Rgb(166, 227, 161)), Span::from(" to bring over your setup,")])
Line::from("project, and recent chats.")
Line::default()
Line::from_iter([Span::from("Tip:").fg(Color::Reset).bold(), Span::from(" Use "), Span::from("/hooks").fg(Color::Rgb(166, 227, 161)), Span::from(" to view and manage")])
Line::from("lifecycle hooks.")
Line::default()
Line::from_iter([Span::from("Tip:").fg(Color::Reset).bold(), Span::from(" Use "), Span::from("/archive").fg(Color::Rgb(166, 227, 161)), Span::from(" to archive the current")])
Line::from("session.")
Line::default()
Line::from_iter([Span::from("Tip:").fg(Color::Reset).bold(), Span::from(" When worktree support is available,")])
Line::from_iter([Span::from("use "), Span::from("/worktree").fg(Color::Rgb(166, 227, 161)), Span::from(" to start or continue a")])
Line::from("conversation in a separate Git worktree.")
Line::default()
Line::from_iter([Span::from("Tip:").fg(Color::Reset).bold(), Span::from(" Use "), Span::from("codex --worktree").fg(Color::Rgb(166, 227, 161)), Span::from(" to start a")])
Line::from("thread in a worktree directly from the")
Line::from("shell.")
Line::default()
Line::from_iter([Span::from("Tip:").fg(Color::Reset).bold(), Span::from(" Coming back to a conversation?")])
Line::from_iter([Span::from("Use "), Span::from("/recap").fg(Color::Rgb(166, 227, 161)), Span::from(" to summarize it.")])
Line::default()
Line::from_iter([Span::from("Tip:").fg(Color::Reset).bold(), Span::from(" When voice is available, use "), Span::from("/voice").fg(Color::Rgb(166, 227, 161))])
Line::from("to start or stop a voice conversation.")
Line::default()
Line::from_iter([Span::from("Tip:").fg(Color::Reset).bold(), Span::from(" When voice is available, use "), Span::from("/voice").fg(Color::Rgb(166, 227, 161))])
Line::from_iter([Span::from("settings").fg(Color::Rgb(166, 227, 161)), Span::from(" to choose which voice Codex")])
Line::from("uses in voice mode.")
Line::default()
Line::from_iter([Span::from("Tip:").fg(Color::Reset).bold(), Span::from(" When goals are enabled, use "), Span::from("/goal").fg(Color::Rgb(166, 227, 161))])
Line::from("to set or inspect the objective for a")
Line::from("long-running task.")
Line::default()
Line::from_iter([Span::from("Tip:").fg(Color::Reset).bold(), Span::from(" Use "), Span::from("/agents").fg(Color::Rgb(166, 227, 161)), Span::from(" to open the agent")])
Line::from("command center.")
Line::default()
Line::from_iter([Span::from("Tip:").fg(Color::Reset).bold(), Span::from(" Use "), Span::from("/subagents").fg(Color::Rgb(166, 227, 161)), Span::from(" to navigate between")])
Line::from("this session’s subagents.")
Line::default()
Line::from_iter([Span::from("Tip:").fg(Color::Reset).bold(), Span::from(" Use "), Span::from("/export").fg(Color::Rgb(166, 227, 161)), Span::from(" to save your")])
Line::from("conversation as Markdown.")
Line::default()
Line::from_iter([Span::from("Tip:").fg(Color::Reset).bold(), Span::from(" When signed in with ChatGPT, use "), Span::from("/").fg(Color::Rgb(166, 227, 161))])
Line::from_iter([Span::from("usage").fg(Color::Rgb(166, 227, 161)), Span::from(" to check your account usage and")])
Line::from("access available usage limit resets.")
Line::default()
Line::from_iter([Span::from("Tip:").fg(Color::Reset).bold(), Span::from(" Use "), Span::from("/title").fg(Color::Rgb(166, 227, 161)), Span::from(" to choose what appears")])
Line::from("in your terminal’s title.")
Line::default()
Line::from_iter([Span::from("Tip:").fg(Color::Reset).bold(), Span::from(" Use "), Span::from("/theme").fg(Color::Rgb(166, 227, 161)), Span::from(" to choose a syntax")])
Line::from("highlighting theme.")
Line::default()
Line::from_iter([Span::from("Tip:").fg(Color::Reset).bold(), Span::from(" When plugins are enabled, use "), Span::from("/").fg(Color::Rgb(166, 227, 161))])
Line::from_iter([Span::from("plugins").fg(Color::Rgb(166, 227, 161)), Span::from(" to browse plugins.")])
Line::default()