Add Auto Mode option to Permission Mode dropdown#796
Merged
backnotprop merged 1 commit intoMay 26, 2026
Conversation
Claude Code shipped Auto Mode in March 2026 as a new permission mode value (`auto`) — autonomous execution gated by a Sonnet 4.6 safety classifier. It sits between `acceptEdits` and `bypassPermissions` in risk profile. Extend the `PermissionMode` union and `PERMISSION_MODE_OPTIONS` array with the `auto` entry. The Settings dropdown and first-time setup modal both iterate the options array, so no UI component changes are needed. The hook stdout payload (`updatedPermissions[].mode`) is already generic over mode value, so server-side plumbing also requires no changes. Refs: - https://www.anthropic.com/engineering/claude-code-auto-mode - https://code.claude.com/docs/en/permission-modes
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Adds a new auto permission mode option to the UI permission mode utilities, including documentation and option metadata for display.
Changes:
- Extends
PermissionModeunion type to include'auto' - Adds an
'auto'entry toPERMISSION_MODE_OPTIONS - Updates the mode documentation comment to describe the new option
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
autoas a fourth option in the Permission Mode dropdown so users can opt into Claude Code Auto Mode after approving a plan.acceptEdits, safer thanbypassPermissions.PermissionModeunion +PERMISSION_MODE_OPTIONSarray inpackages/ui/utils/permissionMode.ts. The Settings dropdown and first-time setup modal both iterate that array, so no other UI changes are needed. The hook stdout payload (updatedPermissions[].mode) is already generic over the mode string, so server-side plumbing requires no changes either.Why this is safe to send to all Claude Code installs
Claude Code's
setModehandler treats unknown mode values gracefully — older installs that pre-date Auto Mode support will silently keep the previous mode rather than crash. No version-gating UI is required.References
Test plan
bun run typecheck(all 5 packages: shared, ai, server, ui, pi)bun run --cwd apps/review buildsucceedsbun run build:hooksucceeds; grep confirms "Auto Mode" present inapps/hook/dist/index.htmlbun run build:opencodesucceeds; grep confirms "Auto Mode" present inapps/opencode-plugin/plannotator.htmlauto.