Repository navigation
Description
What the CLIs do
Claude Code, Grok, Codex, and Kimi answer a tool permission from the keyboard: `y` allow, `n` deny, a third key for "don't ask again this session", Tab between choices. Grok 1.0.0: permission prompts show the complete script; long bash bodies expand with Ctrl-F. Questions already use 1–9.
You never take your hands off the keyboard. That is the whole point of sitting in a TUI.
Solenta today
`QuestionPrompt` already binds 1–9 and Enter. Tool permissions and plan approval do not.
The tool card (`ThreadView.tsx` ~3332) is three mouse buttons: Accept / Accept all / Deny. `PlanPrompt` is Approve plan / Keep planning. No keydown handler. Focus is usually still in the composer, so even if we bound keys on the card they would not fire (the question widget already special-cases INPUT/TEXTAREA and bails).
"Accept all" maps to `allowAlways`, which adds a session rule for the whole tool name (`runner.js` `updatedPermissions` / `toolName` only). The CLI's "don't ask again" is almost always a prefix or glob (`Bash(npm test:*)`, Grok 0.2.119 free-form glob). Accept-all-Bash for the rest of the session is how people nuke a repo.
Why it matters
Same class as #469 / #472: CLI muscle memory. A permission prompt that requires a mouse is why people `--dangerously-skip-permissions` instead of supervising.
Scope
- While a tool or plan card is pending, `y` = allow, `n` = deny, `a` = allow-always. Do not steal those keys from an empty composer — steal them from a focused composer the same way 1–9 already steal from an unfocused window. Document the rule: pending permission outranks typing.
- Same keys for plan approve / keep planning (`y` / `n`).
- Show the bindings on the buttons (`y` Accept, `a` session, `n` Deny).
- Narrow allow-always: default to the command prefix or a glob the user can edit (Grok's pattern), not `toolName: Bash`. Whole-tool remains an explicit advanced choice.
- Tests: y/n/a while the composer is focused; composer text is not inserted.
Related: #291 (cross-thread inbox — different surface), #256 (LLM-judge), #322 (destructive gate still applies), #349 (approval survives restart).
Round 23.
Activity
Merge origin/main: adopt #1666's prefix-scoped Always allow, keep y /…
Answer permission and plan cards with y / n / a; always-allow a comma…
Answer permission and plan cards with y / n / a; always-allow a comma…
Merge origin/main: adopt #1666's prefix-scoped Always allow, keep y /…