Skip to content

Subagent doesn't ask permission when executing bash commands #4066

Closed

Description

@nithin-raj-9100

Description

When the main agent delegates a task to sub agent and this subagent tries to run bash commands it doesn't run probably waiting for my permission with the delegated session

Here is my opencode.json

{
  "$schema": "https://opencode.ai/config.json",
  "permission": {
    "edit": "ask",
    "bash":{
      "fd": "allow",
      "rg": "allow",
      "*": "ask"
    }
  }
}

OpenCode version

1.0.45

Steps to reproduce

  1. Delegate a subagent such that it needs to execute bash commands
  2. Wait until it tries to run bash commands
  3. Bash command will never run and doesn't return at all and doesn't proceed with next steps gets struck there itself

Screenshot and/or share link

I can't share via /share but here is the relevant screenshots

Image

Operating System

macOS 26.1

Terminal

Ghostty 1.2.3 Version - version: 1.2.3 - channel: stable Build Config - Zig version : 0.14.1 - build mode : builtin.OptimizeMode.ReleaseFast - app runtime : apprt.Runtime.none - font engine : font.main.Backend.coretext - renderer : renderer.generic.Renderer(renderer.Metal) - libxev : kqueue

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Nov 8, 2025
  2. github-actions commented on Nov 8, 2025

    @github-actions
    Contributor

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

    The core issue appears to be that permission requests for bash commands are not properly handled in delegated contexts (subagents in your case, opencode run mode in #3503).

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

  3. nithin-raj-9100 commented on Nov 8, 2025

    @nithin-raj-9100
    Author

    Closing because of duplicate issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentui

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions