Repository navigation
test(codex): align startup-retry and media fixtures with current contracts - #172947
Conversation
73c9e39 (#172287) requires confirmed unloading before managed thread resume. Report an unloaded thread in the startup fixture so the exact overload error and binding/shared-client preservation checks run. 14eee34 (#171218) disables native shell features alongside code mode. Include both flags in the complete bounded-media request expectations. Repair latent red-main failures exposed by PR #172381, CI run 38696213621. Static oxlint, oxfmt, whitespace checks, and isolated P0-P2 review pass. Test and typed-lint proof use PR CI because local preparation timed out.
|
🦞👀 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 SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex review: needs maintainer review before merge. What this changesThis PR updates Codex startup and media tests to match confirmed thread unloading and disabled native shell features. Example: A resumed thread returns RPC error -32001 while another lease uses the shared client.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it repairs stale Codex fixtures without weakening their assertions or changing production behavior, and exact-head CI succeeded; no actionable defects were found. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe Codex plugin converts agent and media requests into app-server RPC calls; these tests exercise startup lifecycle behavior and bounded media request configuration. flowchart LR
A[Agent request] --> B[Startup lifecycle]
B --> C[Codex RPC client]
D[Media request] --> E[Bounded turn configuration]
E --> C
C --> F[App server fixture]
F --> G[Contract assertions]
Technical reviewBest possible solution: Merge the focused fixture repair while preserving the existing production contracts and negative lifecycle coverage. Do we have a high-confidence way to reproduce the issue? Source inspection establishes both mismatches: media request equality omits emitted shell-disable flags, and the startup fixture never confirms unloading before the intended overload response; no tests were run during this read-only review. Is this the best way to solve the issue? The repair changes the fixture producer and independent protocol expectations without bypassing the unload guard, loosening equality, or altering production code. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 9b2bc0ed7e13. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +6. Total +6 across 2 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 15, 2026, 5:04 AM ET / 09:04 UTC. |
|
Merged via squash.
|
…172947) 96ccbf0 (openclaw#172287) requires confirmed unloading before managed thread resume. Report an unloaded thread in the startup fixture so the exact overload error and binding/shared-client preservation checks run. 323baf4 (openclaw#171218) disables native shell features alongside code mode. Include both flags in the complete bounded-media request expectations. Repair latent red-main failures exposed by PR openclaw#172381, CI run 38696213621. Static oxlint, oxfmt, whitespace checks, and isolated P0-P2 review pass. Test and typed-lint proof use PR CI because local preparation timed out.
What Problem This Solves
Repairs latent red main exposed by PR #172381's CI run 38696213621: two existing Codex test files retained assumptions from before intentional production contract changes.
User Impact
No production behavior changes. Codex regression coverage again exercises the intended overload and bounded-media contracts.
Why This Change Was Made
73c9e39c619a(fix(codex): recover failed conversations while sibling work continues #172287) made managed local resumes require confirmed thread unloading. The startup-retry fixture now reportsnotLoadedwhen reading the thread, allowing the test to reach its native overload response. The exact-32001error, unchanged binding, healthy shared client, and single-process assertions remain intact; missing-unload coverage remains with the lifecycle tests.14eee3444e39(fix: keep Codex commands on the selected GitHub identity #171218) disables native shell features when native code mode is disabled. Both bounded-media request expectations now includefeatures.shell_tool: falseandfeatures.unified_exec: false, preserving complete request equality.The managed-unload interpretation was checked against the pinned Codex lifecycle source.
Evidence
Exact-head CI run 38707206591, attempt 1 succeeded on
0c93cac3af44929c83bb579e4992112d20b90451.The changed-extension job confirms:
extensions/codex/src/app-server/attempt-startup-retry.test.ts: 9/9 passed, including the exact overload/shared-client/binding case; 52.45 seconds Vitest duration.extensions/codex/media-understanding-provider.test.ts: 15/15 passed, including both complete bounded-turn config comparisons; 28.82 seconds Vitest duration.Test types, typed extension lint, general lint, planner checks, boundaries, and baseline ratchets also passed. No inherited-failure exception was needed.
Changed-file static oxlint with the repository configuration, oxfmt, and
git diff --checkpassed locally. Independent P0-P2 autoreview completed scoped-clean with no actionable findings. The local typed-lint wrapper timed out during plugin declaration generation after 300 seconds; the successful CI lint supplies that proof.Earlier local baseline attempts on an overloaded host failed before the reported assertions: startup retry had seven passes and two initialization/startup timeouts; both selected media cases reached their existing 120-second timeout. Those attempts are not claimed as reproductions of the reported CI signatures. PR CI was explicitly selected for test validation and proves both repaired files above.