claude-code - 💡(How to fix) Fix Bypass mode clamps to Accept Edits even with the toggle ON (Claude Code Desktop 1.9255.2 / CC 2.1.149)

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…

In Claude Code Desktop, sessions consistently clamp from bypassPermissions → acceptEdits at start, showing the error:

Bypass Permissions mode isn't enabled. The session started in Accept Edits — enable Bypass Permissions in Settings to use it.

The Settings → "Allow bypass permissions mode" toggle is ON, and ~/.claude/settings.json has permissions.defaultMode: "bypassPermissions". Toggling off/on and full app quit do not fix it.

Error Message

In Claude Code Desktop, sessions consistently clamp from bypassPermissions → acceptEdits at start, showing the error:

Root Cause

Root cause (from inspecting app.asar + renderer bundle)

The main process emits permission_mode_clamped with errorCategory: "pref_disabled", logging verbatim:

Code Example

const _ = void 0 !== r?.bypassPermissionsOptInByAccount;
// ...
_ ? setPreference("bypassPermissionsOptInByAccount", {...}) : setPreference("bypassPermissionsModeEnabled", e);
RAW_BUFFERClick to expand / collapse

Summary

In Claude Code Desktop, sessions consistently clamp from bypassPermissions → acceptEdits at start, showing the error:

Bypass Permissions mode isn't enabled. The session started in Accept Edits — enable Bypass Permissions in Settings to use it.

The Settings → "Allow bypass permissions mode" toggle is ON, and ~/.claude/settings.json has permissions.defaultMode: "bypassPermissions". Toggling off/on and full app quit do not fix it.

Environment

  • Claude.app: 1.9255.2
  • Bundled Claude Code: 2.1.149
  • macOS: 26.5 (Darwin 25.5.0)
  • Account: personal (Pro/Max), not running as root
  • No managed-settings.json on the system

Repro

  1. Set ~/.claude/settings.jsonpermissions.defaultMode: "bypassPermissions".
  2. In Claude Desktop → Settings, ensure "Allow bypass permissions mode" is ON.
  3. Start a new chat.

Expected: session runs in Bypass Permissions. Actual: session briefly shows Bypass, then clamps to Accept Edits with errors "permission mode couldn't be changed" and "Bypass Permissions mode isn't enabled …"

Root cause (from inspecting app.asar + renderer bundle)

The main process emits permission_mode_clamped with errorCategory: "pref_disabled", logging verbatim:

bypassPermissionsModeEnabled pref is off

i.e. it consults the legacy bypassPermissionsModeEnabled flag.

The Settings UI toggle, however, writes to the newer per-account key bypassPermissionsOptInByAccount[<accountUUID>] whenever that object exists (see renderer asset c71860c77-DiRkFGDx.js):

const _ = void 0 !== r?.bypassPermissionsOptInByAccount;
// ...
_ ? setPreference("bypassPermissionsOptInByAccount", {...}) : setPreference("bypassPermissionsModeEnabled", e);

So once the per-account schema exists, the toggle never updates bypassPermissionsModeEnabled again, but the main process still reads only that legacy flag — the toggle becomes a no-op for the actual session gate.

Suggested fix

Either (a) have the main process check bypassPermissionsOptInByAccount[currentAccountUUID] with bypassPermissionsModeEnabled as fallback, or (b) have the UI write both keys until the legacy one is retired.

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