claude-code - 💡(How to fix) Fix [BUG] defaultMode "plan" blocks entire session with "Auto mode is unavailable for your plan" [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#48066Fetched 2026-04-15 06:34:13
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Timeline (top)
labeled ×4commented ×1

Error Message

The error also persists even after changing defaultMode back to "default". Only opening a completely new context window resolves it.

Error Messages/Logs

  1. Change defaultMode to "default" — error persists in the same session

Code Example

Auto mode is unavailable for your plan

---

{
  "permissions": {
    "defaultMode": "plan"
  },
  "skipAutoPermissionPrompt": true
}
RAW_BUFFERClick to expand / collapse

Preflight Checklist

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

What's Wrong?

When defaultMode is set to "plan" in ~/.claude/settings.json, every message returns only "Auto mode is unavailable for your plan". No actual response is produced. The session is completely unusable.

This happens in both the CLI and VS Code extension. Auto mode was never requested — only plan mode.

The error also persists even after changing defaultMode back to "default". Only opening a completely new context window resolves it.

What Should Happen?

Plan mode should work independently of auto mode eligibility. Plan mode requires manual approval of tool calls and has no logical dependency on auto mode. Messages should be processed normally when defaultMode is set to "plan".

Error Messages/Logs

Auto mode is unavailable for your plan

Steps to Reproduce

  1. Set "defaultMode": "plan" in ~/.claude/settings.json:
{
  "permissions": {
    "defaultMode": "plan"
  },
  "skipAutoPermissionPrompt": true
}
  1. Launch claude (CLI) or open Claude Code in VS Code
  2. Type any message (e.g., "hello")
  3. Only response is: "Auto mode is unavailable for your plan"
  4. Change defaultMode to "default" — error persists in the same session
  5. Open a new context window in default mode — it works fine

Claude Model

Not sure / Multiple models

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

2.1.90

Platform

Other

Operating System

Windows

Terminal/Shell

VS Code integrated terminal

Additional Information

Using Claude Max subscription (not API, not Team/Enterprise). The setting skipAutoPermissionPrompt: true has no effect on this bug. The defaultMode: "plan" is a valid enum value per the settings schema. It appears plan mode internally triggers an auto mode availability check, which fails and blocks the entire session instead of falling back to standard plan behavior.

Version: 2.1.90 Platform: Windows 11 Pro Shell: VS Code integrated terminal

extent analysis

TL;DR

The issue can be temporarily resolved by opening a new context window after changing the defaultMode back to "default".

Guidance

  • The problem seems to be caused by an internal auto mode availability check that is triggered when defaultMode is set to "plan", which fails and blocks the session.
  • To verify the issue, follow the steps to reproduce provided in the issue description.
  • Changing the defaultMode to "default" and then opening a new context window may mitigate the issue, but it does not fix the underlying problem.
  • The skipAutoPermissionPrompt: true setting has no effect on this bug, so it can be ignored for now.

Example

No code snippet is provided as it is not clearly supported by the issue.

Notes

The issue appears to be a regression, as it worked in a previous version, but the last working version is not specified. The problem seems to be specific to the Claude Max subscription and Windows 11 Pro platform.

Recommendation

Apply workaround: Open a new context window after changing the defaultMode back to "default", as this seems to temporarily resolve the issue. The reason is that the internal auto mode availability check is triggered when defaultMode is set to "plan", and changing the mode and opening a new window may bypass this check.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [BUG] defaultMode "plan" blocks entire session with "Auto mode is unavailable for your plan" [1 comments, 2 participants]