Skip to content

Ignore non-object stderr when reading Codex events - #193

Open
muspi-merol-review[bot] wants to merge 1 commit into
mainfrom
fix/ignore-non-object-transcript-lines
Open

muspi-merol-review[bot] wants to merge 1 commit into
mainfrom
fix/ignore-non-object-transcript-lines

Conversation

@muspi-merol-review

Copy link
Copy Markdown
Contributor

The saved transcript contains Codex events and stderr. While reviewing #179, I found that a bare number on stderr made jq exit with status 5 when it tried to read the event type. A completed review could then lose its verdict or fail to save its thread ID and usage.

Filter for JSON objects before reading event fields in all three transcript readers. The hosted regression test emits a verdict, usage and a numeric diagnostic before Codex exits unsuccessfully. It checks that recovery publishes the verdict, saves the thread and reports usage without a retry.

@muspi-merol-review
muspi-merol-review Bot marked this pull request as ready for review November 27, 2026 23:21
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.

0 participants