[bug] background subagents in auto mode flood me with permission prompts for safe…

Abierto
#2,701 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 5 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
18/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
bun, shell, typescript

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
TypeScript
Estrellas
19.9k
Forks
2.5k
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de danielmiessler/LifeOS

Todos los issues de danielmiessler/LifeOS

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.