Show subagent navigation shortcuts in TUI help (#53153)

## What changed

Add `Alt+Left` / `Alt+Right` to the shortcut overlay's Session group as “Subagents (empty prompt)”, using the existing previous/next agent binding labels.

## Testing

Update shortcut help snapshots for narrow and wide layouts, configured bindings, and running sessions to include the new entry.

GitOrigin-RevId: 534be840e1fe5646cfb9465e78049322d7e72b4c
This commit is contained in:
Eric Traut
2026-10-11 15:50:39 +00:00
committed by copyberry
parent 41fd60f561
commit 8553558345
14 changed files with 136 additions and 117 deletions
@@ -12,14 +12,15 @@ shortcut help:
Keyboard shortcuts
Compose Session
/ Commands tab Send message
@ Mention files ⌥, Less reasoning
! Shell command ⌥. More reasoning
⌃j New line f4 Inspect activity
⌃v Paste image ⌃c Quit
⌃g External editor
⌃r Search history Transcript (open first)
esc esc Edit last message ⌃t Open transcript
/ Commands tab Send message
@ Mention files ⌥, Less reasoning
! Shell command ⌥. More reasoning
⌃j New line ⌥← / ⌥→ Subagents (empty prompt)
⌃v Paste image f4 Inspect activity
⌃g External editor ⌃c Quit
⌃r Search history
esc esc Edit last message Transcript (open first)
⌃t Open transcript
f3 Find text
pgup / pgdn Scroll
⌃space Start selection
@@ -47,14 +48,15 @@ shortcut help:
Keyboard shortcuts
Compose Session
/ Commands tab Send message
@ Mention files ⌥, Less reasoning
! Shell command ⌥. More reasoning
⌃j New line f4 Inspect activity
⌃v Paste image ⌃c Quit
⌃g External editor
⌃r Search history Transcript (open first)
esc esc Edit last message ⌃t Open transcript
/ Commands tab Send message
@ Mention files ⌥, Less reasoning
! Shell command ⌥. More reasoning
⌃j New line ⌥← / ⌥→ Subagents (empty prompt)
⌃v Paste image f4 Inspect activity
⌃g External editor ⌃c Quit
⌃r Search history
esc esc Edit last message Transcript (open first)
⌃t Open transcript
f3 Find text
pgup / pgdn Scroll
⌃space Start selection
@@ -6,14 +6,15 @@ shortcut help:
Keyboard shortcuts
Compose Session
/ Commands tab Send message
@ Mention files ⌥, Less reasoning
! Shell command ⌥. More reasoning
⌃j New line f4 Inspect activity
⌃v Paste image ⌃c Quit
⌃g External editor
⌃r Search history Transcript (open first)
esc esc Edit last message ⌃t Open transcript
/ Commands tab Send message
@ Mention files ⌥, Less reasoning
! Shell command ⌥. More reasoning
⌃j New line ⌥← / ⌥→ Subagents (empty prompt)
⌃v Paste image f4 Inspect activity
⌃g External editor ⌃c Quit
⌃r Search history
esc esc Edit last message Transcript (open first)
⌃t Open transcript
f3 Find text
pgup / pgdn Scroll
⌃space Start selection
@@ -13,13 +13,13 @@ expression: "snapshots.join(\"\\n---\\n\")"
Keyboard shortcuts
Compose Session Transcript (open first)
/ Commands tab Send message ⌃t Open transcript
@ Mention files ⌥, Less reasoning f3 Find text
! Shell command ⌥. More reasoning pgup / pgdn Scroll
⌃j New line f4 Inspect activity ⌃space Start selection
⌃v Paste image ⌃c Quit ⌃home / ⌃end Top / latest
⌃g External editor ⇧⌥, / ⇧⌥. Top / latest
Compose Session Transcript (open first)
/ Commands tab Send message ⌃t Open transcript
@ Mention files ⌥, Less reasoning f3 Find text
! Shell command ⌥. More reasoning pgup / pgdn Scroll
⌃j New line ⌥← / ⌥→ Subagents (empty prompt) ⌃space Start selection
⌃v Paste image f4 Inspect activity ⌃home / ⌃end Top / latest
⌃g External editor ⌃c Quit ⇧⌥, / ⇧⌥. Top / latest
⌃r Search history
esc esc Edit last message
@@ -41,13 +41,13 @@ expression: "snapshots.join(\"\\n---\\n\")"
Keyboard shortcuts
Compose Session Transcript (open first)
/ Commands tab Send message ⌃t Open transcript
@ Mention files ⌥, Less reasoning f3 Find text
! Shell command ⌥. More reasoning pgup / pgdn Scroll
⌃j New line ⌃x t Inspect activity ⌃space Start selection
⌃v Paste image ⌃c Quit ⌃home / ⌃end Top / latest
⌃g External editor ⇧⌥, / ⇧⌥. Top / latest
Compose Session Transcript (open first)
/ Commands tab Send message ⌃t Open transcript
@ Mention files ⌥, Less reasoning f3 Find text
! Shell command ⌥. More reasoning pgup / pgdn Scroll
⌃j New line ⌥← / ⌥→ Subagents (empty prompt) ⌃space Start selection
⌃v Paste image ⌃x t Inspect activity ⌃home / ⌃end Top / latest
⌃g External editor ⌃c Quit ⇧⌥, / ⇧⌥. Top / latest
⌃r Search history
esc esc Edit last message
@@ -69,13 +69,13 @@ expression: "snapshots.join(\"\\n---\\n\")"
Keyboard shortcuts
Compose Session Transcript (open first)
/ Commands tab Send message ⌃t Open transcript
@ Mention files ⌥, Less reasoning f3 Find text
! Shell command ⌥. More reasoning pgup / pgdn Scroll
⌃j New line ⌃c Quit ⌃space Start selection
⌃v Paste image ⌃home / ⌃end Top / latest
⌃g External editor ⇧⌥, / ⇧⌥. Top / latest
Compose Session Transcript (open first)
/ Commands tab Send message ⌃t Open transcript
@ Mention files ⌥, Less reasoning f3 Find text
! Shell command ⌥. More reasoning pgup / pgdn Scroll
⌃j New line ⌥← / ⌥→ Subagents (empty prompt) ⌃space Start selection
⌃v Paste image ⌃c Quit ⌃home / ⌃end Top / latest
⌃g External editor ⇧⌥, / ⇧⌥. Top / latest
⌃r Search history
esc esc Edit last message
@@ -23,11 +23,12 @@ expression: text
esc esc Edit last message
Session
tab Send message
⌥, Less reasoning
⌥. More reasoning
f4 Inspect activity
⌃c Quit
tab Send message
⌥, Less reasoning
⌥. More reasoning
⌥← / ⌥→ Subagents (empty prompt)
f4 Inspect activity
⌃c Quit
Transcript (open first)
⌃t Open transcript
@@ -12,13 +12,13 @@ expression: text
Keyboard shortcuts
Compose Session Transcript (open first)
/ Commands tab Send message ⌃t Open transcript
@ Mention files ⌥, Less reasoning f3 Find text
! Shell command ⌥. More reasoning pgup / pgdn Scroll
⌃j New line f4 Inspect activity ⌃space Start selection
⌃v Paste image ⌃c Quit ⌃home / ⌃end Top / latest
⌃g External editor ⇧⌥, / ⇧⌥. Top / latest
Compose Session Transcript (open first)
/ Commands tab Send message ⌃t Open transcript
@ Mention files ⌥, Less reasoning f3 Find text
! Shell command ⌥. More reasoning pgup / pgdn Scroll
⌃j New line ⌥← / ⌥→ Subagents (empty prompt) ⌃space Start selection
⌃v Paste image f4 Inspect activity ⌃home / ⌃end Top / latest
⌃g External editor ⌃c Quit ⇧⌥, / ⇧⌥. Top / latest
⌃r Search history
esc esc Edit last message
@@ -6,6 +6,8 @@
use super::footer::FooterProps;
use crate::key_hint;
use crate::multi_agents::next_agent_shortcut;
use crate::multi_agents::previous_agent_shortcut;
use crate::shortcut_help::Group;
use crate::shortcut_help::Shortcut;
use crate::style::accent_color;
@@ -75,6 +77,14 @@ pub(super) fn lines(props: &FooterProps, width: u16) -> Vec<Line<'static>> {
session.push(hints.reasoning_up, "More reasoning");
session.push(hints.toggle_voice, "Voice");
session.push(hints.agents, "Agents (empty prompt)");
session.entries.push(Shortcut {
key: format!(
"{} / {}",
previous_agent_shortcut().display_label(),
next_agent_shortcut().display_label()
),
action: "Subagents (empty prompt)",
});
session.push(hints.focus_activity, "Inspect activity");
session.entries.push(Shortcut::new(
key_hint::ctrl(KeyCode::Char('c')),
@@ -5,14 +5,15 @@ expression: terminal.backend()
" Keyboard shortcuts "
" "
" Compose Session "
" / Commands tab Send message "
" @ Mention files ⌥, Less reasoning "
" ! Shell command ⌥. More reasoning "
" ⌃j New line ← Agents (empty prompt) "
" ⌃v Paste image f4 Inspect activity "
" ⌃g External editor ⌃c Quit "
" ⌃r Search history "
" esc esc Edit last message Transcript (open first) "
" / Commands tab Send message "
" @ Mention files ⌥, Less reasoning "
" ! Shell command ⌥. More reasoning "
" ⌃j New line ← Agents (empty prompt) "
" ⌃v Paste image ⌥← / ⌥→ Subagents (empty prompt) "
" ⌃g External editor f4 Inspect activity "
" ⌃r Search history ⌃c Quit "
" esc esc Edit last message "
" Transcript (open first) "
" ⌃t Open transcript "
" f3 Find text "
" pgup / pgdn Scroll "
@@ -4,13 +4,13 @@ expression: terminal.backend()
---
" Keyboard shortcuts "
" "
" Compose Session Transcript (open first) "
" / Commands tab Send message ⌃t Open transcript "
" @ Mention files ⌥, Less reasoning f3 Find text "
" ! Shell command ⌥. More reasoning pgup / pgdn Scroll "
" ⌃x enter New line f4 Inspect activity ⌃space Start selection "
" ⌃v Paste image ⌃c Quit ⌃home / ⌃end Top / latest "
" ⌃g ⌃g External editor ⇧⌥, / ⇧⌥. Top / latest "
" Compose Session Transcript (open first) "
" / Commands tab Send message ⌃t Open transcript "
" @ Mention files ⌥, Less reasoning f3 Find text "
" ! Shell command ⌥. More reasoning pgup / pgdn Scroll "
" ⌃x enter New line ⌥← / ⌥→ Subagents (empty prompt) ⌃space Start selection "
" ⌃v Paste image f4 Inspect activity ⌃home / ⌃end Top / latest "
" ⌃g ⌃g External editor ⌃c Quit ⇧⌥, / ⇧⌥. Top / latest "
" ⌃r Search history "
" esc esc Edit last message "
" "
@@ -4,13 +4,13 @@ expression: terminal.backend()
---
" Keyboard shortcuts "
" "
" Compose Session Transcript (open first) "
" / Commands tab Send message ⌃t Open transcript "
" @ Mention files ⌥, Less reasoning f3 Find text "
" ! Shell command ⌥. More reasoning pgup / pgdn Scroll "
" ⇧enter New line f4 Inspect activity ⌃space Start selection "
" ⌃v Paste image ⌃c Quit ⌃home / ⌃end Top / latest "
" ⌃g External editor ⇧⌥, / ⇧⌥. Top / latest "
" Compose Session Transcript (open first) "
" / Commands tab Send message ⌃t Open transcript "
" @ Mention files ⌥, Less reasoning f3 Find text "
" ! Shell command ⌥. More reasoning pgup / pgdn Scroll "
" ⇧enter New line ⌥← / ⌥→ Subagents (empty prompt) ⌃space Start selection "
" ⌃v Paste image f4 Inspect activity ⌃home / ⌃end Top / latest "
" ⌃g External editor ⌃c Quit ⇧⌥, / ⇧⌥. Top / latest "
" ⌃r Search history "
" esc Edit last message "
" "
@@ -4,13 +4,13 @@ expression: terminal.backend()
---
" Keyboard shortcuts "
" "
" Compose Session Transcript (open first) "
" / Commands tab Queue message ⌃t Open transcript "
" @ Mention files ⌥, Less reasoning f3 Find text "
" ! Shell command ⌥. More reasoning pgup / pgdn Scroll "
" ⇧enter New line f4 Inspect activity ⌃space Start selection "
" ⌃v Paste image ⌃c Quit ⌃home / ⌃end Top / latest "
" ⌃g External editor ⇧⌥, / ⇧⌥. Top / latest "
" Compose Session Transcript (open first) "
" / Commands tab Queue message ⌃t Open transcript "
" @ Mention files ⌥, Less reasoning f3 Find text "
" ! Shell command ⌥. More reasoning pgup / pgdn Scroll "
" ⇧enter New line ⌥← / ⌥→ Subagents (empty prompt) ⌃space Start selection "
" ⌃v Paste image f4 Inspect activity ⌃home / ⌃end Top / latest "
" ⌃g External editor ⌃c Quit ⇧⌥, / ⇧⌥. Top / latest "
" ⌃r Search history "
" esc esc Edit last message "
" "
@@ -5,14 +5,15 @@ expression: terminal.backend()
" Keyboard shortcuts "
" "
" Compose Session "
" / Commands tab Send message "
" @ Mention files ⇧tab Change mode "
" ! Shell command ⌥, Less reasoning "
" ⌃j New line ⌥. More reasoning "
" ⌃v Paste image f8 Voice "
" ⌃g External editor f4 Inspect activity "
" ⌃r Search history ⌃c Quit "
" esc esc Edit last message "
" / Commands tab Send message "
" @ Mention files ⇧tab Change mode "
" ! Shell command ⌥, Less reasoning "
" ⌃j New line ⌥. More reasoning "
" ⌃v Paste image f8 Voice "
" ⌃g External editor ⌥← / ⌥→ Subagents (empty prompt) "
" ⌃r Search history f4 Inspect activity "
" esc esc Edit last message ⌃c Quit "
" "
" Transcript (open first) "
" ⌃t Open transcript "
" f3 Find text "
@@ -5,14 +5,15 @@ expression: terminal.backend()
" Keyboard shortcuts "
" "
" Compose Session "
" / Commands tab Queue message "
" @ Mention files ⌥, Less reasoning "
" ! Shell command ⌥. More reasoning "
" ⌃j New line f8 Voice "
" ⌃v Paste image f4 Inspect activity "
" ⌃g External editor ⌃c Interrupt "
" ⌃r Search history "
" esc esc Edit last message Transcript (open first) "
" / Commands tab Queue message "
" @ Mention files ⌥, Less reasoning "
" ! Shell command ⌥. More reasoning "
" ⌃j New line f8 Voice "
" ⌃v Paste image ⌥← / ⌥→ Subagents (empty prompt) "
" ⌃g External editor f4 Inspect activity "
" ⌃r Search history ⌃c Interrupt "
" esc esc Edit last message "
" Transcript (open first) "
" ⌃t Open transcript "
" f3 Find text "
" pgup / pgdn Scroll "
@@ -5,14 +5,15 @@ expression: terminal.backend()
" Keyboard shortcuts "
" "
" Compose Session "
" / Commands tab Send message "
" @ Mention files ⌥, Less reasoning "
" ! Shell command ⌥. More reasoning "
" ⇧enter New line f8 Voice "
" ⌃v Paste image f4 Inspect activity "
" ⌃g External editor ⌃c Quit "
" ⌃r Search history "
" esc Edit last message Transcript (open first) "
" / Commands tab Send message "
" @ Mention files ⌥, Less reasoning "
" ! Shell command ⌥. More reasoning "
" ⇧enter New line f8 Voice "
" ⌃v Paste image ⌥← / ⌥→ Subagents (empty prompt) "
" ⌃g External editor f4 Inspect activity "
" ⌃r Search history ⌃c Quit "
" esc Edit last message "
" Transcript (open first) "
" ⌃t Open transcript "
" f3 Find text "
" pgup / pgdn Scroll "
@@ -5,13 +5,14 @@ expression: terminal.backend()
" Keyboard shortcuts "
" "
" Compose Session "
" / Commands tab Send message "
" @ Mention files ⇧tab Change mode "
" ! Shell command ⌥. More reasoning "
" ⇧enter New line f8 Voice "
" ⌃⌥v Paste image ← Agents (empty prompt) "
" ⌃x ⌃e External editor f4 Inspect activity "
" esc Edit last message ⌃c Quit "
" / Commands tab Send message "
" @ Mention files ⇧tab Change mode "
" ! Shell command ⌥. More reasoning "
" ⇧enter New line f8 Voice "
" ⌃⌥v Paste image ← Agents (empty prompt) "
" ⌃x ⌃e External editor ⌥← / ⌥→ Subagents (empty prompt) "
" esc Edit last message f4 Inspect activity "
" ⌃c Quit "
" "
" Transcript (open first) "
" ⌃t Open transcript "