Repository navigation
feat(tui): make permission mode keybind configurable - #40334
CasualDeveloper wants to merge 1 commit into
Conversation
8492567 to
5f71def
Compare
|
I independently implemented this same change before finding this PR, so here is a second data point in case it helps it along. I closed mine (#42057) in favour of this one. Confirming it works: with and pressing it mid-session stops permission prompts appearing. I checked with a permission that evaluates to Worth noting for reviewers that the Naming here is also better than mine, |
Let users bind the existing auto-approve toggle without changing its default behavior. Closes anomalyco#40331
5f71def to
4f46637
Compare
|
Closing this because V2 now supports the same behavior through #41882. V2 keybinds use command IDs directly, so the binding is now configured in {
"keybinds": {
"permission.mode": "super+shift+a"
}
}This PR targets the V1 |
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.