Repository navigation
Conversation
|
Thanks for the context here. I did a careful shell check against current Close as implemented: current main already detects stale active official plugin pins and gives the exact opt-in package update command through Gateway status and Doctor, making this branch’s second update-time diagnostic unnecessary. So I’m closing this as already implemented rather than keeping a duplicate issue open. Review detailsBest possible solution: Keep Gateway status and Doctor as the single canonical drift-detection and recovery surface, with exact package update commands for pinned official plugins. Do we have a high-confidence way to reproduce the issue? No; current main’s status and Doctor paths detect the stale official pin and emit the exact update command, with focused coverage for the Codex pin scenario. Is this the best way to solve the issue? Yes; the current status/Doctor flow is the better canonical solution because it compares records against the actual running Gateway rather than adding a second message to one update attempt. Security review: Security review cleared: The proposed diff adds no dependency, workflow, secret, permission, or supply-chain surface; its trusted-catalog use stays within existing plugin metadata handling. AGENTS.md: found and applied where relevant. What I checked:
Likely related people:
Codex review notes: model internal, reasoning high; reviewed against 6f418b93c632; fix evidence: release v2026.7.1-2, commit 2ea0e8807a78. |
d7e29f6 to
69e4ab0
Compare
|
@clawsweeper re-review Addressed the blocking feedback in head
|
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
Additional end-to-end verification for the motivating
The primary model and fallback order were not changed. This verifies that aligning the stale official plugin pin resolves the real model-runtime failure and remains effective after Gateway restart. |
|
@clawsweeper re-review |
69e4ab0 to
446ce98
Compare
|
Current-head verification update for
The released beta's separate legacy model-catalog availability issue is already covered by the route-aware implementation on the target |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
This pull request has been automatically marked as stale due to inactivity. |
|
ClawSweeper applied the proposed close for this PR.
|
|
🦞👀 Reason: structured ClawSweeper close marker: close-required (sha=446ce98ec9aa2b1bb8441ff19289d1a3faa16a8c) Usage: |
…7578) Use the existing exact-pin diagnostic for unchanged official bulk updates and dry runs. Preserve the recorded selector until the operator explicitly changes it, including ambiguous pins created by older official syncs. Remove no-op record-spec transformations from the canonical update owner. Regression: four official cases fail before the repair while four third-party controls pass. All 272 owner/sibling tests, full build, changed gate and independent review pass. A fresh Linux baseline/candidate CLI proof preserves both pins, reports the official newer release only after the fix, and executes the printed selector-change command without changing the other plugin. Production LOC: +15/-37 (net -22). Tests: +71/-35. Docs: +3/-1. Related: #105374 Original automatic-pin producer already repaired by #134490.
…7578) Use the existing exact-pin diagnostic for unchanged official bulk updates and dry runs. Preserve the recorded selector until the operator explicitly changes it, including ambiguous pins created by older official syncs. Remove no-op record-spec transformations from the canonical update owner. Regression: four official cases fail before the repair while four third-party controls pass. All 272 owner/sibling tests, full build, changed gate and independent review pass. A fresh Linux baseline/candidate CLI proof preserves both pins, reports the official newer release only after the fix, and executes the printed selector-change command without changing the other plugin. Production LOC: +15/-37 (net -22). Tests: +71/-35. Docs: +3/-1. Related: openclaw/openclaw#105374 Original automatic-pin producer already repaired by #134490.
…nclaw#137578) Use the existing exact-pin diagnostic for unchanged official bulk updates and dry runs. Preserve the recorded selector until the operator explicitly changes it, including ambiguous pins created by older official syncs. Remove no-op record-spec transformations from the canonical update owner. Regression: four official cases fail before the repair while four third-party controls pass. All 272 owner/sibling tests, full build, changed gate and independent review pass. A fresh Linux baseline/candidate CLI proof preserves both pins, reports the official newer release only after the fix, and executes the printed selector-change command without changing the other plugin. Production LOC: +15/-37 (net -22). Tests: +71/-35. Docs: +3/-1. Related: openclaw#105374 Original automatic-pin producer already repaired by openclaw#134490.
What Problem This Solves
Fixes an issue where users running an older exact-pinned lockstep official plugin would be told that the plugin was "up to date" even when its installed version lagged behind the current OpenClaw release line.
This is especially confusing when a newer core exposes a model or capability that requires the matching official plugin runtime. In the motivating case, OpenClaw
2026.7.1-beta.5listedopenai/gpt-5.6-solas available while the exact-pinned@openclaw/[email protected]runtime rejected the request with a 400 error requiring a newer Codex version.openclaw plugins update codex --dry-runstill reported the old pin as up to date.Why This Change Was Made
Exact pins remain exact and are never updated implicitly. When an unchanged exact pin is older than the current OpenClaw version, the update path now prints the exact opt-in alignment command only if the trusted official catalog declares that package as lockstep-versioned.
The implementation reuses the catalog contract already used by plugin version-drift detection:
User Impact
Operators with a stale lockstep pin can distinguish an intentionally unchanged pin from a healthy version match and receive an actionable command such as:
This does not change model defaults, provider routing, fallback order, dependency versions, or automatic update policy.
Evidence
Focused coverage now exercises both normal and dry-run paths for:
Real behavior proof
The current PR head was built from a clean checkout, copied into an isolated runtime, and run with isolated
HOME,OPENCLAW_HOME,OPENCLAW_STATE_DIR, andOPENCLAW_CONFIG_PATH. No auth profiles, provider credentials, user config, or Gateway state were copied.Current
mainidentifies itself as development version2026.7.2, for which matching official plugin packages are not yet published. For the executable proof only, the isolated runtime's package metadata was set to the published lockstep version2026.7.1-beta.5; the executable code and build stamp remained the exact PR head:Installed a real older lockstep official package into the isolated state:
The current branch generated the new dry-run diagnostic:
Executed the exact command printed by that diagnostic:
The same dry-run then confirmed convergence:
All four commands exited
0. This proof exercises real npm package installation and replacement through the current branch's production CLI; it does not exercise model inference or use provider credentials.End-to-end motivating-case verification
The original
gpt-5.6-solincident was also re-verified after aligning OpenClaw core and@openclaw/codexat2026.7.1-beta.5:GPT-5.5andGPT-5.6 Sol;GPT-5.5in the UI and sending a turn without a CLI model override producedprovider=openai,model=gpt-5.5, andagentHarnessId=codex;GPT-5.6 Solin the same UI and sending another turn without a CLI model override producedprovider=openai,model=gpt-5.6-sol, andagentHarnessId=codex;openai/gpt-5.6-solthrough the Codex harness.The released beta also exposed a separate legacy model-catalog availability issue that could mark the working Codex-routed
gpt-5.6-solentry unavailable inchat.metadata. The targetmainbranch already contains the route-aware catalog implementation that evaluates both the platform and ChatGPT subscription routes, so this PR does not duplicate that already-landed fix. The UI/inference transcript is included here as end-to-end validation of the motivating stale-plugin scenario, not as an additional code surface in this patch.No credential values, auth database contents, account identifiers, or Gateway tokens were captured in this verification.
Current-head verification
The branch was rebased onto current
origin/mainbefore the verification above. The focused tests, full repository checks, build, and isolated production CLI proof were all rerun against the rebased head.