Repository navigation
Conversation
…ce (#451/#452) and rebuild its "not yet known" list (#453) The Codex section previously said nothing about the UserPromptSubmit stdout contract that made every Codex prompt read as Failed until #451/#452, and its "not yet known" list still framed the open questions from before that fix existed. Add a paragraph naming the mechanism (Codex sniffs the first stdout byte and marks the run Failed on a bare `[`/`{` that fails its own schema), record that session-start-hook.sh was checked against three store shapes and does not share the defect, and rebuild the list from what is actually still unknown today. Co-Authored-By: Max <noreply>
… the first stdout byte
The Explore reviewer caught it: scripts/session-start-hook.sh has one line
that opens with `[` ("[already delivered ...]"), so "every line ... never
`{`/`[`" was false on its face. What the cited test actually proves is
narrower and still sufficient -- the first stdout byte, which is what
Codex's own sniffing checks -- because that bracket-opening line is always
preceded on the same run by an unconditional `=== LAST HANDOFF ===`
header. Corrected the claim and carried the test's own OBSERVED-not-proven
caveat into the README.
Co-Authored-By: Max <noreply>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #453.
README.md's Codex section described the host as working and said nothing about the
UserPromptSubmitstdout contract that made every Codex prompt read asFaileduntil #451/#452 -- Codex's hook engine sniffs the first non-whitespace byte of aUserPromptSubmithandler's stdout, and a[/{that then fails Codex's own JSON schema marks the whole runHookRunStatus::Failedregardless of exit code. The section'sNot yet known/Still openline also predated that fix and framed the open questions from before it existed.This is docs-only, no script files touched (two other lanes -- #481 on
scripts/save-session.sh, #447 on the fourscripts/*-hook.shfiles -- own those concurrently):scripts/user-prompt-hook.shnow handles it (branches onCLAUDE_PROJECT_DIR, wraps the stamp in Codex's own JSON envelope on hosts where it is unset), and thatscripts/session-start-hook.shwas checked against three store shapes and does not share the defect -- stated correctly as a claim about the first byte of stdout (matching what Codex's sniffer actually checks), not "every line", after a reviewer caught the stronger, false version of that claim in an earlier commit on this branch (scripts/session-start-hook.sh:1073opens a line with[; the cited test only proves the first stdout byte across three shapes, never every line -- seetests/test_codex_upsubmit_stdout_451.py's own docstring). Corrected before this PR was written.codex resumebehaviour after a non-zero extraction count is still unknown, and everything in the Codex section is OBSERVED againstcodex-cli 0.150.1specifically -- theCLAUDE_PROJECT_DIR-unset branch shared with Gemini CLI is REASONED, not verified against a live Gemini install.changelog.d/453.changed.md.Below-bar finding, recorded here rather than filed: the reviewer separately confirmed the
#451/#452mechanism description, the JSON-envelope code path, the Gemini-CLI framing, and the changelog fragment format all check out against the code as it stands -- no other findings.Test plan
python3 .oss/assemble_changelog.py --check-- ok,453.changed.mdparses and is listed.pytest -q-- 1917 passed, 43 skipped, 0 failed (~9m24s, macOS/Python 3.13.15).scripts/user-prompt-hook.sh's#451stdout-shape block andtests/test_codex_upsubmit_stdout_451.pydirectly to confirm every claim added to the README against the code, not just against the issue text.