Repository navigation
fix(plugins): stop stale Codex runtimes breaking turns after updates - #170306
Conversation
Backport main PR #168930 to release/2026.10.3. Preserve the stable runtime collector while moving official runtime policy to its plugin owner. Backport-of: 5cb977c Co-authored-by: Peter Steinberger <[email protected]>
|
🦞👀 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. What this changesThis PR backports Codex compatibility admission, host-cohort plugin updates, and actionable plugin-update failure reasons to release/2026.10.3. Example: OpenClaw 2026.10.3 discovers @openclaw/codex 2026.9.5 after a partial update.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored release backport remains necessary, no introduced defect was found, and the completed upgrade evidence clears the previous compatibility blocker. Priority: P1 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherPlugin discovery supplies package metadata to runtime admission; CLI updates and Doctor consume the shared official-runtime catalog and existing package-update owners. flowchart TD
A[Installed plugin package] --> B[Manifest metadata]
B --> C[Runtime admission]
D[Official runtime catalog] --> C
C --> E[Capability registration]
D --> F[CLI and Doctor updates]
F --> A
Technical reviewBest possible solution: Land the scoped compatibility and recovery backport through the release branch's existing checks while preserving compatible runtimes and operator settings. Do we have a high-confidence way to reproduce the issue? The released failure trace and release-base admission path establish the incompatible-runtime mechanism; current main already contains the fix, and no target code was executed during this review. Is this the best way to solve the issue? The backport reuses admission and convergence owners, preserves explicit selectors, and avoids restoring retired SDK APIs or rejecting every runtime older than the host. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 861eb94f2630. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +30, Tests +208, Docs +13. Total +251 across 16 files. Added test files: 1. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. 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 HistoryReviewed October 12, 2026, 6:34 PM ET / 22:34 UTC (Revision 3). |
…170306 backport The backport added a loader floor (2026.9.7) for the official @openclaw/codex runtime. The copied-session e2e fixture still declared @openclaw/codex 2026.8.1, so the loader degraded it during validation. Use VERSION as main does.
…penclaw#170306 backport The backport added a loader floor (2026.9.7) for the official @openclaw/codex runtime. The copied-session e2e fixture still declared @openclaw/codex 2026.8.1, so the loader degraded it during validation. Use VERSION as main does. (cherry picked from commit 0ba1eb0) Co-authored-by: RomneyDa <[email protected]>
Related: #168748, #168749. Backports #168930 to
release/2026.10.3.What Problem This Solves
Fixes broken Codex turns and hidden plugin-update failure reasons after a partial core update leaves an incompatible runtime installed.
User Impact
Known-incompatible official Codex versions stay unavailable with actionable repair guidance. Compatible older runtimes keep working, and standalone plugin updates select the host cohort while preserving explicit command selectors and existing pin policies.
Why This Change Was Made
This is a semantic backport of main commit
5cb977c8dda53e5b1d23317afcec62ab6d372b78, not a new repair design. The compatibility floor is Codex 2026.9.7; it is not a blanket rejection of plugins older than the host.The lightweight official-runtime policy moves to the plugin owner. Unlike main, this stable branch still has three callers of the Doctor runtime collector, so that collector is retained without duplicating policy. The donor's floor catalog and loader/cohort regression files are unchanged.
The Doctor fix is already merged in #170218. Deferred-migration recovery from main #166588 is a separate backport; this PR does not claim every #161921 variant is fixed.
Evidence
pnpm buildpassed (1490.21s); all 16 selected source files remained byte-identical through the build.pnpm test src/plugins/loader.runtime-version.test.ts --maxWorkers=1: 6 passed, 57.74s wall; compiler transformation dominates the invocation.[email protected],C=Q=2e05908aa5bb895664b9fb55f3e8878570077682; existing isolatedbase/manual-restart Docker lane passed in 567s. Package preparation, integrity, the managed updater, activation Doctor, preserved seeded settings/state, and post-update checks passed. This is scoped upgrade proof, not macOS-supervisor or full release qualification.Validation host: macOS arm64, Node 24.16.0, pnpm 12.5.1. Standalone changed-test costs: failure output 30.72s (30 tests), cohort selection 17.77s (4 tests), runtime floor 57.74s (6 tests). CI seconds remain pending until the ready-for-review run completes.