Skip to content

Permission prompt: number-key shortcuts (1/2/3/4) for Allow once / Always allow / Deny #135

Description

@wesleymatos-bot

The tool-approval dialog (Allow once / Always allow in this project / Deny and tell ZCode why / Deny) is navigated with Up/Down + Enter only. For keyboard-driven users this is the slowest interaction in the TUI — approval prompts interrupt flow constantly, and hitting Up-Up-Enter every time adds up.

Proposal: number the options (1 = Allow once, 2 = Always allow, 3 = Deny and tell..., 4 = Deny) and let pressing the digit select+confirm in one keystroke, like Claude Code's permission prompts do. Up/Down + Enter can stay as-is for discoverability.

Why it matters: when driving multiple zcode sessions in tmux (fleet workflows), approval dialogs are the main context-switch cost. Single-keystroke approval would cut a 3-keystroke interaction to 1.

Happy to submit a PR if you point me at the dialog component (looks like it's in packages/zcode-tui).

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions