Repository navigation
fix(onboarding): OpenAI setup installs mismatched Codex plugin - #129195
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 25, 2026, 7:28 PM ET / 23:28 UTC. ClawSweeper reviewWhat this changesThe PR pins managed Codex installation during OpenAI onboarding to the matching OpenClaw release cohort and adds a Docker registry fixture for candidate-package acceptance. Regression provenancePossible regression — probable (reviewed change; failure trace). No predecessor PR is attributed. Merge readinessKeep open. Current main still installs the floating Codex package during stable OpenAI onboarding; this PR adds the missing release-cohort binding, but its own correction-release evidence conflicts with the retained extended-stable exact-version path and needs a maintainer decision plus hosted package acceptance. Priority: P2 Review scores
Verification
How this fits togetherOpenAI setup selects a model, then the runtime-plugin installer obtains and records the Codex plugin. The Docker acceptance lane packages the candidate core and serves a matching candidate plugin so onboarding can exercise the managed npm path. flowchart LR
Model[OpenAI model selection] --> Runtime[Runtime plugin installer]
Core[Installed OpenClaw version] --> Resolver[Release-cohort resolver]
Runtime --> Resolver
Resolver --> Npm[Managed npm install]
Npm --> Record[Plugin install record]
Candidate[Candidate package registry] --> Npm
Decision needed
Why: The documented extended-stable exact-version rule and the PR's stated E404 evidence cannot both yield a working Codex onboarding path. Before merge
Agent review detailsSecurityNone. PR surfaceSource +16, Tests +91, Other +104. Total +211 across 17 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Adopt one explicit correction-release policy for Codex across stable and extended-stable—either publish exact correction plugins or install the published cohort package—then prove the selected policy through exact-head candidate-package acceptance. Do we have a high-confidence way to reproduce the issue? Yes—source reproducible. On current main, an OpenAI model selection reaches the Codex runtime descriptor without a stable version binding, leaving the managed npm spec floating; the proposed path makes the binding explicit. Is this the best way to solve the issue? No—not completely. The stable repair uses the right shared resolver, but extended-stable still selects the correction-suffixed package that the PR states is unavailable. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 0a15fb1c0200. LabelsLabel 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 (5 earlier review cycles)
|
54498b9 to
b0e5839
Compare
ff47dea to
7dd75db
Compare
|
Addressed the latest ClawSweeper review on exact head
Production/test accounting against current main: source +16 net, tests +89 net, docs +5 net, Docker acceptance/support +104 net. The source growth is the release-cohort owner seam; the Docker growth is the exact candidate-install proof requested here. @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|
…law#129195) * fix(onboarding): align Codex plugin with core release Amp-Thread-ID: https://ampcode.com/threads/T-01a037b4-f621-7144-bfdf-a68df795dd57 * test(onboarding): reject unpinned Codex candidates Amp-Thread-ID: https://ampcode.com/threads/T-01a037b4-f621-7144-bfdf-a68df795dd57 * fix(onboarding): match stable correction release plugin cohorts Co-authored-by: 許元豪 <[email protected]> * test: isolate plugin metadata and register startup retry coverage * test: adopt upstream startup retry ownership pattern * test: keep plugin metadata readers process-stable * test: isolate terminal session recovery cases * test: drop speculative gateway isolation change * test(gateway): mock terminal transcript lifecycle decision * fix(plugins): align correction cohorts across stable tracks --------- Co-authored-by: Amp <[email protected]> Co-authored-by: 許元豪 <[email protected]> Co-authored-by: Dallin Romney <[email protected]>
What Problem This Solves
Fixes an issue where users selecting OpenAI during first-run setup could receive a Codex plugin from a different OpenClaw release cohort when npm's latest plugin did not match the installed core package. The mismatched plugin could carry an incompatible Codex runtime and fail package acceptance immediately after otherwise successful onboarding.
Why This Change Was Made
The runtime-plugin descriptor now carries the same core-version binding already enforced by update and doctor into the existing onboarding install-channel resolver. Stable setup installs the matching
@openclaw/codexrelease cohort while preserving the durable unpinned package intent; beta setup keeps using the beta channel.Stable correction releases such as
[email protected]share their base release cohort with@openclaw/[email protected]; the correction-suffixed plugin version is not published. One canonical release-cohort resolver now owns that distinction for both stable plugin installation and existing plugin-drift detection. Extended-stable setup retains its separate documented exact-core-version contract.The packaged
codex-on-demandlane also declares and serves an immutable matching Codex candidate through the existing test npm registry, so unpublished release candidates exercise the real managed npm installation path instead of public npm latest.User Impact
OpenAI onboarding now installs a Codex plugin compatible with the user's OpenClaw core release cohort, including published stable correction releases. Release candidates can validate that behavior before publication.
AI-assisted: yes.
Evidence
Before, Package Acceptance run https://github.com/openclaw/openclaw/actions/runs/32820360602 tested candidate source
9d5d881a576aab57c7329d2a514296918447adf8([email protected]).codex-on-demandinstalled@openclaw/[email protected]with@openai/[email protected]and failed because the candidate required0.149.1.Correction-release follow-up validation:
@openclaw/[email protected]for[email protected]. It now selects the published@openclaw/[email protected]from the same release cohort.npm view @openclaw/[email protected] version --jsonreturnsE404, whilenpm view @openclaw/[email protected] openclaw.compat.pluginApi --jsonreturns>=2026.7.1.npm pack @openclaw/[email protected] --dry-run --json --ignore-scripts --loglevel=errorsucceeds against the public registry; the immutable package has 40 entries and integritysha512-OCEVg4R3yb5vXZiwchJp02o+XmWklnF9EdcXgQUGfvVELwIwJvvvQYJ0tp0M2zJLuA4zDSYPtFVDGviKRrKd2w==.@openclaw/[email protected], extended-stable preserves the exact@openclaw/[email protected]contract, and beta keeps@openclaw/codex@beta.mainbranch also carried a failing/learnintegration test that asserted two obsolete copies of skill-authoring guidance. The bounded CI repair now checks the complete canonicalSKILL_AUTHORING_STANDARDS_PROMPTinstead, preserving the behavior contract without changing production code.Original PR validation:
node scripts/check-changed.mjs -- <10 changed paths>passed formatting, typecheck, lint, dead-code, boundary, database-first, import-cycle, and guard lanes.pnpm buildpassed.@openclaw/[email protected]; manifest SHA-256:24f507752078b9790d1e46e1da399b778ec893d48fe4bf8c7b6b5b638ab6af72.openai/gpt-5.6-solat high thinking: TruffleHog clean; no accepted/actionable findings (correctness 0.98).bash -n scripts/e2e/codex-on-demand-docker.shandgit diff --checkpassed.The current orb has no usable Docker, Blacksmith Testbox, or Crabbox executable, so the final patched Docker product lane is left to exact-head hosted PR proof rather than being reported as locally passed.