Skip to content

[BUG] Subagent keeps parent agent persmissions #26873

@gelven4sec

Description

@gelven4sec

Description

I have a primary agent that act as an orchestrator, which runs with very limited permissions, and a worker subagent that does all the works with elevated permissions.

Since I updated from 1.4.43 to 1.4.48, the worker keeps the orchestrator's permissions and cannot work anymore.

Plugins

opencode-pty (not revelant)

OpenCode version

1.4.48

Steps to reproduce

  1. Define two local agents at .opencode/agent/ (orchestrator as primary and worker as subagent)
  2. Setup in opencode.jsonc similar permissions as below:
"agent": {
		"orchestrator": {
			"permission": {
				"edit": "deny",
			}
		},
		"worker": {
			"permission": {
				"edit": "allow",
			}
		},
}
  1. Ask the orchestrator to task the worker to write a file

Screenshot and/or share link

No response

Operating System

Arch Linux

Terminal

Alacritty

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