Skip to content

v2: subagent: no cancellation support for background subagents #36423

Description

@Ploppy3

Summary

In opencode v2, the subagent tool returns a session ID (ses_...) both at launch and in the completion notification, and sessions can be resumed via the sessionID parameter. However, there is still no way to cancel a running background subagent.

What works now (v2)

  • Background subagents return a session ID at launch: ses_0721f344effe5ZAKw2R1Y9AVF1
  • The ID also appears in the completion notification.
  • Sessions are resumable via the sessionID parameter.

What is still missing

  1. No cancellation: There is no cancel/kill/abort/stop parameter on the subagent tool and no dedicated cancel tool to stop a running background subagent.

Desired behavior

  • A way to cancel a running background subagent using its session ID

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions