[bug] background subagents in auto mode flood me with permission prompts for safe…
メンテナーはふだん 5 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 18/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- bun, shell, typescript
調査の方向性
Start with the LifeOSHooks tool.call hook and the SubagentGitSandbox class with its wrapInline method, which the report says wrap every subagent Bash command in sandbox-exec. Check how the hook's changed input leads to the "gave no verdict" result in auto mode, and reproduce with a background subagent running ls. Done means safe read-only subagent commands are judged without reaching the human, while the git-internals protection still holds.
索引モデルが issue の本文から書いたものです。
説明
What happened
background subagents in auto mode flood me with permission prompts for safe commands, 15-20 clicks in a few minutes
Summary
In auto mode, a background subagent's Bash calls often get no verdict from the auto-mode reviewer and end up as permission prompts for the human, even for read-only commands.
Cause, from reading the code and the message Claude Code returns: the LifeOSHooks tool.call hook wraps every subagent Bash command in sandbox-exec (SubagentGitSandbox, wrapInline). Claude Code then reports "gave no verdict: a hook changed this call's input after the model wrote it, so the review was of different input from what would run", adds "This is not a judgment that the action is unsafe", and tells the model to issue the call again once.
Seen on 8.761.0 with four background subagents: about 15-20 prompts within a few minutes, for work that only read files. The same command type passes in the main session, which is not wrapped. It is intermittent (bun test passed while ls and bun Places.ts did not), and the agents copying the wrapped text into their retry adds more prompts.
Expected: the git-internals protection stays, and safe subagent commands are judged without reaching the human. The current workaround is telling subagents not to use Bash at all, which rules out any subagent that has to run tests, so unattended work is not practical.
Details
- Kind: bug
- LifeOS version: 8.761.0
Filed with the LifeOS /feedback command. The reporter approved this exact text before it was sent; paths, secrets and personal details were stripped locally.
- 主要言語
- TypeScript
- スター
- 19.9k
- フォーク
- 2.5k
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
danielmiessler/LifeOS のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
danielmiessler/LifeOS#2894 ·
メンテナーはふだん 5 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
danielmiessler/LifeOS#2891 ·
メンテナーはふだん 5 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
danielmiessler/LifeOS#2888 ·
メンテナーはふだん 5 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
danielmiessler/LifeOS#2886 ·
メンテナーはふだん 5 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
danielmiessler/LifeOS#2848 ·
メンテナーはふだん 5 日以内に返信
danielmiessler/LifeOS の issue をすべて見る
似ている issue
-
ready-for-agent
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
LucasSantana-Dev/Lucky#3257 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
XiaomiMiMo/MiMo-Code#2849 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
enhancement frontend good first issue help wanted testing-infrastructure
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 2 日以内に返信
-
enhancement follow-up
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
obsidian-tasks-group/obsidian-tasks#4155 ·
メンテナーはふだん 1 日以内に返信