Inbox permission: an allow sent with `updatedInput` is ignored by Claude Code on its own safety checks

Open Beginner friendly
#4,046 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@Raj1v is already working on this.

Since Nov 25, 2026.

  • #4048 by @Raj1v — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
72/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
typescript
Domain
authorization

Research direction

Start in packages/core/inbox-permission.ts at inboxPermissionDecisionFor, where every allow echoes the tool input back as updatedInput; the fix is to drop that field from the allow decision while leaving the ExitPlanMode path, which genuinely needs it, untouched. Read the existing tests around that module and run them first, then confirm with a stand-in PermissionRequest hook that always allows, checking the decision still reaches Claude Code. Done means an allow without updatedInput is accepted for Bash, Write and a setMode update, and no test expects the echoed input.

Written by the indexing model from the issue text.

Description

What happens
A launched Claude Code session (auto mode) calls EnterWorktree with a worktree outside .claude/worktrees/. The Inbox shows the permission card, I pick "Allow once" within seconds, and the hook receives the decision. Claude Code still leaves its own permission dialog open in the terminal ("permission-root relocation … a model-supplied worktree outside .claude/worktrees/"). The agent stayed blocked for 31 minutes until I approved it in the terminal. The card looked answered the whole time.

Cause
inboxPermissionDecisionFor (packages/core/inbox-permission.ts) returns every allow with updatedInput: event.tool_input, i.e. the tool's own input echoed back. On Claude Code 2.1.332, an allow that carries updatedInput is ignored when Claude Code's own safety check asks for a human. Without updatedInput, the same allow goes through ("Allowed by PermissionRequest hook").

Repro (Claude Code 2.1.332, a stand-in PermissionRequest hook that always allows)

  • Allow with updatedInput: the dialog stays up, both when sent at once and after 25 s.
  • Allow without updatedInput: allowed, both when sent at once and after 25 s. The same holds for a setMode update, Bash and Write.

Fix
Leave out updatedInput on allows. The hook only ever echoed the event's own input, so nothing is lost. ExitPlanMode, which does need updatedInput, never reaches this hook.

#3854 fixed a different case: a question withdrawn between hook polls. Here the question was never withdrawn; the decision was delivered and then ignored.

Dominant language
TypeScript
Stars
8.7k
Forks
649
Avg merge
14h 26m
Merged PRs (30d)
772

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from backnotprop/plannotator

All issues in backnotprop/plannotator

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.