feat(tui): make permission mode keybind configurable - #40334
Open
CasualDeveloper wants to merge 1 commit into
Open
feat(tui): make permission mode keybind configurable#40334CasualDeveloper wants to merge 1 commit into
CasualDeveloper wants to merge 1 commit into
Conversation
CasualDeveloper
force-pushed
the
feat/40331-permission-keybind
branch
from
August 4, 2026 04:21
83489cd to
c2ad485
Compare
Let users bind the existing auto-approve toggle without changing its default behavior. Closes anomalyco#40331
CasualDeveloper
force-pushed
the
feat/40331-permission-keybind
branch
from
August 5, 2026 19:37
c2ad485 to
b8ed3bf
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue for this PR
Closes #40331
Type of change
What does this PR do?
The TUI already supports toggling auto-approve permissions through the
permission.modecommand, but users cannot assign that command a key intui.json.This change adds
app_toggle_auto_approve_permissionswith no default binding, maps it to the existing command, and registerspermission.modewith the app-level TUI bindings.It does not change permission behavior, persistence, or default shortcuts.
How did you verify your code works?
bun typecheckinpackages/tui.bun typecheckinpackages/opencode.TuiConfig.resolve(...)that the configured key resolves topermission.mode.super+shift+atoggles theautoindicator 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
Process: human-directed and reviewed, with agentic assistance from openai/gpt-5.6-sol/high.