claude-code - 💡(How to fix) Fix bypassPermissions defaultMode appears to be ignored in claude.ai remote sessions [1 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#57810Fetched 2026-05-11 03:24:47
View on GitHub
Comments
0
Participants
1
Timeline
5
Reactions
0
Timeline (top)
labeled ×4cross-referenced ×1

permissions.defaultMode: "bypassPermissions" set in ~/.claude/settings.json does not appear to take effect in remote sessions launched via claude.ai/code. Permission prompts continue to fire, and the user must click "Allow" for individual command shapes — which then accumulate in .claude/settings.local.json.

Root Cause

permissions.defaultMode: "bypassPermissions" set in ~/.claude/settings.json does not appear to take effect in remote sessions launched via claude.ai/code. Permission prompts continue to fire, and the user must click "Allow" for individual command shapes — which then accumulate in .claude/settings.local.json.

Fix Action

Fix / Workaround

  • Platform: macOS Darwin 25.4.0
  • Session type: claude.ai/code remote session
  • Workaround in use: pre-populating permissions.allow with read-only command shapes

Code Example

{
  "permissions": { "defaultMode": "bypassPermissions" },
  "skipDangerousModePermissionPrompt": true,
  "remoteControlAtStartup": true,
  "autoUploadSessions": true
}

---

{
  "permissions": {
    "allow": [
      "Bash(git checkout *)",
      "Bash(npx tsc *)",
      "Bash(node --test --import tsx /Users/.../orchestrator.abort.test.ts)",
      "Bash(git -C /Users/.../rs-app-platform commit -m ' *)",
      "Skill(update-config)"
    ]
  }
}
RAW_BUFFERClick to expand / collapse

Summary

permissions.defaultMode: "bypassPermissions" set in ~/.claude/settings.json does not appear to take effect in remote sessions launched via claude.ai/code. Permission prompts continue to fire, and the user must click "Allow" for individual command shapes — which then accumulate in .claude/settings.local.json.

Setup

~/.claude/settings.json:

{
  "permissions": { "defaultMode": "bypassPermissions" },
  "skipDangerousModePermissionPrompt": true,
  "remoteControlAtStartup": true,
  "autoUploadSessions": true
}

No managed-policy override is in effect (sole admin on the account, no enterprise org). No project- or local-level defaultMode override.

Expected

Tool calls run without per-call permission prompts.

Actual

Prompts fire continuously. .claude/settings.local.json grows mid-session with entries the user clicked "Allow" on:

{
  "permissions": {
    "allow": [
      "Bash(git checkout *)",
      "Bash(npx tsc *)",
      "Bash(node --test --import tsx /Users/.../orchestrator.abort.test.ts)",
      "Bash(git -C /Users/.../rs-app-platform commit -m ' *)",
      "Skill(update-config)"
    ]
  }
}

Hypothesis

claude.ai remote sessions enforce a server-side permission gate that disregards the client-side bypassPermissions setting — likely as an intentional safety boundary for the hosted runtime. If so:

  1. Could the docs / settings schema flag this explicitly? Right now the bypassPermissions enum value reads as fully effective.
  2. Is there an admin-side mechanism (org settings, account flag) to opt-in to true bypass for remote sessions, given the user has explicitly accepted skipDangerousModePermissionPrompt?

Alternatively — if this is a bug and bypassPermissions should apply remotely, that's the report.

Environment

  • Platform: macOS Darwin 25.4.0
  • Session type: claude.ai/code remote session
  • Workaround in use: pre-populating permissions.allow with read-only command shapes

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 bypassPermissions defaultMode appears to be ignored in claude.ai remote sessions [1 participants]