Skip to content

fix(tui): rejecting any stacked permission of a subagent terminates it's session - #11944

Closed
IdrisGit wants to merge 2 commits into
anomalyco:devfrom
IdrisGit:fix-tool-permission-reject-with-reason-followup-terminating
Closed

fix(tui): rejecting any stacked permission of a subagent terminates it's session#11944
IdrisGit wants to merge 2 commits into
anomalyco:devfrom
IdrisGit:fix-tool-permission-reject-with-reason-followup-terminating

Conversation

@IdrisGit

@IdrisGit IdrisGit commented Feb 3, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

fixes #11932 where rejecting one of subagent's stacked permissions cascades and terminates the session instead of continuing with the reason.

This is achieved by providing a proper cascading error message for rest of the permissions instead of RejectedError which terminates the session.

How did you verify your code works?

  • tested manually (screen recording and share link provided below)
  • added a new test case to handle this case

screen recording

subagent_reject_multiple_issue_fix_compressed.mp4

screen recording session share link: https://opncd.ai/share/2PdOHkY7

@github-actions

github-actions Bot commented Feb 3, 2026

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

@IdrisGit

IdrisGit commented Feb 5, 2026

Copy link
Copy Markdown
Contributor Author

hey @rekram1-node @thdxr can I get a review on this PR, this can become base for the "reject with reason" in main agent as well

@github-actions

github-actions Bot commented Apr 7, 2026

Copy link
Copy Markdown
Contributor

Closing this pull request because it has had no updates for more than 60 days. If you plan to continue working on it, feel free to reopen or open a new PR.

@github-actions github-actions Bot closed this Apr 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

1 participant