claude-code - 💡(How to fix) Fix defaultMode: "auto" in settings.json does not activate auto mode on session start (Max plan, Opus 4.7, macOS) [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#49273Fetched 2026-04-17 08:45:56
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Author
Timeline (top)
labeled ×3commented ×1cross-referenced ×1

permissions.defaultMode: "auto" is correctly parsed (visible in /status) but my sessions do not actually start in auto mode. I have to manually Shift+Tab or launch with --permission-mode auto each session.

Root Cause

permissions.defaultMode: "auto" is correctly parsed (visible in /status) but my sessions do not actually start in auto mode. I have to manually Shift+Tab or launch with --permission-mode auto each session.

Code Example

"permissions": {
  "defaultMode": "auto",
  "allow": [...],
  "deny": [...]
}
RAW_BUFFERClick to expand / collapse

Summary

permissions.defaultMode: "auto" is correctly parsed (visible in /status) but my sessions do not actually start in auto mode. I have to manually Shift+Tab or launch with --permission-mode auto each session.

Environment

  • Plan: Max
  • Model: Opus 4.7 (1M context)
  • Claude Code version: 2.1.111
  • OS: macOS 15 (Darwin 24.6.0)
  • Provider: Anthropic (OAuth)

Settings

~/.claude/settings.json:

"permissions": {
  "defaultMode": "auto",
  "allow": [...],
  "deny": [...]
}

Repro

  1. Set permissions.defaultMode: "auto" in user settings
  2. Fully exit Claude Code
  3. Start a fresh session: claude
  4. Check status bar

Expected

Session starts in auto mode. Status bar shows "auto mode on".

Actual

Session starts in acceptEdits or resumes prior mode. Status bar shows "⏵⏵ accept edits on". /status Config correctly reports "Default permission mode: Auto mode", so the value is read, just not applied.

extent analysis

TL;DR

The issue may be resolved by verifying the permissions.defaultMode setting is correctly applied during session initialization.

Guidance

  • Check the Claude Code documentation to ensure that the permissions.defaultMode setting is supported in the current version (2.1.111) and that there are no known issues with auto mode.
  • Verify that the ~/.claude/settings.json file is being read correctly by the application, and that the permissions.defaultMode value is being parsed as expected.
  • Try setting the --permission-mode auto flag when launching the application to see if it makes a difference, and compare the behavior with the expected outcome.
  • Investigate if there are any other settings or configurations that might be overriding the permissions.defaultMode setting.

Example

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

Notes

The issue seems to be specific to the Claude Code application and its configuration. The fact that the /status command reports the correct default permission mode suggests that the setting is being read, but not applied correctly.

Recommendation

Apply workaround: launch the application with the --permission-mode auto flag until the root cause of the issue is identified and fixed. This ensures that the session starts in auto mode as expected.

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 defaultMode: "auto" in settings.json does not activate auto mode on session start (Max plan, Opus 4.7, macOS) [1 comments, 2 participants]