claude-code - 💡(How to fix) Fix [Bug] Agents and sub-agents ignore dontAsk permission model [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#53302Fetched 2026-04-26 05:19:13
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Timeline (top)
labeled ×4commented ×1
RAW_BUFFERClick to expand / collapse

Bug Description Agents and sub-agents do not respect permission model of dontAsk

Environment Info

  • Platform: darwin
  • Terminal: iTerm.app
  • Version: 2.1.119
  • Feedback ID: 5ed9e7fa-77d8-43ea-add7-526782d88f29

Errors Run in dontAsk mode with sandbox. Run a sub-agent that modifies a file outside the sandbox. Instead of being rejected, the sub-agent will prompt for permission to modify the file.

Note: Content was truncated.

extent analysis

TL;DR

The issue may be resolved by ensuring that sub-agents inherit the permission model of the parent agent, specifically the "dontAsk" mode, to prevent unauthorized file modifications.

Guidance

  • Verify that the sub-agent is properly configured to respect the "dontAsk" mode of the parent agent.
  • Check the sandbox settings to ensure that file modifications outside the sandbox are correctly restricted.
  • Investigate the permission model implementation to identify why sub-agents are not inheriting the "dontAsk" mode.
  • Test the behavior with different permission models to isolate the issue.

Notes

The provided information is limited, and the root cause of the issue is not explicitly stated. Further investigation into the permission model implementation and sandbox settings is necessary to determine the exact cause and solution.

Recommendation

Apply workaround: Modify the sub-agent configuration to explicitly respect the "dontAsk" mode, until the root cause of the issue is identified and fixed.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [Bug] Agents and sub-agents ignore dontAsk permission model [1 comments, 2 participants]