Inbox permission: an allow sent with `updatedInput` is ignored by Claude Code on its own safety checks
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 72/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- typescript
- Ambito
- authorization
Direzione di ricerca
Parti da packages/core/inbox-permission.ts, in inboxPermissionDecisionFor, dove ogni allow restituisce l'input dello strumento come updatedInput. La correzione consiste nel rimuovere questo campo dalla decisione allow lasciando invariato il percorso ExitPlanMode, che invece ne ha davvero bisogno. Leggi prima i test esistenti attorno a questo modulo ed eseguili. Poi conferma con un hook PermissionRequest sostitutivo che approva sempre, verificando che la decisione arrivi ancora a Claude Code. È completato quando un allow senza updatedInput viene accettato per Bash, Write e un aggiornamento setMode, e nessun test si aspetta l'input restituito.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- TypeScript
- Stelle
- 8.7k
- Fork
- 649
- Merge medio
- 14h 26m
- PR unite (30g)
- 772
Preparare l'ambiente
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di backnotprop/plannotator
-
Codex routine preflight ignores project-level Inbox MCP registrationForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
backnotprop/plannotator#4000 ·
I maintainer di solito rispondono entro 1 giorno
-
Code review: binary paths containing ` b/` are truncated and misclassified as renamesForse già presa @Guihakka2 l’ha presa 1 giorno fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
backnotprop/plannotator#3936 ·
I maintainer di solito rispondono entro 1 giorno
-
PR description is hidden when a PR review opens on a phoneForse già presa @flipcyde101 l’ha presa 5 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
backnotprop/plannotator#3667 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
backnotprop/plannotator#2643 · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Annotate documentation omits per-file version history and privacy controlsForse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
backnotprop/plannotator#1086 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di backnotprop/plannotator
Issue simili
-
generate_image reference URL guard lets through IPv4-mapped IPv6 hosts and 100.64.0.0/10Forse già presa @goranai l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno
-
進捗部屋の管理画面で削除対象を月ごとに絞り込むAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
traPtitech/knoQ_R-UI#290 ·
I maintainer di solito rispondono entro 24 giorni
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
farion1231/cc-switch#9981 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
account bug course exam iris lecture
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100