Skip to content

[BUG] Subagent keeps parent agent persmissions #26873

Closed

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

Activity

  1. github-actions commented on May 11, 2026

    @github-actions
    Contributor

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

  2. gelven4sec commented on May 11, 2026

    @gelven4sec
    Author

    Duplicate of #26758
    My bad

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