Skip to content

fix: accept Codex batch JSON with token footer - #704

Open
szupzj18 wants to merge 1 commit into
peteromallet:mainfrom
szupzj18:chris/fix/codex-batch-json-footer
Open

fix: accept Codex batch JSON with token footer#704
szupzj18 wants to merge 1 commit into
peteromallet:mainfrom
szupzj18:chris/fix/codex-batch-json-footer

Conversation

@szupzj18

Copy link
Copy Markdown

Summary

  • accept a valid Codex batch JSON object followed by the tokens used footer
  • add regression coverage for the footer format

Root cause

The runner validated the entire output with json.loads(), although the downstream batch parser already accepts a leading JSON object with trailing text. A valid Codex result was therefore reported as missing or invalid.

Validation

  • RED: footer regression test failed before the fix
  • GREEN: 76 related tests passed
  • Ruff critical checks passed

Fixes #698

@szupzj18
szupzj18 force-pushed the chris/fix/codex-batch-json-footer branch from b0ef95a to 75b4a6b Compare August 12, 2026 06:04
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.

fix: accept Codex batch JSON followed by token footer

1 participant