Keyboard Shortcuts
Keyboard handling source: crates/tui/src/app/update/keys.rs.
Global / Input Shortcuts
| Shortcut | Behavior |
|---|---|
Ctrl+C | Interrupt streaming; or clear input; or press twice on empty input to exit. |
Ctrl+D | Immediate shutdown. |
Ctrl+L | Clear output buffer. |
Ctrl+V | Paste from clipboard. |
Ctrl+Y | Copy last assistant response to clipboard. |
Ctrl+- / Ctrl+_ | Send undo operation. |
Ctrl+O | Toggle collapse for latest tool block. |
Ctrl+N | Focus next agent (multi-agent view). |
Ctrl+P | Focus previous agent (multi-agent view). |
Alt+P / Alt+Shift+P | Open model picker. |
Alt+T / Alt+Shift+T | Cycle thinking level. |
Esc | Interrupt stream, dismiss completer, open backtrack flow, or clear input depending on state. |
Tab | Cycle completion candidates; trigger completion; or cycle agent focus if input is empty. |
Shift+Tab | Cycle mode. |
Enter | Apply completion and submit input. |
Shift+Enter | Insert newline. |
Up / Down | History navigation or completer navigation. |
Right / Left | Navigate file completion directory context when file completer is active. |
? (empty input) | Open help overlay. |
Permission Prompt Shortcuts
When a permission request is active:
| Key | Decision |
|---|---|
y | Allow once |
n | Deny |
a | Always allow (session) |
! | Bypass all approvals |
Ctrl+C | Deny |
Behavior Notes
- Modals intercept keys before normal input routing.
- Permission prompts intercept keys before normal routing.
- Any non-
Ctrl+Ckey resets pending "press Ctrl+C again to exit" state. - Any non-
Esckey clears pending "Esc again to clear input" state.