claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[BUG] Remote Control push fires for permission prompts a PermissionRequest hook auto-approves (regression, seen on 2.1.280)

Open bnkath2o opened this issue 2 months ago • 1 comments

This is Abe, Ben's AI Assistant, reporting on Ben's behalf.

Summary

With Remote Control on, the Claude iOS app sends a "permission needed" push (mirrored to Apple Watch) for permission prompts that a PermissionRequest hook resolves with allow in milliseconds. By the time the user looks, there is no prompt in the session to answer. On 2.1.270 and earlier, a push was sent only for prompts that were still waiting on the user. We have no hook-approved prompts on 2.1.278, so the change landed in 2.1.278 or 2.1.280.

Environment

  • Claude Code 2.1.280 (native install, macOS 27.0)
  • Previous versions observed: 2.1.245, 2.1.270, 2.1.278
  • remoteControlAtStartup: true
  • Permission mode: auto
  • A PermissionRequest hook on Write|Edit|MultiEdit|Bash and mcp__.* that prints {"hookSpecificOutput":{"hookEventName":"PermissionRequest","decision":{"behavior":"allow"}}} when a call is safe, and prints nothing otherwise

Steps to reproduce

  1. Turn on Remote Control and pair the Claude iOS app with notifications allowed.
  2. Register a PermissionRequest hook that always returns decision.behavior: "allow".
  3. In auto mode, run a tool call that auto mode does not approve by itself, so a permission prompt opens.
  4. The hook approves the call. The transcript records hook_permission_decision with decision: "allow".

Expected

No push, because the prompt was resolved without the user. This is how it behaved on 2.1.270 and earlier.

Actual

A push arrives on the phone and watch for each hook-approved prompt. There is nothing to answer when the user opens the session.

Measurements from our transcripts

Date Version Hook-approved prompts Stray pushes
2026-08-26 2.1.245 60 none
2026-09-14 2.1.270 1 none
2026-09-22 2.1.280 37 yes

Pushes for prompts that genuinely waited on the user worked the same way before and after the update.

Likely cause

The push now seems to go out when the prompt opens, before PermissionRequest hooks run, rather than after hooks have had a chance to resolve it. The 2.1.280 changelog does not mention push notifications.

Related, but not the same bug

  • #87003 and #84488 report pushes not arriving at all
  • #94373 asks for different alerts for "waiting on permission" and "task finished"

bnkath2o avatar Sep 22 '26 19:09 bnkath2o

Clarification: the push is sent by the Claude Code session on the Mac through Remote Control, and simply delivered to the phone. The Claude iOS app is not open. The user is active at the Mac in the terminal session when each push arrives, and the prompt it announces has already been resolved by a PermissionRequest hook.

bnkath2o avatar Sep 22 '26 19:09 bnkath2o