Skip to content

subagent reject (with reason) bugs out if multiple permission are stacked up #11932

@IdrisGit

Description

@IdrisGit

Description

the reject (with reason) for subagent permission checks works fine if subagent is asking for permission for a single tool call, but it bugs out and terminates the execution (of subagent) if there are multiple stacked permission prompts.

Plugins

NA

OpenCode version

1.1.49

Steps to reproduce

to simulate the issue:

  1. make sure you have permissions set in the config or else general have all the access.
  2. ask the main agent to use the general subagent to make some tool calls which all or atleast some requires permission.
  3. reject any one with a reason.
  4. the subagent session immediately terminates and main agent acknowledges that the subagent is not responding and sometimes it will run the tools itself or spawn another subagent session.

Screenshot and/or share link

screen recording of the bug

subagent_reject_multiple_issue_compressed.mp4

recorded sessions share link: https://opncd.ai/share/GjKq5gFf

Operating System

Omarchy

Terminal

Ghostty

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions