fix: Sub-Agent permissions override#21540
fix: Sub-Agent permissions override#21540nightguarder wants to merge 2 commits intoanomalyco:devfrom
Conversation
|
This PR doesn't fully meet our contributing guidelines and PR template. What needs to be fixed:
Please edit this PR description to address the above within 2 hours, or it will be automatically closed. If you believe this was flagged incorrectly, please let a maintainer know. |
|
The following comment was made by an LLM, it may be inaccurate: Based on my search, I found one highly related PR that addresses the same issue: Potential Duplicate:
Related PRs (not duplicates, but similar scope):
Recommend checking PR #12584 to ensure this PR isn't addressing the same fix that was already attempted. |
|
This pull request has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window. Feel free to open a new pull request that follows our guidelines. |
fix: Sub-Agents permissions override
Plan mode restrictions bypassed when spawning sub-agents
Fixes #6527
Closes #6527
Type of change
What does this PR do?
Fixes sub-agent permission bypass: when spawning sub-agents from Plan mode, they now inherit the parent session's permissions (including
edit: deny). Previously, sub-agents ran with full permissions and could edit files despite Plan mode being active.Changes:
How did you verify your code works?