Skip to content

test(compat): add v0.132.0 regression test — entry parsing without formatted_output#92

Merged
delexw merged 2 commits into
mainfrom
fix-issue-78
Jun 3, 2026
Merged

test(compat): add v0.132.0 regression test — entry parsing without formatted_output#92
delexw merged 2 commits into
mainfrom
fix-issue-78

Conversation

@delexw
Copy link
Copy Markdown
Contributor

@delexw delexw commented May 31, 2026

Summary

Codex v0.132.0 (PR #22706 "Remove legacy shell output formatting paths") permanently removed the formatted_output field from exec_command_end events. The underlying parser fix was shipped in PR #71 (Fixes #64): formatted_output was removed from the finalize_exec output fallback chain and replaced with aggregated_output-only reads.

Issue #78 identified that no v0.132.0-specific regression test existed in entry.rs, breaking the pattern established for v0.128.0, v0.130.0, and v0.131.0.

Changes

  • src-tauri/src/parser/entry.rs: Add v0132_all_standard_entry_types_parse_correctly test that:
    • Parses all four standard JSONL entry types from a cli_version: "0.132.0" session
    • Includes an exec_command_end event with aggregated_output only (no formatted_output)
    • Explicitly asserts formatted_output is absent from the payload
    • Confirms cli_version: "0.132.0" is read correctly from session_meta

Verification

  • cargo test --lib → 132 tests pass (0 failures)
  • npx vitest run → 128 tests pass across 12 test files
  • cargo clippy -- -D warnings → clean
  • HTTP API smoke test: backend starts and GET /api/settings returns valid JSON

Fixes #78

delexw and others added 2 commits May 31, 2026 13:42
…formatted_output

Codex v0.132.0 (PR #22706) removed the legacy `formatted_output` field
from exec_command_end events. The parser fix was shipped in #71 (Fixes #64),
but no version-specific regression test existed for v0.132.0 in entry.rs,
unlike the pattern established for v0.128.0, v0.130.0, and v0.131.0.

Add `v0132_all_standard_entry_types_parse_correctly` in entry.rs that:
- Parses all four standard JSONL entry types from a v0.132.0 session
- Includes an exec_command_end event with `aggregated_output` only
  (no `formatted_output`) and asserts the field is absent
- Confirms `cli_version: "0.132.0"` is read correctly

Fixes #78
@delexw delexw merged commit 2502cb5 into main Jun 3, 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.132.0: Legacy shell output formatting paths removed [Compat] Codex v0.132.0: legacy shell output formatting paths removed

2 participants