[Bug] bypassPermissions mode: sub-agents still prompt for file creation confirmation
Resolved 💬 4 comments Opened Mar 24, 2026 by chaeyoojin Closed Apr 22, 2026
Bug Description
When defaultMode is set to bypassPermissions in ~/claudesettingsjson, sub-agents spawned via the Agent tool still prompt the user for file creation confirmation (Write tool), despite the parent session correctly operating in bypass mode
Environment
- Claude Code CLI
- macOS (Darwin 2340)
Settings
{
"permissions": {
"allow": ["Read", "Edit", "Write", "Grep", "Glob", "Agent", "Bash(*)"],
"defaultMode": "bypassPermissions"
},
"skipDangerousModePermissionPrompt": true
}
Steps to Reproduce
1 Configure defaultMode: "bypassPermissions" in global settings
2 Confirm bypass mode is active (status bar shows "bypass permissions on")
3 Use the Agent tool to spawn multiple sub-agents in parallel (3+ agents)
4 Have a sub-agent attempt to create a new file using the Write tool
Expected Behavior
Sub-agents should inherit the parent session's bypassPermissions mode and create files without prompting
Actual Behavior
A confirmation prompt appears:
Do you want to create work-notesmd?
1 Yes
> 2 Yes, allow all edits during this session (shift+tab)
3 No
This happens even though:
- The parent session's Write calls work without prompting
- The status bar clearly shows "bypass permissions on (shift+tab to cycle)"
Writeis explicitly in theallowlist
Additional Context
- The prompt appeared during parallel agent execution (3 agents running simultaneously)
- The parent session had already successfully used Write without prompting moments before
- This may be a race condition or an issue with permission mode inheritance in sub-agent contexts
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗