Skip to content

Commit 405cc3f

Browse files
committed
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.
1 parent 878c1b8 commit 405cc3f

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,10 @@ export function Prompt(props: PromptProps) {
159159
command.register(() => {
160160
return [
161161
{
162-
title: "Toggle autoaccept permissions",
162+
title: "Toggle permissions",
163163
value: "permission.auto_accept.toggle",
164164
keybind: "permission_auto_accept_toggle",
165-
category: "Permission",
165+
category: "Agent",
166166
onSelect: (dialog) => {
167167
setAutoaccept(!autoaccept() as any)
168168
dialog.clear()

packages/sdk/js/src/v2/gen/types.gen.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1126,6 +1126,10 @@ export type KeybindsConfig = {
11261126
* Previous agent
11271127
*/
11281128
agent_cycle_reverse?: string
1129+
/**
1130+
* Toggle auto-accept mode for permissions
1131+
*/
1132+
permission_auto_accept_toggle?: string
11291133
/**
11301134
* Cycle model variants
11311135
*/

0 commit comments

Comments
 (0)