Submitting a subagent rejection doesn't handle stage properly #8152

Open
opened 2026-02-16 18:09:17 -05:00 by yindo · 1 comment
Owner

Originally created by @justfortheloveof on GitHub (Jan 31, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

If a subagent requests a permission and other permission requests get queued before the user handles the first request, rejecting this first requests results in getting stuck in the reject prompt component

Plugins

None

OpenCode version

1.1.48

Steps to reproduce

1 - use this config to get permissions prompt/requests for everything

"permission": {
  "*": "ask"
}

2 - have the primary agent spawn 2 subagent to write 2 files

please spawn 2 subagents as tasks, 1 should write a file called 1 in /tmp/tmp/ with "test" for content and the other should write a file called 2 in the same dir with same content

3 - allow the subagent tasks
4 - wait a few seconds, both subagents will request permission for external dir and/or to write the files
5 - reject the first permission request, hit enter
6 - notice you are still "stuck" in the rejection component (and you rejection message is still there) but the rejection prompt was actually submitted
7 - hit enter again leads to rejecting the next permission request, without actually seeing the permission request as you were stuck in the rejection component

Screenshot and/or share link

https://github.com/user-attachments/assets/f976f55a-642a-4b07-89d7-7287f80bf107

Operating System

macOS 15.6

Terminal

Ghostty

Originally created by @justfortheloveof on GitHub (Jan 31, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description If a subagent requests a permission and other permission requests get queued before the user handles the first request, rejecting this first requests results in getting stuck in the reject prompt component ### Plugins None ### OpenCode version 1.1.48 ### Steps to reproduce 1 - use this config to get permissions prompt/requests for everything ```json "permission": { "*": "ask" } ``` 2 - have the primary agent spawn 2 subagent to write 2 files > please spawn 2 subagents as tasks, 1 should write a file called 1 in /tmp/tmp/ with "test" for content and the other should write a file called 2 in the same dir with same content 3 - allow the subagent tasks 4 - wait a few seconds, both subagents will request permission for external dir and/or to write the files 5 - reject the first permission request, hit enter 6 - notice you are still "stuck" in the rejection component (and you rejection message is still there) but the rejection prompt was actually submitted 7 - hit enter again leads to rejecting the next permission request, without actually seeing the permission request as you were stuck in the rejection component ### Screenshot and/or share link https://github.com/user-attachments/assets/f976f55a-642a-4b07-89d7-7287f80bf107 ### Operating System macOS 15.6 ### Terminal Ghostty
yindo added the opentuibug labels 2026-02-16 18:09:17 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 31, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #7730: Rejecting use of a tool aborts the response - related to permission rejection state handling
  • #10584: Permission prompt UI state issues with overlapping modals
  • #6616: UI becomes unresponsive when tool permission dialog appears
  • #5820: Multiple interactive components have state conflicts when permission dialog is present
  • #4078: Subagent's request for permission is not shown properly

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 31, 2026): This issue might be a duplicate of existing issues. Please check: - #7730: Rejecting use of a tool aborts the response - related to permission rejection state handling - #10584: Permission prompt UI state issues with overlapping modals - #6616: UI becomes unresponsive when tool permission dialog appears - #5820: Multiple interactive components have state conflicts when permission dialog is present - #4078: Subagent's request for permission is not shown properly Feel free to ignore if none of these address your specific case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#8152