Repository navigation
test(codex): include model catalog reads in context checks - #163387
Conversation
|
🦞👀 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 October 2, 2026, 4:34 AM ET / 08:34 UTC. ClawSweeper reviewWhat this changesUpdates Codex context-engine tests to expect model catalog reads before turns while preserving context, history, and resume checks. Merge readiness✅ Ready for maintainer review Keep open: the expectations match the existing turn path, and fetched main still lacks this repair. No introduced correctness defect was found; the MEMBER-authored PR remains under maintainer handling. Priority: P3 Review scores
Verification
How this fits togetherOpenClaw’s Codex plugin prepares conversation context and starts native Codex turns. These tests check the requests and context sent during fresh, resumed, and repeated turns. flowchart TD
A[Conversation and session history] --> B[Context preparation]
B --> C[Start or resume native thread]
C --> D[Read model catalog]
D --> E[Start native turn]
E --> F[Check request order and context]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +6. Total +6 across 1 file. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep the context lifecycle checks aligned with the existing catalog lookup while retaining their independent history and bootstrap assertions. Do we have a high-confidence way to reproduce the issue? Yes, from source: the fixture records the production model/list request before turn/start, while the original expectations omit it. No tests were executed in this read-only review. Is this the best way to solve the issue? Yes: adding the existing request to the expectations is a narrow repair that preserves the meaningful context and lifecycle checks. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 0a188c4f038f. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
…163387) Cherry-picked from canonical main commit 18ad182. Preserve the observed model/list request in the existing context-engine request sequence; all 22 original cases pass on the receiving candidate. Co-authored-by: VACInc <[email protected]>
…cription sequences b56164e (#163320) made each run attempt read the app-server model catalog (model/list) right before turn/start so it can request Ultrafast when the catalog advertises it. #163387 and #163388 updated the context-engine and thread-cleanup sequences; the context-engine overflow and subscription recovery assertions still expected the old order and kept main red (7 failures). Add model/list before each turn/start in those assertions, matching the existing updates. The Codex app-server serves model/list from its cached catalog (codex-rs/app-server/src/request_processors/catalog_processor.rs list_models; models-manager/src/manager.rs OnlineIfUncached), so the extra read is intended behavior, not a regression. Proof: run-attempt.context-engine-overflow.test.ts and run-attempt.subscription.test.ts 16/16 on main d7fd9a7.
…cription sequences 1f9ce7e (openclaw#163320) made each run attempt read the app-server model catalog (model/list) right before turn/start so it can request Ultrafast when the catalog advertises it. openclaw#163387 and openclaw#163388 updated the context-engine and thread-cleanup sequences; the context-engine overflow and subscription recovery assertions still expected the old order and kept main red (7 failures). Add model/list before each turn/start in those assertions, matching the existing updates. The Codex app-server serves model/list from its cached catalog (codex-rs/app-server/src/request_processors/catalog_processor.rs list_models; models-manager/src/manager.rs OnlineIfUncached), so the extra read is intended behavior, not a regression. Proof: run-attempt.context-engine-overflow.test.ts and run-attempt.subscription.test.ts 16/16 on main 420daf0.
What Problem This Solves
Required CI for #163381 is blocked by five stale context-engine request-order assertions. The existing Ultrafast lookup calls
model/listbefore each turn, but these tests omit that request.Why This Change Was Made
Include the catalog read in the expected sequences. Context projection, bootstrap ownership, epoch changes, history, and resume assertions remain intact. This separate test-only repair is required to validate the message fix; it changes no runtime behavior.
The producer predates the message change: 9c2335a. The affected app-server subtree is identical at the message PR base and head.
Evidence