Visitar URL original
Subagent able to execute arbitrary code/commands in plan mode · Issue #28305 · anomalyco/opencode · GitHub
Skip to content

Subagent able to execute arbitrary code/commands in plan mode #28305

Closed as not planned

Description

@aybr1

Description

In plan mode, subagent can still execute arbitrary code/commands without permission

Plugins

None

OpenCode version

windows desktop 1.14.50

Steps to reproduce

  1. launch Opencode desktop 1.14.50 in windows
  2. switch to plan mode
  3. ask the agent to spawn a subagent to kill a process

Screenshot and/or share link

Image

Operating System

Windows 11

Terminal

No response

Activity

  1. github-actions commented on May 19, 2026

    @github-actions
    Contributor

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

    If your issue is distinct from these, please clarify what makes it different.

  2. aybr1 commented on May 19, 2026

    @aybr1
    Author

    previos issue #6527 and #23290 appears to have similar problem(file writing) fixed but not code execution

  3. github-actions commented on Jul 19, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

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