Repository navigation
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f59501ed55
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Codex review: needs maintainer review before merge. Reviewed July 5, 2026, 7:56 PM ET / 23:56 UTC. Summary PR surface: Source +80, Tests +516, Docs +8. Total +604 across 8 files. Reproducibility: yes. from source for the behavior claim: current main returns before any extended-stable startup check, while the PR routes package installs through the existing resolver and hint path. This is a feature and contract change rather than a broken existing-behavior bug. Review metrics: 1 noteworthy metric.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Maintainer decision needed
Security Review detailsBest possible solution: Land the read-only hint path if maintainers accept default startup checks for stored extended-stable configs; otherwise preserve foreground/status-only behavior or add an explicit opt-in path. Do we have a high-confidence way to reproduce the issue? Yes, from source for the behavior claim: current main returns before any extended-stable startup check, while the PR routes package installs through the existing resolver and hint path. This is a feature and contract change rather than a broken existing-behavior bug. Is this the best way to solve the issue? Unclear until maintainer direction is explicit: the implementation uses the right startup checker and exact resolver layer, but the default stored-channel behavior change is a product and upgrade-contract choice. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 6a62a04f5953. Label changesLabel justifications:
Evidence reviewedPR surface: Source +80, Tests +516, Docs +8. Total +604 across 8 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
Review history (9 earlier review cycles; latest 8 shown)
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
40fa7fb to
18f6fb7
Compare
* docs(update): clarify extended-stable notifications * feat(update): notify extended-stable availability * fix(update): isolate notification state * fix(docs): align update channel table * fix(update): refresh after channel switch * fix(update): satisfy notification checks * test(update): prove loopback notification path * test(update): fix loopback server lifecycle * fix(update): refresh extended stable without cache * fix(update): retain extended stable throttle marker
* docs(update): clarify extended-stable notifications * feat(update): notify extended-stable availability * fix(update): isolate notification state * fix(docs): align update channel table * fix(update): refresh after channel switch * fix(update): satisfy notification checks * test(update): prove loopback notification path * test(update): fix loopback server lifecycle * fix(update): refresh extended stable without cache * fix(update): retain extended stable throttle marker (cherry picked from commit e3c40ef)
What Problem This Solves
Package-installed Gateways with stored
update.channel: "extended-stable"do not currently receive the normal read-only update hint, so operators can remain on an older supported-month package until they manually run status.Why This Change Was Made
This reuses the existing startup checker, exact public npm resolver, persisted deduplication, in-memory availability cache, Gateway event, and 24-hour hint timer. Automatic update eligibility remains closed to stable and beta, and extended-stable cache cleanup is scoped so it cannot erase stable rollout state or project package availability onto Git installs.
User Impact
Stored extended-stable package installs now receive the existing actionable
openclaw updatehint whenupdate.checkOnStartis enabled and a newer exact package is verified. Extended-stable never auto-installs, hands off, restarts, inherits stable delay/jitter, or uses beta polling. Direct npm installs still do not persistupdate.channel.Evidence
auto.enabled=truewithout apply, exact resolver success/failure projection, channel-aware cached availability, Git/Nix guards, initial and 24-hour recurrence, cleanup, stable rollout-state preservation, and stable/beta regressions.git diff --check origin/main...HEAD$specyflow-doc validator.18f6fb7cc8: 67 latest checks pass, 28 are intentionally skipped, and zero are pending or failing.src/infra/update-startup.test.tspassed 41/41 tests,src/infra/update-check.test.tspassed 31/31 tests, andsrc/infra/update-startup.integration.test.tspassed its loopback package-registry test inside a 27-file, 528-test green Vitest batch. The loopback test drives the real exact-selector resolver through startup discovery and asserts the existing hint whileauto.enabled=truenever reaches automatic execution; focused tests separately prove no handoff, restart, stable rollout mutation, beta polling, or lookup when check-on-start is false.18f6fb7cc8: the real CLI persistedextended-stable; installed2099.4.33emitted the exact2099.4.34patch hint and installed2099.4.34emitted the exact2099.5.33minor hint. Both 45-second probes hadauto.enabled=truebut observed no automatic-update child, apply, handoff, or restart; full installed-prefix and config SHA-256 digests were identical before/after, and SQLite auto first-seen/attempt/success fields stayed null. Proof manifest SHA-256:76f932ef6da8e1fdeb7f96f757180c7177815488bcc793501a718dfe377a1dd5.Real behavior proofgate passed on the current head.Manual Testing
openclaw update --channel extended-stableon local package2099.4.33, promote the Verdaccio selector to2099.4.34, and observe the exact patch hint without automatic mutation.openclaw update --channel extended-stableon local package2099.4.34, promote the Verdaccio selector to2099.5.33, and observe the exact minor hint without automatic mutation.update.channel: "extended-stable"and a loopback registry whose verified selector is newer; confirm one existingupdate.availablesignal and actionable hint, with no package/config/service/process mutation.update.checkOnStart: false; confirm no registry request, positive signal, handoff, or restart.update.auto.enabled: true; confirm the read-only hint remains available and no automatic update command runs.