Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): wait for native Codex start before Stop #10024

Mergedsaphid(GitHub profile, opens in a new tab)merged 2 commits intot3code/codex-turn-mapping fromrefs/pull/10024/headmerged by juliusmarminge View on GitHub

Stop waits for native Codex turn/started when turn/start acknowledges a queued turn with a null start timestamp. If the turn fails before starting, Stop finishes without sending an invalid interrupt.

Rebased onto current v2, preserving the original feature commit. The prerequisite redaction assertion is already in v2.

Validation: both new regression cases fail with the base adapter and pass with this patch; all 61 Codex adapter tests pass. Server typecheck and scoped formatting pass. CI and the requested Claude Fable 5.1 review are being checked before merge.

Prepared by GPT-6 Astra in the Codex/T3 harness.

Review follow-up: the native-start wait now has a ten-second deadline. If Codex never starts or terminalizes the turn, Stop reports an error and executes the existing lineage finalization and interrupt-state cleanup. The added timeout regression hangs on the previous head and passes with the fix.

    1. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted

    2. macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      Approvability

      Verdict: Approved at 01ea12b

      Macroscope's review found this PR approvable — This is a focused Codex server bug fix that delays interruption only for turns acknowledged as queued, then bounds the wait and cleans up state; normal turns remain unchanged. Replay tests cover native startup, pre-start failure, and a turn that never starts, while the recorded high-severity concern targets the same lifecycle path.

      Notes:

      • This verdict was updated automatically after the outstanding correctness findings were resolved. Macroscope did not re-review the code.
      You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    3. macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      Macroscope has since reviewed this pull request. An earlier review was skipped by a cost limit; a review has now completed, so that notice no longer applies.

    4. juliusmarminge merged this49fa325

    5. juliusmarminge closed this

Sign in to join this conversation.