claude-code - 💡(How to fix) Fix Remote Control on mobile does not honor settings.local.json wildcards or agent frontmatter permissionMode -- v2.1.119 [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#52898Fetched 2026-04-25 06:17:56
View on GitHub
Comments
1
Participants
2
Timeline
8
Reactions
0
Timeline (top)
labeled ×5commented ×1cross-referenced ×1unsubscribed ×1

Remote Control sessions accessed from the mobile Claude Code app do NOT honor permission settings that work correctly on the desktop CLI. Specifically:

  • settings.local.json wildcard allows (PowerShell(), Bash(), Read(), Write(), Edit(*)) are ignored
  • Agent frontmatter permissionMode: bypassPermissions is ignored

The mobile Remote Control app wakes users with permission prompts at 3am for PowerShell commands that are explicitly wildcard-allowed at both the project settings level AND the agent definition level.

Root Cause

Remote Control sessions accessed from the mobile Claude Code app do NOT honor permission settings that work correctly on the desktop CLI. Specifically:

  • settings.local.json wildcard allows (PowerShell(), Bash(), Read(), Write(), Edit(*)) are ignored
  • Agent frontmatter permissionMode: bypassPermissions is ignored

The mobile Remote Control app wakes users with permission prompts at 3am for PowerShell commands that are explicitly wildcard-allowed at both the project settings level AND the agent definition level.

RAW_BUFFERClick to expand / collapse

Summary

Remote Control sessions accessed from the mobile Claude Code app do NOT honor permission settings that work correctly on the desktop CLI. Specifically:

  • settings.local.json wildcard allows (PowerShell(), Bash(), Read(), Write(), Edit(*)) are ignored
  • Agent frontmatter permissionMode: bypassPermissions is ignored

The mobile Remote Control app wakes users with permission prompts at 3am for PowerShell commands that are explicitly wildcard-allowed at both the project settings level AND the agent definition level.

Environment

  • Desktop: Windows, Claude Code v2.1.119
  • Mobile: Claude Code iOS app, connected via Remote Control
  • Project settings.local.json has: Bash(), Read(), Write(), Edit(), PowerShell(*) in allow array
  • Agent MD frontmatter has: permissionMode: bypassPermissions

Expected behavior

Remote Control sessions inherit the same permission context as local CLI sessions. If PowerShell(*) is allowed in settings.local.json and the agent has permissionMode: bypassPermissions in its frontmatter, no permission prompts should fire for PowerShell commands.

Actual behavior

Every PowerShell tool call from a Remote Control session produces a permission prompt on the mobile app. Real example at 3:36 AM local time:

"PowerShell requests permission: Check RAM stamp for build_shaped_v2.py, STEP_2_DECISION.md, process start time, log files"

Options presented: "Allow once" / "Deny" -- no "Allow always" option, and no indication that existing wildcard allows should apply.

Impact

Users running autonomous overnight pipelines rely on Remote Control for mobile check-ins. If every PowerShell call on mobile fires a prompt:

  • Users get woken by notifications through the night
  • Autonomous operation is defeated -- agent halts waiting for human decision
  • Settings configured for the desktop CLI provide zero value for Remote Control
  • The gap between "works on my laptop" and "works in the hand" is invisible until production

Reproduction

  1. On desktop: ensure settings.local.json has PowerShell(*) in allow array
  2. On desktop: ensure agent MD frontmatter has permissionMode: bypassPermissions
  3. Launch agent session via local CLI -- confirm no permission prompts for PowerShell
  4. Connect via Remote Control from mobile Claude Code app
  5. Trigger any PowerShell tool call from the agent
  6. Observe permission prompt appears on mobile despite configuration

Request

Remote Control must use the same permission evaluation code path as local CLI. settings.local.json wildcards and agent frontmatter permissionMode must be honored identically on both surfaces.

Related: #37442 (subagent permission inheritance), #36261 (remote session persistence).

extent analysis

TL;DR

The mobile Remote Control app likely needs to use the same permission evaluation code path as the local CLI to honor settings.local.json wildcards and agent frontmatter permissionMode.

Guidance

  • Verify that the permission evaluation code is identical for both local CLI and Remote Control sessions by comparing the code paths used for permission checks.
  • Check if the permissionMode: bypassPermissions in the agent frontmatter is being correctly parsed and applied in the Remote Control app.
  • Investigate if the settings.local.json file is being correctly read and applied in the Remote Control app, specifically the wildcard allows for PowerShell.
  • Test if the issue persists when using a different agent or project settings to isolate the problem.

Example

No code snippet is provided as the issue lacks specific code details.

Notes

The issue may be related to differences in how permissions are evaluated between the local CLI and Remote Control app, or how the settings.local.json file is being read and applied.

Recommendation

Apply a workaround by modifying the Remote Control app to use the same permission evaluation code path as the local CLI, ensuring that settings.local.json wildcards and agent frontmatter permissionMode are honored identically on both surfaces. This is necessary to prevent permission prompts from firing for allowed PowerShell commands.

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…

FAQ

Expected behavior

Remote Control sessions inherit the same permission context as local CLI sessions. If PowerShell(*) is allowed in settings.local.json and the agent has permissionMode: bypassPermissions in its frontmatter, no permission prompts should fire for PowerShell commands.

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 Remote Control on mobile does not honor settings.local.json wildcards or agent frontmatter permissionMode -- v2.1.119 [1 comments, 2 participants]