Skip to content

Stamp root product session id on nested OpenCode spans - #8

Merged
zwobill merged 1 commit into
mainfrom
feat/nested-session-holistic
Sep 14, 2026
Merged

zwobill merged 1 commit into
mainfrom
feat/nested-session-holistic

Conversation

@zwobill

@zwobill zwobill commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Nested OpenCode sub-agent spans stamp the root session as sp.session.id / gen_ai.conversation.id (one product Session).
  • Nesting remains OTel parent_span_id under the dispatching task tool; no new run-id attributes.
  • Unit tests assert shared product session id + task parent linkage.

Test plan

  • npm test --workspace=@softprobe/opencode-plugin -- tests/subagent.test.ts tests/session-graph.test.ts
  • CI green

Made with Cursor

Sub-agent turns keep parent_span_id nesting under the task tool while
sp.session.id / gen_ai.conversation.id always use the root OpenCode
session, so thelake and Explorer see one holistic Session.

Co-authored-by: Cursor <cursoragent@cursor.com>
@zwobill
zwobill merged commit 0fb1281 into main Sep 14, 2026
1 check passed
@zwobill
zwobill deleted the feat/nested-session-holistic branch September 14, 2026 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant