Skip to content

[Bug] Subagent permissions not transitive via task tool — own bash permissions ignored #26747

Description

@ROKO108

Description

Description

Subagent permissions are not transitive when invoked via functions.task.
An agent with correct bash permissions cannot execute basic commands because it inherits the calling agent's restrictions instead of using its own.

Actual Behavior

The subagent cannot execute bash commands despite having correct permissions.
The global bash: deny rule from the main agent overrides the subagent's own permissions.

Expected Behavior

Each agent's own permission configuration should be respected. Subagents should not inherit the caller's restrictions.

Plugins

None

OpenCode version

1.14.46

Steps to reproduce

  1. Configure an agent (e.g., developer-expert) with bash: allow permissions
  2. Invoke it from a main agent via task tool
  3. Ask it to run: New-Item -ItemType Directory -Path "test"
  4. The command is blocked with: "The user has specified a rule which prevents you from using this specific tool call"

Operating System

Windows 10

Terminal

CMD

Activity

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions