[PR #3559] feat: add session id to task tool metadata #10689

Closed
opened 2026-02-16 18:15:25 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/3559

State: closed
Merged: Yes


When an agent invokes a Task/subagent, it has no good way of knowing the session that the subagent created (as far as I'm aware). While you are able to get it from the summary, this array is only populated when tools are called, so there could be a delay or not appear at all if the subagent does not invoke a tool.

This PR surfaces the subagent's session ID to the invoking agent right after the session is created. This allows the invoking agent to have a UI around the specific subagent's session in a more first class way.

Thank you!

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/3559 **State:** closed **Merged:** Yes --- When an agent invokes a Task/subagent, it has no good way of knowing the session that the subagent created (as far as I'm aware). While you are able to get it from the summary, this array is only populated when tools are called, so there could be a delay or not appear at all if the subagent does not invoke a tool. This PR surfaces the subagent's session ID to the invoking agent right after the session is created. This allows the invoking agent to have a UI around the specific subagent's session in a more first class way. Thank you!
yindo added the pull-request label 2026-02-16 18:15:25 -05:00
yindo closed this issue 2026-02-16 18:15:25 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10689