anomalyco / anomalyco/opencode

rejecting a tool call from a subagent that has made multiple tool calls requiring permission cancels the entire subagent

Open
#47,995 0 comments 0 reactions 1 assignee View on GitHub

@jlongster is already working on this.

Since Sep 8, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Description

steps to reproduce:

  1. start a subagent and tell it to run two tool calls/commands that you know will require permission
  2. wait for it to try to run both commands
  3. reject the first command and give feedback

expected:
it rejects the first command and moves onto asking permission for the second command

actual:
both commands and the entire subagent are rejected/canceled

Plugins

none

OpenCode version

1.18.20

Steps to reproduce
  1. start a subagent and tell it to run two tool calls/commands that you know will require permission
  2. wait for it to try to run both commands
  3. reject the first command and give feedback
Screenshot and/or share link

i only rejected the first of these terminal calls. it canceled the entire agent.
Image
Image

Operating System

macOS 26.6.2

Terminal

ghostty

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.