The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(cli): make function-key workflows reliable on macOS (#120666)
brooklyn!65ad5296eadb
diff --git a/hermes_cli/cli_subagent_monitor.py b/hermes_cli/cli_subagent_monitor.pyindex d41f92d5798..325e6dad20b 100644--- a/hermes_cli/cli_subagent_monitor.py+++ b/hermes_cli/cli_subagent_monitor.py@@ -160,16 +160,17 @@ class SubagentMonitor:if self.collapsed:count = self._counts()# Keep both controls before spending scarce cells on activity. Ctrl+T opens the- # subagent/process monitor, so a goal/queue-only dock offers just F7.+ # subagent/process monitor, so a goal/queue-only dock offers just the+ # collapse/restore shortcut.if self.entries or self.processes:headings = (- f'{self._title()} · {count} · Ctrl+T expand · F7 restore',- f'{count} · Ctrl+T expand · F7 restore',- f'{count} · Ctrl+T · F7',+ f'{self._title()} · {count} · Ctrl+T expand · Ctrl+R restore',+ f'{count} · Ctrl+T expand · Ctrl+R restore',+ f'{count} · Ctrl+T · Ctrl+R',count,)else:- headings = (f'{count} · F7 restore', f'{count} · F7', count)+ headings = (f'{count} · Ctrl+R restore', f'{count} · Ctrl+R', count)width = max(0, columns - 1)heading = next((text for text in headings if get_cwidth(text) <= width), count)activity = self._collapsed_activity()@@ -186,7 +187,7 @@ class SubagentMonitor:agent_count = min(len(self.entries), agent_budget)if self.entries:hidden = len(self.entries) - agent_count- lines.append(_clip(f' Subagents · {len(self.entries)} live · Ctrl+T expand · F7 collapse', columns))+ lines.append(_clip(f' Subagents · {len(self.entries)} live · Ctrl+T expand · Ctrl+R collapse', columns))for row in self.entries[:agent_count]:activity = f"{row['elapsed']}s · " + (f"last: {row['last_tool']}" if row['last_tool'] else row.get('status') or 'starting')# Reserve activity even on narrow terminals; task names use the remainder.@@ -199,7 +200,7 @@ class SubagentMonitor:running = sum(r['status'] == 'running' for r in self.processes)done = len(self.processes) - runningsummary = ' · '.join(p for p in (f'{running} running' if running else '', f'{done} done' if done else '') if p)- controls = ' · Ctrl+T expand · F7 collapse' if not self.entries else ''+ controls = ' · Ctrl+T expand · Ctrl+R collapse' if not self.entries else ''lines.append(_clip(f' Processes · {summary}{controls}', columns))for row in self.processes[:proc_count]:activity = procs.process_activity(row)@@ -210,7 +211,7 @@ class SubagentMonitor:if self.queued:# Last, so the next prompt to run sits right above the input it came from.shown = min(len(self.queued), session_rows.QUEUE_ROWS if rows >= 24 else 1)- controls = '' if self.entries or self.processes else ' · F7 collapse'+ controls = '' if self.entries or self.processes else ' · Ctrl+R collapse'lines.append(_clip(f' Queue · {len(self.queued)} queued · /queue list{controls}', columns))for index, text in enumerate(self.queued[:shown], 1):lines.append(_clip(f' {index}. {text}', columns))diff --git a/hermes_cli/cli_tui_mixin.py b/hermes_cli/cli_tui_mixin.pyindex 0d9ef1d3474..7bc9c1b533b 100644--- a/hermes_cli/cli_tui_mixin.py+++ b/hermes_cli/cli_tui_mixin.py@@ -2059,6 +2059,11 @@ class CLITuiMixin:for key in ('c-t', 'f6'):kb.add(key, filter=Condition(lambda: not modal_prompt_active(self)))(lambda event: open_monitor(self))+ # F7 is retained for terminals that forward the function-key sequence;+ # Ctrl+R is the portable fallback because macOS often reserves F7 for+ # a hardware control unless Fn/globe is held.+ kb.add('c-r', filter=Condition(lambda: not modal_prompt_active(self)))(+ lambda event: toggle_dock(self))kb.add('f7', filter=Condition(lambda: not modal_prompt_active(self)))(lambda event: toggle_dock(self))return kbdiff --git a/tests/hermes_cli/test_session_dock.py b/tests/hermes_cli/test_session_dock.pyindex 8429748351e..412b1922aa5 100644--- a/tests/hermes_cli/test_session_dock.py+++ b/tests/hermes_cli/test_session_dock.py@@ -46,7 +46,7 @@ def test_dock_paints_goal_on_top_and_queue_last_and_follows_their_lifecycle(hermassert all(get_cwidth(line) <= 80 for line in lines)dock.collapsed = Truecollapsed = dock.dock_text(columns=80, rows=40)- assert "\n" not in collapsed and "goal active · 4 queued · F7 restore · ⊙ Goal" in collapsed+ assert "\n" not in collapsed and "goal active · 4 queued · Ctrl+R restore · ⊙ Goal" in collapsedassert "Ctrl+T" not in collapsed # the monitor only lists subagents/processesassert get_cwidth(collapsed) <= 80diff --git a/tests/hermes_cli/test_subagent_dock_collapse.py b/tests/hermes_cli/test_subagent_dock_collapse.pyindex 5b2e89794fd..b045793f4db 100644--- a/tests/hermes_cli/test_subagent_dock_collapse.py+++ b/tests/hermes_cli/test_subagent_dock_collapse.py@@ -84,8 +84,8 @@ def test_collapsed_summary_prioritizes_live_count_and_controls_at_small_widths()text = monitor.dock_text(columns=width, rows=20)assert len(text.splitlines()) == 1assert get_cwidth(text) <= width- if width >= 24:- assert '6 live' in text and 'Ctrl+T' in text and 'F7' in text+ if width >= 40:+ assert '6 live' in text and 'Ctrl+T' in text and 'Ctrl+R' in textif width >= 80:assert 'last: terminal' in textmonitor.entries.clear()diff --git a/tests/hermes_cli/test_subagent_shortcut.py b/tests/hermes_cli/test_subagent_shortcut.pyindex c6e45969227..9f147262a81 100644--- a/tests/hermes_cli/test_subagent_shortcut.py+++ b/tests/hermes_cli/test_subagent_shortcut.py@@ -36,9 +36,19 @@ def test_monitor_shortcuts_preserve_draft_and_respect_modal_prompts(monkeypatch)await asyncio.wait_for(painted.wait(), 3)assert opened.pop() is cliassert (editor.text, editor.buffer.cursor_position) == ('keep my draft', 5)- cli._approval_state = {'options': []}++ for key in ('\x12', '\x1b[18~'):+ editor.buffer.document = Document('keep collapse draft', 5)+ painted.clear()+ pipe.send_text(key)+ await asyncio.wait_for(painted.wait(), 3)+ assert (editor.text, editor.buffer.cursor_position) == ('keep collapse draft', 5)bindings = app.key_bindings- for key in ('c-t', 'f6'):+ assert bindings is not None+ assert any(b.filter() for b in bindings.get_bindings_for_keys(('c-r',)))+ assert any(b.filter() for b in bindings.get_bindings_for_keys(('f7',)))+ cli._approval_state = {'options': []}+ for key in ('c-t', 'f6', 'c-r', 'f7'):assert not any(b.filter() for b in bindings.get_bindings_for_keys((key,)))finally:cli._approval_state = Nonediff --git a/ui-tui/packages/hermes-ink/src/ink/parse-keypress.test.ts b/ui-tui/packages/hermes-ink/src/ink/parse-keypress.test.tsindex 0f4bcc33df4..aab69e53851 100644--- a/ui-tui/packages/hermes-ink/src/ink/parse-keypress.test.ts+++ b/ui-tui/packages/hermes-ink/src/ink/parse-keypress.test.ts@@ -12,6 +12,28 @@ describe('legacy modified return parsing', () => {})})+describe('legacy function-key parsing', () => {+ it.each([+ ['f1', '\x1bOP'],+ ['f2', '\x1bOQ'],+ ['f3', '\x1bOR'],+ ['f4', '\x1bOS'],+ ['f5', '\x1b[15~'],+ ['f6', '\x1b[17~'],+ ['f7', '\x1b[18~'],+ ['f8', '\x1b[19~'],+ ['f9', '\x1b[20~'],+ ['f10', '\x1b[21~'],+ ['f11', '\x1b[23~'],+ ['f12', '\x1b[24~']+ ])('parses %s from its terminal sequence', (name, sequence) => {+ const [keys] = parseMultipleKeypresses(INITIAL_STATE, sequence)++ expect(keys).toHaveLength(1)+ expect(keys[0]).toMatchObject({ name, fn: true, ctrl: false, meta: false, shift: false })+ })+})+describe('parseMultipleKeypresses bracketed paste recovery', () => {it('emits empty bracketed pastes when the terminal sends both markers', () => {const [keys, state] = parseMultipleKeypresses(INITIAL_STATE, PASTE_START + PASTE_END)diff --git a/ui-tui/packages/hermes-ink/src/ink/parse-keypress.ts b/ui-tui/packages/hermes-ink/src/ink/parse-keypress.tsindex 421aa4cca9c..63165643d81 100644--- a/ui-tui/packages/hermes-ink/src/ink/parse-keypress.ts+++ b/ui-tui/packages/hermes-ink/src/ink/parse-keypress.ts@@ -535,6 +535,10 @@ function decodeModifier(modifier: number): {*/function keycodeToName(keycode: number): string | undefined {switch (keycode) {+ // Kitty keyboard protocol functional keys (F13 through F24) are the+ // first function-key codepoints in the private-use range. F1 through F12+ // use their legacy CSI/SS3 sequences below.+case 9:return 'tab'@@ -721,7 +725,7 @@ function parseKeypress(s: string = ''): ParsedKey {return {kind: 'key',name,- fn: false,+ fn: Boolean(name?.startsWith('f')),ctrl: mods.ctrl,meta: mods.meta,shift: mods.shift,@@ -848,6 +852,7 @@ function parseKeypress(s: string = ''): ParsedKey {key.code = codekey.name = keyName[code]+ key.fn = Boolean(key.name?.startsWith('f'))key.shift = isShiftKey(code) || key.shiftkey.ctrl = isCtrlKey(code) || key.ctrl}diff --git a/ui-tui/src/__tests__/agentsCompact.test.tsx b/ui-tui/src/__tests__/agentsCompact.test.tsxindex 59e2cf2c053..0dc46d511a8 100644--- a/ui-tui/src/__tests__/agentsCompact.test.tsx+++ b/ui-tui/src/__tests__/agentsCompact.test.tsx@@ -26,7 +26,7 @@ it('keeps collapsed live chrome to one row without losing count or restore contrconst text = Array.from({ length: cols }, (_, i) => cellAtIndex(view.screen, i).char).join('')expect(text).toContain(`${rows.running} live agents`)expect(text).toContain('Ctrl+T expand')- expect(text).toContain('F7 restore')+ expect(text).toContain('Ctrl+R restore')expect(renderToScreen(<AgentsPanelView cols={cols} {...rows} t={DEFAULT_THEME} />, cols).height).toBeGreaterThan(view.height)diff --git a/ui-tui/src/__tests__/platform.test.ts b/ui-tui/src/__tests__/platform.test.tsindex 7ffaf2c0dfe..4c292d1766e 100644--- a/ui-tui/src/__tests__/platform.test.ts+++ b/ui-tui/src/__tests__/platform.test.ts@@ -60,7 +60,6 @@ describeHost('parseVoiceRecordKey (#18994)', () => {it('parses ctrl+<letter> bindings', () => {expect(parseVoiceRecordKey('ctrl+o')).toEqual({ ch: 'o', mod: 'ctrl', raw: 'ctrl+o' })- expect(parseVoiceRecordKey('Ctrl+R')).toEqual({ ch: 'r', mod: 'ctrl', raw: 'ctrl+r' })})it('parses alt/super aliases', () => {@@ -147,6 +146,7 @@ describeHost('parseVoiceRecordKey (#18994)', () => {expect(parseVoiceRecordKey('ctrl+c')).toEqual(DEFAULT_VOICE_RECORD_KEY)expect(parseVoiceRecordKey('ctrl+d')).toEqual(DEFAULT_VOICE_RECORD_KEY)expect(parseVoiceRecordKey('ctrl+l')).toEqual(DEFAULT_VOICE_RECORD_KEY)+ expect(parseVoiceRecordKey('ctrl+r')).toEqual(DEFAULT_VOICE_RECORD_KEY)// Alt-modifier versions of those letters are NOT intercepted, so// they remain usable.expect(parseVoiceRecordKey('alt+c').mod).toBe('alt')diff --git a/ui-tui/src/app/useInputHandlers.ts b/ui-tui/src/app/useInputHandlers.tsindex 27867214f52..95fde3d48db 100644--- a/ui-tui/src/app/useInputHandlers.ts+++ b/ui-tui/src/app/useInputHandlers.ts@@ -663,17 +663,25 @@ export function useInputHandlers(ctx: InputHandlerContext): InputHandlerResult {return patchOverlayState({ sessions: true })}- // Ctrl+O opens the model picker without disturbing a typed draft — the- // same overlay `/model` opens, but reachable without clearing what you've- // typed to run the command. Works mid-stream: picking a model writes the- // session model (config.set), which the next turn reads while the in-flight- // turn keeps streaming.- if (event.keypress.name === 'f7' && !key.ctrl && !key.meta && !key.shift && !key.super) {+ // Ctrl+R / F7 toggle only changes the live-work dock preview; it does not+ // open the monitor or move composer focus. Ctrl+R is the reliable fallback+ // on macOS terminals that reserve the function row for hardware controls.+ if (+ ((event.keypress.name === 'f7' && !key.ctrl) || isCtrl(key, ch, 'r')) &&+ !key.meta &&+ !key.shift &&+ !key.super+ ) {$agentDockCollapsed.set(!$agentDockCollapsed.get())return}+ // Ctrl+O opens the model picker without disturbing a typed draft — the+ // same overlay `/model` opens, but reachable without clearing what you've+ // typed to run the command. Works mid-stream: picking a model writes the+ // session model (config.set), which the next turn reads while the in-flight+ // turn keeps streaming.if (isCtrl(key, ch, 't')) {return patchOverlayState({ agents: true, agentsInitialHistoryIndex: 0 })}diff --git a/ui-tui/src/components/agentsPanel.tsx b/ui-tui/src/components/agentsPanel.tsxindex 07e937cc3df..9ac4a28f6e2 100644--- a/ui-tui/src/components/agentsPanel.tsx+++ b/ui-tui/src/components/agentsPanel.tsx@@ -94,7 +94,7 @@ export function AgentsPanelView({.join(' · ')const summary = `▸ ${counts}`- const hints = ' · Ctrl+T expand · F7 restore'+ const hints = ' · Ctrl+T expand · Ctrl+R restore'const activityWidth = cols - stringWidth(summary + hints) - 3const firstDetail = rows[0]?.detail ?? processes.rows[0]?.detail ?? ''const activity = firstDetail && activityWidth >= 12 ? ` · ${compactPreview(firstDetail, activityWidth)}` : ''@@ -113,7 +113,7 @@ export function AgentsPanelView({) : null}{!collapsed && running ? (<Text bold color={t.color.accent} wrap="truncate-end">- {`▾ ${running} live agents${hidden ? ` · +${hidden} more` : ''} · Ctrl+T expand · F7 collapse`}+ {`▾ ${running} live agents${hidden ? ` · +${hidden} more` : ''} · Ctrl+T expand · Ctrl+R collapse`}</Text>) : null}{!collapsed &&@@ -130,7 +130,7 @@ export function AgentsPanelView({{!collapsed && processes.total ? (<Text bold color={t.color.accent} wrap="truncate-end">{`▾ Processes · ${processSummary(processes)}${processes.hidden ? ` · +${processes.hidden} more` : ''}${- running ? '' : ' · Ctrl+T expand · F7 collapse'+ running ? '' : ' · Ctrl+T expand · Ctrl+R collapse'}`}</Text>) : null}diff --git a/ui-tui/src/components/textInput.tsx b/ui-tui/src/components/textInput.tsxindex 172795a4f66..daca6ae643f 100644--- a/ui-tui/src/components/textInput.tsx+++ b/ui-tui/src/components/textInput.tsx@@ -1881,7 +1881,7 @@ export const shouldPassThroughToGlobalHandler = ((key.ctrl && input === 'c') ||(key.ctrl && input === 'x') ||(key.ctrl && input === 'o') ||- (key.ctrl && input === 't') ||+ (key.ctrl && (input === 'r' || input === 't')) ||key.tab ||(key.shift && key.tab) ||key.pageUp ||diff --git a/ui-tui/src/content/hotkeys.ts b/ui-tui/src/content/hotkeys.tsindex 0fda3cd002e..3ad77b69ae1 100644--- a/ui-tui/src/content/hotkeys.ts+++ b/ui-tui/src/content/hotkeys.ts@@ -26,7 +26,7 @@ export const HOTKEYS: [string, string][] = [['↑/↓', 'completions / queue edit / history'],['Ctrl+X', 'open live session switcher (deletes queued message while editing)'],['Ctrl+T', 'expand live agents (keeps your draft)'],- ['F7', 'collapse / restore live agent preview'],+ ['Ctrl+R / F7', 'collapse / restore live agent preview'],['Ctrl+O', 'open model picker (keeps your draft; applies to next turn mid-stream)'],[action + '+A/E', 'home / end of line'],[action + '+Z / ' + action + '+Y', 'undo / redo input edits'],diff --git a/ui-tui/src/lib/platform.ts b/ui-tui/src/lib/platform.tsindex e63eb29347f..8723206d6ef 100644--- a/ui-tui/src/lib/platform.ts+++ b/ui-tui/src/lib/platform.ts@@ -143,7 +143,8 @@ const _NAMED_KEY_ALIASES: Record<string, VoiceRecordKeyNamed> = {/** ``useInputHandlers()`` intercepts these unconditionally before the* voice check runs, so a binding like ``ctrl+c`` (interrupt),- * ``ctrl+d`` (quit), or ``ctrl+l`` (clear screen) would be advertised+ * ``ctrl+d`` (quit), ``ctrl+l`` (clear screen), or ``ctrl+r`` (dock toggle)+ * would be advertised* in /voice status but never fire push-to-talk. Reject at parse time* so the user gets the documented Ctrl+B instead of a dead shortcut* (Copilot round-4 review on #19835).@@ -152,7 +153,7 @@ const _NAMED_KEY_ALIASES: Record<string, VoiceRecordKeyNamed> = {* queue-edit (``queueEditIdx !== null``), so the voice binding works* for most of the session and matches CLI parity for ``ctrl+<letter>``* bindings (Copilot round-8 review on #19835). */-const _RESERVED_CTRL_CHARS = new Set(['c', 'd', 'l'])+const _RESERVED_CTRL_CHARS = new Set(['c', 'd', 'l', 'r'])/** On macOS the action-modifier intercepts these editor chords via* ``isCopyShortcut`` / ``isAction`` in ``useInputHandlers()``:diff --git a/website/docs/user-guide/cli.md b/website/docs/user-guide/cli.mdindex dcc6e756c59..5af8fc9e07f 100644--- a/website/docs/user-guide/cli.md+++ b/website/docs/user-guide/cli.md@@ -189,6 +189,8 @@ When resuming a previous session (`hermes -c` or `hermes --resume <id>`), a "Pre## Keybindings+On macOS, `F6`/`F7` mean the physical function keys, not the media/system controls shown on the top row. Hold **Fn** (the **globe** key on newer keyboards) while pressing the function key, or enable **Use F1, F2, etc. keys as standard function keys** in **System Settings → Keyboard → Keyboard Shortcuts → Function Keys**. The reliable terminal fallbacks are **Ctrl+T** for `F6` and **Ctrl+R** for `F7`.+| Key | Action ||-----|--------|| `Enter` | Send message |@@ -201,7 +203,7 @@ When resuming a previous session (`hermes -c` or `hermes --resume <id>`), a "Pre| `Ctrl+S` | **Stash the prompt.** Parks the current draft and clears the composer so you can send something else first. Press `Ctrl+S` again on an empty composer to bring the draft back (cursor at the end, attached images restored). Repeated presses build a stack rather than overwriting, so an earlier draft is never silently lost — with two or more stashed, `Ctrl+S` opens a browse panel (`↑`/`↓` to navigate, `Enter` to restore, `D` to discard, `Esc` or `Ctrl+S` to close). A `📌 N` badge in the status bar shows how many drafts are parked. Multi-line drafts round-trip exactly, including blank lines. The stash lives in memory for the session only — nothing is written to disk, since drafts often contain secrets. || `Ctrl+C` | Interrupt agent (double-press within 2s to force exit) || `Ctrl+T` / `F6` | Open the full-screen live work monitor (subagents and background processes) without losing the composer draft. The live dock appears automatically above the status bar; arrows select a worker or process, `Enter` shows its recent log, `s` steers a worker, and `x` requests stop with confirmation. See [Monitoring subagents](./features/delegation.md#monitoring-running-subagents-agents). |-| `F7` | Toggle the live work dock between its multi-row preview and a single summary line without moving composer focus. Besides subagents and background processes, the dock shows a standing `/goal` (active, parked or paused, with turns used) on its top row and the prompts waiting in `/queue` on its bottom rows. |+| `Ctrl+R` / `F7` | Toggle the live work dock between its multi-row preview and a single summary line without moving composer focus. `Ctrl+R` is the reliable fallback when macOS reserves the function-key row. Besides subagents and background processes, the dock shows a standing `/goal` (active, parked or paused, with turns used) on its top row and the prompts waiting in `/queue` on its bottom rows. || `Ctrl+D` | Exit || `Ctrl+Z` | Suspend Hermes to background (Unix only). Run `fg` in the shell to resume. || `Tab` | Accept auto-suggestion (ghost text) or autocomplete slash commands |diff --git a/website/docs/user-guide/features/delegation.md b/website/docs/user-guide/features/delegation.mdindex a53ad1ede5d..fa9bd16a717 100644--- a/website/docs/user-guide/features/delegation.md+++ b/website/docs/user-guide/features/delegation.md@@ -453,7 +453,7 @@ Closing the terminal monitor returns to your existing composer draft. Steering u**Background processes share the dock.** Anything the agent starts with `terminal(background=true)` (a build, a test run, a dev server, a CI poller) appears in a **Processes** block under the subagent rows the moment it spawns — `⚙ <command> · 42s · last: <latest output line>` — and flips in place to `✔ exit 0` / `✘ exit 1` / `✘ killed` when it ends, then leaves the dock about 60 seconds later (the completion notification in the conversation is the durable record). In the Classic CLI monitor, process rows sit under the agents: **Enter** shows the process log tail and **x** stops that one process; processes cannot be steered. The TUI `/agents` overlay lists the same block under the spawn tree (`/stop` ends every background process). Desktop shows the same processes as tiles above the composer.-Press **F7** in the Classic CLI or TUI composer to toggle the dock between its multi-row preview and a single shaded summary line. The summary retains the live count and expand/restore hints, adding activity when space permits. Typing and sending remain available; opening and closing the monitor preserves your draft and insertion point. This is a local presentation choice, not a saved config change.+Press **Ctrl+R** in the Classic CLI or TUI composer to toggle the dock between its multi-row preview and a single shaded summary line. **F7** remains an optional alias when the terminal forwards function keys. The summary retains the live count and expand/restore hints, adding activity when space permits. Typing and sending remain available; opening and closing the monitor preserves your draft and insertion point. This is a local presentation choice, not a saved config change.The live transcript tail is a bounded recent excerpt, not an unlimited conversation browser. A child leaving the live registry leaves the dock; completion messages and the TUI/Desktop history views remain the place to review finished work. Latest activity is an observation, not a percentage-complete estimate.diff --git a/website/docs/user-guide/tui.md b/website/docs/user-guide/tui.mdindex 20deb9c95d6..8d2679c1932 100644--- a/website/docs/user-guide/tui.md+++ b/website/docs/user-guide/tui.md@@ -102,9 +102,11 @@ The directory must contain `dist/entry.js`.Keybindings match the [Classic CLI](cli.md#keybindings) exactly. The only behavioral differences:+On macOS, `F7` means the physical F7 function key. MacBook keyboards may use that row for system controls instead; hold **Fn** (the **globe** key on newer keyboards) while pressing **F7**, or enable **Use F1, F2, etc. keys as standard function keys** in **System Settings → Keyboard → Keyboard Shortcuts → Function Keys**. If the terminal still does not forward it, use the equivalent **Ctrl+R** binding below.+- **`Ctrl+T`** expands the automatic live-work dock (subagents, plus a **Processes** block for `terminal(background=true)` spawns) into the full-height `/agents` roster. Select a worker and press **Enter** (or **`t`**) for its live transcript, **`d`** for rich details, **`e`** to steer, or **`x`** to stop it. The dock fits its row count to terminal height and preserves your composer draft. See [Monitoring subagents](./features/delegation.md#monitoring-running-subagents-agents).- A standing **`/goal`** gets its own row above the live dock (`⊙ goal · 3/20 turns · …`, or `⏳ goal parked` / `⏸ goal paused` with the reason); it leaves once the goal is done or cleared. Queued follow-ups are listed above it.-- **`F7`** toggles the live dock between its default preview and one summary line. This does not open the monitor or move composer focus; the choice lasts for this TUI process without changing config.+- **`Ctrl+R`** toggles the live dock between its default preview and one summary line. **`F7`** remains an optional alias where the terminal sends function keys through. This does not open the monitor or move composer focus; the choice lasts for this TUI process without changing config.- **Mouse drag** highlights text with a uniform selection background.- **`Cmd+V` / `Ctrl+V`** first tries normal text paste, then falls back to OSC52/native clipboard reads, and finally image attach when the clipboard or pasted payload resolves to an image.- **`/terminal-setup`** installs local VS Code / Cursor / Windsurf terminal bindings for better `Cmd+Enter` and undo/redo parity on macOS.