Repository navigation
Added "Auto Mode" support (Claude Code 2.1.83+) - #141
Merged
Merged
Conversation
Auto mode is a classifier-based permission mode introduced in CC 2.1.83 (Max/Team/Enterprise/API plans) that auto-approves safe tool calls including all file edits. Changes: - EditMode enum reordered by permissiveness (PLAN < DEFAULT < ACCEPT_EDITS < AUTO < BYPASS_PERMISSIONS); AUTO added between ACCEPT_EDITS and BYPASS_PERMISSIONS - Hook auto-allow logic replaced with ordinal-based >= comparisons: AUTO+ unconditional allow, ACCEPT_EDITS+ conditional (inside project) - "Auto Mode" added as a static 4th entry in the edit-mode combo; "Bypass Permissions" remains dynamic and appears after Auto Mode - sendShiftTabsUntilMode() refactored; when AUTO is selected but not found (old CC), falls back to BYPASS_PERMISSIONS then ACCEPT_EDITS - ScreenContentDetector detects "auto mode" in TUI footer Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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
EditModeenum reordered from least to most permissive:PLAN < DEFAULT < ACCEPT_EDITS < AUTO < BYPASS_PERMISSIONS. This enables ordinal-based>=comparisons for permission thresholds.AUTOor higher → unconditional allow;ACCEPT_EDITSor higher → conditional allow (inside project root only).sendShiftTabsUntilMode()refactored: when user selects Auto Mode but CC doesn't support it (older version), falls back to Bypass Permissions, then Accept on Edit.ScreenContentDetectordetects"auto mode"in the TUI footer.Test plan
ScreenContentDetectorTest— 2 new tests for auto mode detectionNetBeansMCPHandlerHookTest— 2 new tests: auto mode auto-allows files inside and outside projectClaudeSessionTabBypassComboTest— updated counts (4 base items, 5 with bypass)🤖 Generated with Claude Code