Repository navigation
fix(e2e): include Codex thread project id - #130086
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
@clawsweeper review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed August 26, 2026, 8:05 AM ET / 12:05 UTC. ClawSweeper reviewWhat this changesThe PR makes the shared fake Codex app-server return a nullable thread project ID and adds coverage for null and supplied request values. Merge readinessKeep open for maintainer verification. Current main requires Priority: P2 Review scores
Verification
Live VerificationCommand: Result: FAIL (failed) — step 1 Assertions:
How this fits togetherOpenClaw’s Codex integration starts a thread through the Codex app-server, then validates the returned JSON against its pinned protocol schema before starting a turn. QA auth, native approval, and media-path E2E fixtures reuse one fake thread-response builder. flowchart LR
A[QA and media E2E scenarios] --> B[Shared fake Codex server]
B --> C[thread/start request]
C --> D[Fake thread response builder]
D --> E[Codex response validator]
E --> F[Thread start]
F --> G[Auth approval or media scenario]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +18, Other +1. Total +19 across 2 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Read the exact upstream Codex Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible: current main requires nullable Is this the best way to solve the issue? Unclear pending direct upstream verification: the change is at the correct shared fixture boundary and matches OpenClaw’s generated contract, but the exact Codex source contract could not be inspected. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 710c4ea98320. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
Summary
projectIdfrom the shared fake Codexthread/startresponsenullRoot cause
Codex app-server 0.149.1 made
Thread.projectIda required nullable response field. OpenClaw's generated schema was refreshed in b68c136, butscripts/e2e/lib/codex-app-server-fixture.mjskept emitting the prior fakeThreadshape. Runtime validation therefore rejected the fakethread/startresponse before repo-E2E Codex auth and approval scenarios could reachturn/start.Upstream contract inspected directly:
../codex/codex-rs/app-server-protocol/src/protocol/v2/thread_data.rs:196defines theThread; itsproject_iduses a required nullable schema.../codex/codex-rs/app-server-protocol/src/protocol/v2/thread.rs:59defines optionalThreadStartParams.project_id, so the response must preserve a supplied value or explicitly returnnull.The sibling fake app servers all consume this shared builder; no duplicate
Threadresponse builder required a parallel repair.Proof
Pre-fix validator reproduction:
Passing:
check-changedpassed all focused formatting, dependency, conflict-marker, coercion, and script guards before reaching the existing checkout-wide type drift in unrelated Matrix, QA Lab, Google provider, Markdown, TUI, and UI dependencies.Autoreview: clean, no accepted/actionable findings.
Test audit
The new test protects the independently generated app-server response contract and fails on the exact pre-fix omission. Existing protocol-validator tests build their own canonical response and therefore could not catch drift in this shared repo-E2E fixture. The test needs no production-only seam and covers both nullable and supplied project assignments in one table.
Scope / LOC