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
- Configure an agent (e.g., developer-expert) with bash: allow permissions
- Invoke it from a main agent via task tool
- Ask it to run: New-Item -ItemType Directory -Path "test"
- 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
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
Operating System
Windows 10
Terminal
CMD