langfuse / langfuse/codex-observability-plugin

Subagent traces replay inherited ancestor turns

Open
#82 0 comments 0 reactions 1 assignee View on GitHub

@milanagm is already working on this.

Since Sep 17, 2026.

bug feat-agents feat-llm-cost-tracking feat-tracing
Dominant language
TypeScript
Stars
30
Forks
31
Avg merge
3d 6h
Merged PRs (30d)
13

Description

With Codex 0.153.0, subagent rollouts can contain turns inherited from their parent and earlier ancestors. The plugin exports those turns again as descendant work, duplicating observations and inflating token usage and cost.

In this affected trace:

  • The main turn appeared three times and the child turn twice.
  • An earlier completed turn was replayed inside both descendants.
  • Two inherited generations added 36,814 tokens and $0.0343.

Expected: Each subagent exports only its own turns, skipping inherited ancestor turns.

Proposed fix: PR #81 tracks ancestor turn IDs during recursive conversion and skips inherited copies. It includes a regression test and a corrected replay of the affected trace.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.