Skip to content

[#36]: Compat audit for Codex v0.130.0 startup banner research preview removal#40

Merged
delexw merged 2 commits into
mainfrom
fix-issue-36
May 10, 2026
Merged

[#36]: Compat audit for Codex v0.130.0 startup banner research preview removal#40
delexw merged 2 commits into
mainfrom
fix-issue-36

Conversation

@delexw
Copy link
Copy Markdown
Contributor

@delexw delexw commented May 10, 2026

Summary

Fixes #36

Audit and compatibility fix for Codex v0.130.0 (PR #21683), which removed the "research preview" wording from the codex exec startup banner.

Audit Finding

codex-trace is unaffected by this change. The tool reads JSONL session files from disk (~/.codex/sessions/YYYY/MM/DD/rollout-*.jsonl) — it never parses codex exec banner output. Version detection uses session_meta.payload.cli_version, a structured JSON field written into every session file, not any text from the startup banner.

No production code change is required.

Changes

  • src-tauri/src/parser/entry.rs: Added two regression tests:

    • v0130_startup_banner_research_preview_removal_does_not_affect_version_detection — verifies a v0.130.0 session_meta entry parses correctly and cli_version is read from the structured JSON field
    • codex_v0_130_0_startup_banner_change_does_not_affect_session_parsing — end-to-end: all standard entry types from a v0.130.0 session parse without error, documenting the architectural boundary (disk-based JSONL reader, not CLI banner parser)
  • src-tauri/src/parser/toolcall.rs: Added regression test:

    • exec_output_parsing_unaffected_by_codex_v0_130_0_banner_change — verifies parse_exec_function_output produces identical results for old and new banner formats, confirming that only stable structural markers (Output:, Exit code:, Wall time:) are used, not banner wording

Testing

cargo test --lib  →  60 passed, 0 failed
npx vitest run    → 122 passed, 0 failed
cargo clippy      →  0 warnings

delexw added 2 commits May 11, 2026 09:50
…v0.130.0

Codex v0.130.0 (PR #21683) removed the "research preview" wording from
the `codex exec` startup banner. codex-trace never pattern-matched that
text — version detection reads `cli_version` from structured JSONL
session_meta entries, and exec output parsing uses stable structural
markers (Output:, exit code, wall time, session id).

Add two regression-guard tests to make this explicit:
- entry.rs: v0.130.0 session files parse all standard entry types correctly
- toolcall.rs: exec output with and without the old banner text produces
  identical parsed status, exit code, duration, and payload

Fixes #36
Codex v0.130.0 (PR #21683) removed "research preview" from the codex
exec startup banner. codex-trace is unaffected: version detection reads
cli_version from session_meta.payload.cli_version — a structured JSONL
field — never from banner text output. No code change is required.

Adds a regression test that explicitly verifies a v0.130.0 session_meta
entry parses correctly and that cli_version is read from structured JSON,
documenting the architectural boundary (JSONL file reader, not CLI runner).
@delexw delexw merged commit eb14e33 into main May 10, 2026
1 check 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.

[Compat] Codex v0.130.0: codex exec startup banner removes "research preview" wording

1 participant