Skip to content
Merged
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
10 changes: 8 additions & 2 deletions packages/ui/utils/permissionMode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
* Claude Code 2.1.7+ supports updatedPermissions in hook responses.
*
* Available modes:
* - bypassPermissions: Auto-approve all tool calls
* - acceptEdits: Auto-approve file edits only
* - auto: Autonomous execution gated by a model-based safety classifier (Claude Code 2026-03+, Sonnet 4.6+)
* - bypassPermissions: Auto-approve all tool calls
* - default: Manually approve each tool call
*/

Expand All @@ -15,7 +16,7 @@ import { storage } from './storage';
const STORAGE_KEY_MODE = 'plannotator-permission-mode';
const STORAGE_KEY_CONFIGURED = 'plannotator-permission-mode-configured';

export type PermissionMode = 'bypassPermissions' | 'acceptEdits' | 'default';
export type PermissionMode = 'bypassPermissions' | 'acceptEdits' | 'auto' | 'default';

export interface PermissionModeSettings {
mode: PermissionMode;
Expand All @@ -28,6 +29,11 @@ export const PERMISSION_MODE_OPTIONS: { value: PermissionMode; label: string; de
label: 'Auto-accept Edits',
description: 'Auto-approve file edits, ask for other tools',
},
{
value: 'auto',
label: 'Auto Mode',
description: 'Autonomous execution with a safety classifier (requires Claude Code 2026-03+ and Sonnet 4.6+)',
},
{
value: 'bypassPermissions',
label: 'Bypass Permissions',
Expand Down
Loading