codex - 💡(How to fix) Fix Document session JSONL schema stability for external integrations [2 comments, 3 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#20952Fetched 2026-05-05 05:55:42
View on GitHub
Comments
2
Participants
3
Timeline
7
Reactions
0
Timeline (top)
labeled ×3commented ×2cross-referenced ×1unlabeled ×1
RAW_BUFFERClick to expand / collapse

What feature would you like to see?

A docs page that defines which session JSONL fields/events are stable for external tooling and which are internal/subject to change.

Problem

External integrations (dashboards, wrappers, review surfaces, CI helpers) consume Codex session JSONL, but there is no explicit stability contract. This forces parsers to depend on implementation details and breaks across updates.

Proposal

Add a docs section (for example docs/session-jsonl.md) that includes:

  1. Event envelope shape and required top-level fields.
  2. Event type catalog currently emitted in session JSONL.
  3. Stability level for each field:
    • stable for external use
    • experimental
    • internal
  4. Versioning guidance:
    • how additions/removals are communicated
    • how external parsers should handle unknown fields/events
  5. One or two realistic examples from interactive and codex exec runs.

Why this helps

  • Lowers friction for community integrations without requiring new runtime features.
  • Reduces duplicate "parser broke" issues.
  • Creates a clear foundation for future lifecycle APIs/events.

Acceptance criteria

  1. Docs explicitly define a stability contract for session JSONL fields.
  2. Docs list at least one canonical sample per run mode (interactive and exec).
  3. Docs include forward-compat parser guidance (ignore unknown fields, branch by version when present).
  4. Changelog/release notes point to this contract when format-affecting changes ship.

Scope note

This request is docs-first and additive. It does not require changing current JSONL emission behavior.

extent analysis

TL;DR

Create a documentation page that defines the stability contract for session JSONL fields to guide external tooling and prevent integration breakages.

Guidance

  • Identify the required top-level fields and event types in the session JSONL to establish a clear foundation for the stability contract.
  • Categorize each field as stable, experimental, or internal to inform external integrations about their usage.
  • Develop versioning guidance to handle additions, removals, and unknown fields, ensuring backward compatibility.
  • Include realistic examples from interactive and codex exec runs to illustrate the usage of session JSONL fields.

Example

No code snippet is provided as the issue focuses on documentation and stability contracts rather than code implementation.

Notes

The proposed solution is additive and does not require changes to the current JSONL emission behavior, making it a low-risk improvement.

Recommendation

Apply workaround by creating the proposed documentation page, as it provides a clear foundation for external integrations and reduces the likelihood of breakages across updates.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

codex - 💡(How to fix) Fix Document session JSONL schema stability for external integrations [2 comments, 3 participants]