[Bug] Bypass permissions not inherited by subagents; autonomous execution stalls on prompts and memory over-persists
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 12/100
- Tipo di issue
- Bug
- Chiarezza
- Da chiarire
- Stato di attività
- Attiva
- Stack tecnologico
- ai-infra-agents, typescript
- Ambito
- ai-infra-agents, cli
Direzione di ricerca
The payload names no files, tests or entry points, so start by locating where subagents resolve their permission mode in the codebase and where automatic memory writes are made. The issue bundles three separate design questions (permission inheritance, unattended stalling including /goal, and memory scope), so a first contributor should first ask a maintainer which one to take. Done would be a single scoped behaviour change with a test that shows it.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Bug Description
Claude Code: Unattended execution, permission propagation, and memory scope failures
Claude Code has several fundamental problems that make long-running autonomous workflows unnecessarily unreliable. These are not requests for additional features so much as requests for existing features to behave consistently.
1. Bypass permissions must propagate to subagents
Despite running Claude Code in bypass permissions mode, background subagents repeatedly request approval for ordinary file-editing commands, including edits inside their own worktrees.
During my latest session, this wasted over three hours. The parent agent could identify the blocked subagent but could neither approve the operation nor effectively resolve the situation.
Bypass should mean bypass throughout the entire agent hierarchy. Subagents should inherit the effective permissions of their parent unless explicitly configured otherwise.
Automatically denying these operations instead of prompting is not a satisfactory solution. I selected bypass precisely because I want these operations to execute without intervention, not because I want them rejected.
2. Autonomous execution must not depend on human availability
When running an agent unattended, neither the main agent nor any subagent should be able to indefinitely stall execution by asking a question.
The expected behavior is straightforward:
- Make reasonable autonomous decisions within the existing authorization and task constraints.
- If a question genuinely requires human input, defer the affected work and continue independent tasks.
- Surface unresolved questions asynchronously, without blocking the entire execution.
- If absolutely nothing remains executable, report the blocker and suspend cleanly.
This also applies to /goal. In my latest session, the goal evaluator repeatedly challenged the main agent's correct interpretation of an explicit instruction, eventually forcing it to ask me to confirm something I had already clearly stated.
An autonomous execution mode that repeatedly requires human intervention defeats its own purpose.
3. Automatic memory needs temporal scope and authority awareness
Automatic memory is a valuable feature. However, Claude repeatedly promotes temporary decisions, isolated observations, and its own conclusions into permanent instructions.
Two examples from the same session:
- Claude invented a quota-allocation policy and saved it as persistent delegation guidance without my authorization.
- After I explicitly corrected this behavior, Claude saved my instruction to use only Claude until the upcoming quota reset as another permanent memory.
A decision concerning the next few hours should not influence unrelated sessions weeks later. Similarly, an agent's retrospective assessment should not acquire the authority of a user instruction merely because it was written into memory.
The memory system needs to distinguish between:
- Durable user preferences and instructions.
- Persistent project decisions.
- Temporary session-specific constraints.
- Current operational state, including quotas and deadlines.
- Agent-generated observations, hypotheses, and lessons.
These categories have different lifetimes and levels of authority. They should not be treated as interchangeable.
Disabling automatic memory entirely is not a solution. I want useful persistent memory without continuously having to audit and remove inappropriate entries.
Conclusion
I use Claude Code extensively for multi-agent, long-running engineering workflows. These issues directly undermine its value as an autonomous agent, regardless of the underlying model's capabilities.
Please treat authorization, human interaction requirements, and memory persistence as independent concerns with explicit, consistent semantics.
Users should not have to choose between useful memory and context corruption, between bypass permissions and rejected operations, or between autonomous execution and hours of silent inactivity.
Environment Info
- Platform: linux
- Terminal: herdr
- Version: 2.1.327
- Feedback ID: dd27ef6d-b9bd-4602-a3f2-468770b8e826
- Lingua principale
- TypeScript
- Stelle
- 157k
- Fork
- 25.1k
- Merge medio
- 20h 25m
- PR unite (30g)
- 4
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Nessuna guida per i contributori
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 anthropics/claude-code
-
area:tui enhancement platform:macos
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
anthropics/claude-code#112838 ·
-
area:docs area:plugins bug documentation low-priority platform:windows
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 84/100
anthropics/claude-code#112676 ·
-
area:docs area:hooks area:skills bug platform:windows
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
anthropics/claude-code#112675 ·
-
[DOCS] Private Azure DevOps plugin marketplaces work in the Claude desktop app – please documentApertaarea:docs area:plugins documentation enhancement platform:windows
Difficoltà 1/5 1-3 ore Idoneità per principianti 86/100
anthropics/claude-code#112663 ·
-
area:agents bug has repro platform:macos
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
anthropics/claude-code#112605 ·
Tutte le issue di anthropics/claude-code
Issue simili
-
sumHorizontal, maxHorizontal, minHorizontal, allHorizontal, anyHorizontal, struct and argSortBy treat strings as literals instead of column namesForse già presa @tomaionescu l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
pola-rs/nodejs-polars#486 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
jaegertracing/jaeger-ui#4853 ·
I maintainer di solito rispondono entro 1 giorno
-
area/plugins platform/linux reproduced type/bug version/v2
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
anomalyco/opencode#66970 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Add: Sports First TV (US)Apertaapproved check:passed streams:add
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
I maintainer di solito rispondono entro 1 giorno
-
RequirementAgent treats list -> add -> list as a tool call cycle and drops the second list call (Python)Forse già presa @chaitanya0305 l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
i-am-bee/beeai-framework#2049 · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno