Skip to content

Keyboard-first permission answers: y / n / a, like the CLI #477

Closed

Description

@currentbits

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

  1. 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.
  2. Same keys for plan approve / keep planning (`y` / `n`).
  3. Show the bindings on the buttons (`y` Accept, `a` session, `n` Deny).
  4. 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.
  5. 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

  1. added
    enhancement
    plan:todo
    on Aug 18, 2026
  2. added
    plan:doing
    and removed
    plan:todo
    on Oct 18, 2026
  3. added a commit that references this issue on Oct 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementplan:doing

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions