Inbox permission: an allow sent with `updatedInput` is ignored by Claude Code on its own safety checks
Maintainers usually reply within 1 day
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 asetModeupdate, 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from backnotprop/plannotator
-
Codex routine preflight ignores project-level Inbox MCP registrationPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
backnotprop/plannotator#4000 ·
Maintainers usually reply within 1 day
-
Code review: binary paths containing ` b/` are truncated and misclassified as renamesPossibly taken @Guihakka2 claimed this 1 day ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
backnotprop/plannotator#3936 ·
Maintainers usually reply within 1 day
-
PR description is hidden when a PR review opens on a phonePossibly taken @flipcyde101 claimed this 5 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
backnotprop/plannotator#3667 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
backnotprop/plannotator#2643 · 1 reaction ·
Maintainers usually reply within 1 day
-
Annotate documentation omits per-file version history and privacy controlsMay be free again A pull request for this issue was closed without being merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
backnotprop/plannotator#1086 · 2 comments ·
Maintainers usually reply within 1 day
All issues in backnotprop/plannotator
Similar issues
-
generate_image reference URL guard lets through IPv4-mapped IPv6 hosts and 100.64.0.0/10Possibly taken @goranai claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
traPtitech/knoQ_R-UI#290 ·
Maintainers usually reply within 24 days
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
farion1231/cc-switch#9981 · 2 comments ·
Maintainers usually reply within 1 day
-
account bug course exam iris lecture
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100