Skip to content

[Compat] Codex v0.134.0: trace_id added to TurnStartedEvent; v0.135.0 adds forked_from_thread_id to turn metadata #86

@delexw

Description

@delexw

Codex Version

v0.134.0 (2026-05-26) / v0.135.0 (2026-05-28)

Change Description

Two new fields were added to turn-level session output across these releases:

  • v0.134.0, PR #23980: trace_id added to TurnStartedEvent
  • v0.135.0, PR #24160: forked_from_thread_id added to turn metadata
  • v0.135.0, PR #24368: compaction metadata added to turn headers

Impact on codex-trace

codex-trace consumers that reconstruct turn timelines or session graphs from transcript data will not surface these new fields unless the parser is updated. Specifically:

  • Missing trace_id means turn events cannot be correlated with OpenTelemetry/distributed traces.
  • Missing forked_from_thread_id means forked sessions appear as independent roots rather than branches, breaking session-tree reconstruction.
  • Missing compaction metadata in turn headers causes inaccurate context-window accounting in traces.

Severity: Low

Suggested Fix

Add trace_id, forked_from_thread_id, and compaction metadata fields to the turn event parser and expose them in codex-trace output. All fields should be optional (nullable) so older session transcripts remain valid.

Source

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions