| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
The following comment was made by an LLM, it may be inaccurate: Based on my search results, I found one potentially related PR: #37902 - fix(acp): child/subagent session permission requests no longer hang forever This PR appears to address a similar issue with child/subagent session permission requests hanging. It may be related to or a predecessor of the current PR's fix for cascading auto permissions to subagent sessions. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Issue for this PR
Fixes #41730
Type of change
What does this PR do?
When opencode run spawns a subagent, permission requests belong to the child session. Filtering only for the root session leaves that subagent waiting forever.
The run event loop now accepts permission requests from the attached root session and sessions whose parentID chain reaches that root. Proven descendants are cached. Requests from unrelated sessions in the same workspace remain untouched, so --auto cannot approve another concurrent session's request.
How did you verify your code works?
The subprocess matrix covers child auto-approval, child auto-rejection without --auto, and an attach-mode negative case proving an unrelated session's pending permission is not answered.
Checklist