Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/update-permission-mode-copy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@moonshot-ai/kimi-code": patch
---

Clarify the permission mode descriptions shown by `/permission`, `/auto`, and `/yolo`, and reorder `/auto` and `/yolo` in the command list.
8 changes: 4 additions & 4 deletions apps/kimi-code/src/tui/commands/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export async function handleYoloCommand(host: SlashCommandHost, args: string): P
}
await session.setPermission('yolo');
host.setAppState({ permissionMode: 'yolo' });
host.showNotice('YOLO mode: ON', 'Workspace tools auto-approved.');
host.showNotice('YOLO mode: ON', 'AI auto-approves safe actions, asks for approval on risky ones.');
Comment thread
liruifengv marked this conversation as resolved.
return;
}

Expand All @@ -130,7 +130,7 @@ export async function handleYoloCommand(host: SlashCommandHost, args: string): P
} else {
await session.setPermission('yolo');
host.setAppState({ permissionMode: 'yolo' });
host.showNotice('YOLO mode: ON', 'Workspace tools auto-approved.');
host.showNotice('YOLO mode: ON', 'AI auto-approves safe actions, asks for approval on risky ones.');
}
}

Expand All @@ -151,7 +151,7 @@ export async function handleAutoCommand(host: SlashCommandHost, args: string): P
}
await session.setPermission('auto');
host.setAppState({ permissionMode: 'auto' });
host.showNotice('Auto mode: ON', 'Tools auto-approved. Agent will not ask questions.');
host.showNotice('Auto mode: ON', 'Run all actions automatically, including risky ones.');
return;
}

Expand All @@ -174,7 +174,7 @@ export async function handleAutoCommand(host: SlashCommandHost, args: string): P
} else {
await session.setPermission('auto');
host.setAppState({ permissionMode: 'auto' });
host.showNotice('Auto mode: ON', 'Tools auto-approved. Agent will not ask questions.');
host.showNotice('Auto mode: ON', 'Run all actions automatically, including risky ones.');
}
}

Expand Down
8 changes: 4 additions & 4 deletions apps/kimi-code/src/tui/commands/registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,15 +136,15 @@ export const BUILTIN_SLASH_COMMANDS = [
{
name: 'yolo',
aliases: ['yes'],
description: 'Toggle auto-approve mode',
priority: 100,
description: 'Toggle YOLO mode: AI auto-approves safe actions, asks for approval on risky ones.',
priority: 101,
availability: 'always',
},
{
name: 'auto',
aliases: [],
description: 'Toggle auto permission mode',
priority: 100,
description: 'Toggle Auto mode: run all actions automatically, including risky ones.',
priority: 99,
availability: 'always',
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,17 @@ const PERMISSION_OPTIONS: readonly ChoiceOption[] = [
{
value: 'manual',
label: 'Manual',
description:
'Ask before commands, edits, and other risky actions. Read/search tools run directly; session approval rules are respected.',
description: 'Approve every action yourself.',
Comment thread
liruifengv marked this conversation as resolved.
},
{
value: 'auto',
label: 'Auto',
description:
'Run fully non-interactively. Tool actions are approved automatically, and agent questions are skipped so it can decide on its own.',
description: 'Run all actions automatically, including risky ones.',
},
{
value: 'yolo',
label: 'YOLO',
description:
'Automatically approve tool actions and plan transitions. The agent can still ask you explicit questions when your input is needed.',
description: 'AI decides which actions need your approval.',
},
];

Expand Down
Loading