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
- 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
Summary
In opencode v2, the
subagenttool returns a session ID (ses_...) both at launch and in the completion notification, and sessions can be resumed via thesessionIDparameter. However, there is still no way to cancel a running background subagent.What works now (v2)
ses_0721f344effe5ZAKw2R1Y9AVF1sessionIDparameter.What is still missing
cancel/kill/abort/stopparameter on thesubagenttool and no dedicated cancel tool to stop a running background subagent.Desired behavior