Skip to content

Link child sessions to parent traces - #27

Merged
bezbac merged 1 commit into
langfuse:mainfrom
idityaGE:fix-child-session-parenting
Aug 20, 2026
Merged

bezbac merged 1 commit into
langfuse:mainfrom
idityaGE:fix-child-session-parenting

Conversation

@idityaGE

Copy link
Copy Markdown
Contributor

Summary

  • track OpenCode session parent IDs from session lifecycle events
  • parent child-session turn spans to the active parent session span when available
  • finalize/clear tracing state per idle session instead of clearing all active sessions
  • add an integration regression test for parent-child session trace linkage

Fixes #8.

Verification

@CLAassistant

CLAassistant commented Aug 18, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@bezbac

bezbac commented Aug 20, 2026

Copy link
Copy Markdown
Member

Hi @idityaGE, I'd be happy to merge this. Could you make sure to fill out the CLA #27 (comment)? If you are having any troubles with it, please see the "Troubleshoot CLA License Check" section in our main repository's contributing guide here: https://github.com/langfuse/langfuse/blob/00b4d0de4f626e170c5984c0e3f39a4741252ebf/CONTRIBUTING.md#troubleshoot-cla-license-check

@idityaGE

Copy link
Copy Markdown
Contributor Author

@bezbac CLA is signed and the license/cla check is passing now.

@bezbac

bezbac commented Aug 20, 2026

Copy link
Copy Markdown
Member

Thanks for the quick turnaround and thanks again for contributing.

@bezbac
bezbac enabled auto-merge (squash) August 20, 2026 09:21
@bezbac
bezbac merged commit f54626e into langfuse:main Aug 20, 2026
3 checks passed
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.

Child agent sessions produce isolated traces — no linkage to parent trace

3 participants