claude-code - 💡(How to fix) Fix [Bug] Plan-mode-exit dialog ignores `permissions.defaultMode` setting

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…

Code Example

[]
RAW_BUFFERClick to expand / collapse

Bug Description Here's a copy-paste-ready feedback message:


Plan-mode-exit dialog should respect permissions.defaultMode instead of hardcoding "bypass permissions" as the default option.

When I exit plan mode (via ExitPlanMode), I'm shown:

  1. Yes, and bypass permissions ← always highlighted
  2. Yes, manually approve edits
  3. No, refine with Ultraplan on Claude Code on the web
  4. Tell Claude what to change

I have "permissions": { "defaultMode": "auto" } set in ~/.claude/settings.json. Auto mode is what I want as my default permission mode — that's the whole point of setting defaultMode. But every time I exit plan mode, the dialog ignores that setting and defaults to bypassPermissions, which is more permissive than what I've explicitly configured. I have to arrow down and pick the right option every single time.

Ask: Make the plan-exit dialog's default selection match the session's defaultMode (or the value of defaultMode at session start), rather than always bypassPermissions. Bonus: a dedicated setting like permissions.planExitDefault would also work.

This is mildly annoying on its own, but more importantly it nudges users toward a more permissive mode than they asked for, which seems like the wrong default from a safety standpoint.


Feel free to trim — the core ask is the first sentence and the paragraph starting with "Ask:".

Environment Info

  • Platform: darwin
  • Terminal: tmux
  • Version: 2.1.150
  • Feedback ID: 5e3e8994-3473-4729-8815-c8afdcdc0ca5

Errors

[]

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