Skip to content

feat(tui): add number shortcuts for permission options - #11714

Closed
zanovis wants to merge 1 commit into
anomalyco:devfrom
zanovis:feature/permission-number-shortcuts
Closed

zanovis wants to merge 1 commit into
anomalyco:devfrom
zanovis:feature/permission-number-shortcuts

Conversation

@zanovis

@zanovis zanovis commented Feb 2, 2026

Copy link
Copy Markdown

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.

Allows users to quickly select permission options using number keys 1-9.
Also adds visual indicators (e.g., '1. Allow once') to the permission prompt options.
@github-actions

github-actions Bot commented Feb 2, 2026

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

@ashvinsharma

Copy link
Copy Markdown

@thdxr @Hona Could you please review this PR? I would like to have this feature in opencode. Let me know if I can help you out in any way.

@rekram1-node

Copy link
Copy Markdown
Collaborator

Automated PR Cleanup

Thank you for contributing to opencode.

Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions.

This PR was closed because it matched the following cleanup criteria:

  • The PR was created more than 1 month ago
  • The PR had fewer than 2 positive reactions
  • Positive reactions are counted as thumbs-up, heart, celebration, or rocket reactions on the PR

PRs created within the last month are not affected by this cleanup.

If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate.

Thanks again for taking the time to contribute.

@zanovis
zanovis deleted the feature/permission-number-shortcuts branch September 12, 2026 02:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Add number shortcuts (1-9) to permission prompt

3 participants