Skip to content

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

@ROKO108

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions