Skip to content

Enable auto permission mode in Claude agent integration#4983

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/enable-auto-permission-mode
Draft

Enable auto permission mode in Claude agent integration#4983
Copilot wants to merge 2 commits intomainfrom
copilot/enable-auto-permission-mode

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 5, 2026

Add the auto permission mode to Claude agent sessions, which uses a model classifier to approve/deny tool operations. Gated behind a new setting (allowAutoPermissions) that defaults to true.

Changes

  • Config: Add ConfigKey.ClaudeAgentAllowAutoPermissions (default: true) following the same pattern as AllowDangerouslySkipPermissions
  • UI: Add "Auto (model classifier)" option to the permission mode picker, conditionally shown based on the new setting
  • Settings schema: Register github.copilot.chat.claudeAgent.allowAutoPermissions in package.json + localization string
  • Validation: Add 'auto' to the permissionModes set and update the valid-modes test
  • Docs: Update CLAUDE_SESSION_USER_GUIDE.md permission mode table and settings reference

The SDK already defines 'auto' in its PermissionMode type and handles it natively via the model classifier — no changes needed in ClaudeToolPermissionService.

Add a new 'auto' permission mode that uses a model classifier to
approve/deny tool operations. The mode is controlled by a new setting
`github.copilot.chat.claudeAgent.allowAutoPermissions` which defaults
to true (visible by default), following the same pattern as the
existing bypass permission mode setting.

Agent-Logs-Url: https://github.com/microsoft/vscode-copilot-chat/sessions/edbf46c6-4cb4-4cb9-a614-6cb6c630b936

Co-authored-by: TylerLeonhardt <2644648+TylerLeonhardt@users.noreply.github.com>
Copilot AI changed the title [WIP] Enable auto permission mode in Claude agent integration Enable auto permission mode in Claude agent integration Apr 5, 2026
Copilot AI requested a review from TylerLeonhardt April 5, 2026 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants