langfuse / langfuse/codex-observability-plugin
Subagent traces replay inherited ancestor turns
@milanagm is already working on this.
Since Sep 17, 2026.
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.