Repository navigation
fix(test): await native turn admission before interrupting - #155140
Conversation
Punchcard-Session: coral-lantern-meadow-m8
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 21, 2026, 4:11 PM ET / 20:11 UTC (Revision 2). ClawSweeper reviewWhat this changesThe native Codex cancellation test now waits for the matching turn-start notification before interrupting, preventing premature cancellation attempts. Merge readiness✅ Ready for maintainer review The fix remains useful on current main, and no blocking defect was found. The updated evidence addresses the prior review’s timing request. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw’s Codex plugin relays native inference requests through a bounded connection queue. This integration test exercises cancellation and progress under saturation using the real native runtime and a local synthetic provider. flowchart LR
A[Native integration test] --> B[Codex app server]
B --> C[Inference relay queue]
C --> D[Local synthetic provider]
B --> E[Matching turn-start notification]
E --> F[Interrupt request]
F --> G[Cancellation and connection assertions]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +10. Total +10 across 1 file. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Synchronize cancellation with native turn admission while retaining the existing queue, connection-limit, and progress assertions. Do we have a high-confidence way to reproduce the issue? Yes: the recorded native event order and pinned dependency source establish how interruption can precede turn admission; this review did not execute a fresh reproduction. Is this the best way to solve the issue? Yes: waiting for the matching native lifecycle event repairs the fixture’s ordering assumption without weakening assertions or changing runtime behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 3d4033fbe0ac. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Merged via squash.
|
…155140) Punchcard-Session: coral-lantern-meadow-m8
What Problem This Solves
Fixes an intermittent CI failure where the native Codex admission test interrupts a turn before it becomes active.
User Impact
No runtime behavior changes. The test still verifies queued cancellation, saturation, delegated work, and upstream connection limits.
Why This Change Was Made
Native startup prewarming can open a connection before the turn-start notification. The fixture now waits for the matching thread and turn to start before sending its interrupt, retaining the existing cancellation assertions. No sleeps, retries, or timeout changes.
Evidence
upgrade → start response → interrupt → turn/started, thenno active turn to interrupt.Found while landing plugin install progress, in the failing CI job. The test is unchanged between that branch and main.
Punchcard-Session: coral-lantern-meadow-m8