[PR #11944] fix(tui): rejecting any stacked permission of a subagent terminates it's session #13997

Open
opened 2026-02-16 18:18:49 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/11944

State: open
Merged: No


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

https://github.com/user-attachments/assets/62a5cbd8-f911-4a6f-a96c-56bfeb4e5eca

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

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/11944 **State:** open **Merged:** No --- ### 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* https://github.com/user-attachments/assets/62a5cbd8-f911-4a6f-a96c-56bfeb4e5eca screen recording session share link: https://opncd.ai/share/2PdOHkY7
yindo added the pull-request label 2026-02-16 18:18:49 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13997