mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-24 14:55:19 +00:00
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.
This commit is contained in:
@@ -159,10 +159,10 @@ export function Prompt(props: PromptProps) {
|
||||
command.register(() => {
|
||||
return [
|
||||
{
|
||||
title: "Toggle autoaccept permissions",
|
||||
title: "Toggle permissions",
|
||||
value: "permission.auto_accept.toggle",
|
||||
keybind: "permission_auto_accept_toggle",
|
||||
category: "Permission",
|
||||
category: "Agent",
|
||||
onSelect: (dialog) => {
|
||||
setAutoaccept(!autoaccept() as any)
|
||||
dialog.clear()
|
||||
|
||||
@@ -1126,6 +1126,10 @@ export type KeybindsConfig = {
|
||||
* Previous agent
|
||||
*/
|
||||
agent_cycle_reverse?: string
|
||||
/**
|
||||
* Toggle auto-accept mode for permissions
|
||||
*/
|
||||
permission_auto_accept_toggle?: string
|
||||
/**
|
||||
* Cycle model variants
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user