Skip to content

feat(tui): make permission mode keybind configurable - #40334

Open
CasualDeveloper wants to merge 1 commit into
anomalyco:devfrom
CasualDeveloper:feat/40331-permission-keybind
Open

feat(tui): make permission mode keybind configurable#40334
CasualDeveloper wants to merge 1 commit into
anomalyco:devfrom
CasualDeveloper:feat/40331-permission-keybind

Conversation

@CasualDeveloper

@CasualDeveloper CasualDeveloper commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Issue for this PR

Closes #40331

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

The TUI already supports toggling auto-approve permissions through the permission.mode command, but users cannot assign that command a key in tui.json.

This change adds app_toggle_auto_approve_permissions with no default binding, maps it to the existing command, and registers permission.mode with the app-level TUI bindings.

It does not change permission behavior, persistence, or default shortcuts.

How did you verify your code works?

  • Ran bun typecheck in packages/tui.
  • Ran bun typecheck in packages/opencode.
  • Confirmed through TuiConfig.resolve(...) that the configured key resolves to permission.mode.
  • Relaunched the TUI and confirmed that super+shift+a toggles the auto
    indicator and changes the command description between enabling and disabling auto-approve permissions.

Screenshots / recordings

Not applicable, since this change does not alter the rendered UI.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Process: human-directed and reviewed, with agentic assistance from openai/gpt-5.6-sol/high.

Let users bind the existing auto-approve toggle without changing its default behavior.

Closes anomalyco#40331
@CasualDeveloper
CasualDeveloper force-pushed the feat/40331-permission-keybind branch from c2ad485 to b8ed3bf Compare August 5, 2026 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE]: Add configurable TUI keybind for auto-approve permissions

1 participant