[PR #11714] feat(tui): add number shortcuts for permission options #13904

Open
opened 2026-02-16 18:18:43 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/11714

State: open
Merged: No


Summary

Adds support for using number keys (1-9) to quickly select permission options in the TUI, similar to other CLI tools.

Fixes #11713

Changes

  • Updated Prompt component in permission.tsx to listen for number keys.
  • Added visual indicators (e.g., "1. Allow once") to the options.

Verification

  1. Run opencode or bun dev.
  2. Trigger a permission prompt (e.g., by running a command that requires approval).
  3. Press 1, 2, or 3.
  4. Verify the corresponding option is selected immediately.
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/11714 **State:** open **Merged:** No --- ## Summary Adds support for using number keys (1-9) to quickly select permission options in the TUI, similar to other CLI tools. Fixes #11713 ## Changes - Updated `Prompt` component in `permission.tsx` to listen for number keys. - Added visual indicators (e.g., "1. Allow once") to the options. ## Verification 1. Run `opencode` or `bun dev`. 2. Trigger a permission prompt (e.g., by running a command that requires approval). 3. Press `1`, `2`, or `3`. 4. Verify the corresponding option is selected immediately.
yindo added the pull-request label 2026-02-16 18:18:43 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13904