[BUG] "Accept and auto mode" shows "Permission mode couldn't be changed" warning when accepting a plan (Claude for Mac)

Status Fixed / completed
Maintainer reply None cached
Activity 5 comments · opened May 18, 2026 · closed May 20, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

App: Claude for Mac v1.7196.0 (2dbd78)
OS: macOS 15 (Darwin 25.4.0)

Actual: Yellow warning banner appears: "Permission mode couldn't be changed. You can try again." Mode still switches to Auto and execution proceeds normally — appears to be a false warning.

Notes: Clicking plain "Accept" and then manually switching to Auto does not trigger the warning. Issue seems specific to the combined "Accept and auto mode" action — likely a race condition between plan acceptance and permission mode switch.

What Should Happen?

Frequency: Reproducible consistently — happens every time I accept a plan with "Accept and auto mode".

Error Messages/Logs

"Permission mode couldn't be changed. You can try again."

Steps to Reproduce

  1. Enter Plan mode
  2. Claude proposes a plan
  3. Click "Accept and auto mode" (⌘↵)
  4. Expected: Plan accepted, mode switches to Auto without errors.

Claude Model

Not sure / Multiple models

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

1.7196.0

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Other

Additional Information

<img width="1392" height="278" alt="Image" src="https://github.com/user-attachments/assets/98de9108-6f72-446c-98c6-d92e0d3f1671" />

<img width="1100" height="118" alt="Image" src="https://github.com/user-attachments/assets/45b75145-148e-473d-a6a8-6904dfff6646" />

<img width="342" height="118" alt="Image" src="https://github.com/user-attachments/assets/326300b3-8d71-49e6-93b2-bf6f691d415c" />

View original on GitHub ↗

5 Comments

jshaofa-ui · 4 months ago

Proposed Solution: Fix Race Condition in "Accept and Auto Mode"

Root Cause

The "Accept and auto mode" action (⌘↵) performs two sequential operations:

  1. Accept the proposed plan
  2. Switch permission mode to "Auto"

The warning appears because of a race condition: the permission mode change is triggered before the plan acceptance fully completes its state transition. The mode switch API call receives a stale/conflicting state and returns an error, even though the mode eventually switches correctly.

Key evidence:

  • Clicking plain "Accept" then manually switching to Auto does NOT trigger the warning
  • The warning appears consistently with "Accept and auto mode" (combined action)
  • The mode still switches correctly despite the warning (false positive)

Fix: Sequential Await with State Verification (Recommended)

// BEFORE (likely current code — parallel or non-awaited):
async function acceptAndAutoMode() {
  acceptPlan();           // Not awaited or fires-and-forgets
  setPermissionMode('auto');  // Fires before accept completes
}

// AFTER (sequential with state verification):
async function acceptAndAutoMode() {
  await acceptPlan();
  await waitForState(() => planAccepted);
  await setPermissionMode('auto');
}

Alternative: Optimistic UI with Error Suppression

Since the mode does switch correctly, verify before showing the warning:

async function acceptAndAutoMode() {
  await acceptPlan();
  try {
    await setPermissionMode('auto');
  } catch (error) {
    const currentMode = await getPermissionMode();
    if (currentMode === 'auto') {
      // False positive — mode switched successfully
      return;
    }
    throw error;
  }
}

Impact

  • Severity: MEDIUM — cosmetic issue (warning is false positive), but user-facing
  • Fix complexity: LOW — race condition fix, 5-15 lines
  • Risk: LOW — purely sequential ordering change

Full solution: solutions/claude-code-60277-accept-auto-mode-permission-warning-fix.md

galo4kin · 4 months ago

Update: The issue is not limited to "Accept and auto mode." Clicking plain "Accept" and then manually switching to Auto also triggers the same warning. Even switching to Bypass and then back to Auto reproduces it. The warning appears on any permission mode switch, not just during plan acceptance.

kachkaev · 4 months ago

Was hitting something similar:

  • Ran claude --permission-mode auto, acknowledged the risk
  • Ensured "permissions" → "defaultMode": "auto" in ~/.claude/settings.json
  • Opened Claude Desktop, saw auto:

<img width="528" height="128" alt="Image" src="https://github.com/user-attachments/assets/43194a93-eba1-4704-abf4-5c297e570f11" />

  • Submitted a prompt, saw auto immediately jumping to Ask permissions. All attempts to return to auto with a dropwdown produced this:

<img width="466" height="64" alt="Permission mode couldn't be changed. You can try again." src="https://github.com/user-attachments/assets/678debfe-603f-40b3-b961-efec97037caf" />

I tried to re-login everywhere, update, reinstall - no luck. Then I bumped into this:
https://code.claude.com/docs/en/permission-modes#eliminate-prompts-with-auto-mode

Model: Claude Sonnet 4.6, Opus 4.6, or Opus 4.7 on Team, Enterprise, and API plans; Claude Opus 4.7 only on Max plans. Other models, including Haiku and claude-3 models, are not supported.

So in my case I was trying auto on Opus 4.6 on the Max plan which was not expected to work. I wish the UI was more informative here. It's clearly wrong to show auto next to Opus 4.6 if these options are incompatible in my case anyway. The notification is pretty useless too - it reads as if there's downtime or some other glitch in the system.

I won't get an hour of frustration back, but hope this helps someone.

cgoudie · 4 months ago

It seems the bug is really: when you change to a model which doesn't support the mode you're in, please give the user an informative message that Model ... doesn't support auto/bypass. rather than giving a message without any hope for the user, but to land here on this page.

github-actions[bot] · 2 months ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.