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
parent
878c1b8c2d
commit
405cc3f610
|
|
@ -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()
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue