Inbox permission: an allow sent with `updatedInput` is ignored by Claude Code on its own safety checks
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 72/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- typescript
調査の方向性
packages/core/inbox-permission.ts の inboxPermissionDecisionFor から始めてください。ここでは、すべての allow がツール入力を updatedInput としてそのまま返しています。修正は、allow の決定からこのフィールドを削除することです。ただし、本当に必要とする ExitPlanMode のパスは変更しないでください。まず、このモジュール周辺の既存テストを読み、実行します。その後、常に許可するスタンドインの PermissionRequest フックで、決定が Claude Code に届くことを確認します。updatedInput なしの allow が Bash、Write、setMode の更新で受け入れられ、エコーされた入力を期待するテストが一つもなければ完了です。
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- TypeScript
- スター
- 8.7k
- フォーク
- 649
- 平均マージ
- 14時間 26分
- マージ済み PR(30日)
- 772
環境構築
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
backnotprop/plannotator のほかの issue
-
Codex routine preflight ignores project-level Inbox MCP registration対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
backnotprop/plannotator#4000 ·
メンテナーはふだん 1 日以内に返信
-
Code review: binary paths containing ` b/` are truncated and misclassified as renames対応中かも @Guihakka2 が 1 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
backnotprop/plannotator#3936 ·
メンテナーはふだん 1 日以内に返信
-
PR description is hidden when a PR review opens on a phone対応中かも @flipcyde101 が 5 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
backnotprop/plannotator#3667 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
backnotprop/plannotator#2643 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Annotate documentation omits per-file version history and privacy controls再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
backnotprop/plannotator#1086 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
backnotprop/plannotator の issue をすべて見る
似ている issue
-
generate_image reference URL guard lets through IPv4-mapped IPv6 hosts and 100.64.0.0/10対応中かも @goranai が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
traPtitech/knoQ_R-UI#290 ·
メンテナーはふだん 24 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
farion1231/cc-switch#9981 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
account bug course exam iris lecture
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100