tui: streamline permission toggle command naming and add keyboard shortcut support

Rename 'Toggle autoaccept permissions' to 'Toggle permissions' for clarity
and move the command to the Agent category for better discoverability.
Add permission_auto_accept_toggle keybind to enable keyboard shortcut
toggling of auto-accept mode for permission requests.
pull/12633/head
Dax Raad 2026-02-07 16:51:55 -05:00
parent 878c1b8c2d
commit 405cc3f610
2 changed files with 6 additions and 2 deletions

View File

@ -159,10 +159,10 @@ export function Prompt(props: PromptProps) {
command.register(() => { command.register(() => {
return [ return [
{ {
title: "Toggle autoaccept permissions", title: "Toggle permissions",
value: "permission.auto_accept.toggle", value: "permission.auto_accept.toggle",
keybind: "permission_auto_accept_toggle", keybind: "permission_auto_accept_toggle",
category: "Permission", category: "Agent",
onSelect: (dialog) => { onSelect: (dialog) => {
setAutoaccept(!autoaccept() as any) setAutoaccept(!autoaccept() as any)
dialog.clear() dialog.clear()

View File

@ -1126,6 +1126,10 @@ export type KeybindsConfig = {
* Previous agent * Previous agent
*/ */
agent_cycle_reverse?: string agent_cycle_reverse?: string
/**
* Toggle auto-accept mode for permissions
*/
permission_auto_accept_toggle?: string
/** /**
* Cycle model variants * Cycle model variants
*/ */