Skip to content

fix(update): prevent stable upgrade notices on extended-stable - #118518

Merged
RomneyDa merged 9 commits into
mainfrom
fix/extended-stable-update-notices
Aug 9, 2026
Merged

RomneyDa merged 9 commits into
mainfrom
fix/extended-stable-update-notices

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Aug 3, 2026

Copy link
Copy Markdown
Member

Related: #99808

What Problem This Solves

Fixes an issue where users running an extended-stable package release could see Control UI and other Gateway update prompts for a newer stable release. The macOS desktop app could likewise offer a stable app release to an extended-stable Gateway.

Why This Change Was Made

The Gateway now derives the registry update channel from a verified installed extended-stable version when no channel was persisted. The macOS Sparkle delegate filters default-channel appcast entries for an extended-stable Gateway, and release appcasts label eligible extended-stable builds.

User Impact

Extended-stable users remain on the extended-stable release train: they receive an update hint only when a newer extended-stable release exists, and stay quiet when only stable releases are newer.

Evidence

  • node scripts/run-vitest.mjs src/infra/update-channels.test.ts src/infra/update-startup.test.ts test/scripts/make-appcast.test.ts — 110 passing tests
  • pnpm tsgo, bash -n scripts/make_appcast.sh, swiftc -parse apps/macos/Sources/OpenClaw/MenuBar.swift, and git diff --check — passed
  • swift test --filter UpdateOrchestrationTests is blocked on this host by missing Command Line Tools SwiftUI macro plug-ins in the KeyboardShortcuts dependency; the edited source parses successfully.
  • .agents/skills/autoreview/scripts/autoreview --mode local — clean, no accepted/actionable findings

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: macos App: macos scripts Repository scripts size: S maintainer Maintainer-authored PR labels Aug 3, 2026
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. labels Aug 3, 2026
@clawsweeper

clawsweeper Bot commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 9, 2026, 3:43 AM ET / 07:43 UTC.

ClawSweeper review

What this changes

The PR makes configless final extended-stable package installs use the extended-stable release train for update checks, Gateway notices, CLI flows, appcasts, and macOS Sparkle.

Regression provenance

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 1 item remains

Keep open: current main still treats a configless package install as stable, while this PR carries the documented final-.33+ extended-stable contract through Gateway, CLI, and macOS updates. The prior Sparkle-startup blocker is fixed; this maintainer PR now needs normal exact-head validation and merge review.

Priority: P1
Reviewed head: 344cc44896c2436b2572a9c109aa86bbbbda0bfd

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch coherently addresses the shared update-channel boundary and resolves the prior startup blocker.
Proof confidence 🌊 off-meta tidepool Not applicable: This MEMBER-authored PR is outside the external-contributor proof gate; its focused tests and parse checks remain supplemental validation.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This MEMBER-authored PR is outside the external-contributor proof gate; its focused tests and parse checks remain supplemental validation.
Evidence reviewed 4 items Current main still lacks the fix: Current main defaults configless package installs to stable; the PR adds package-only final-.33+ extended-stable inference.
Release contract supports the inference: Release policy requires final patch 33 and later to publish on extended-stable, so the version rule is a release contract rather than a heuristic.
Prior Sparkle fallback blocker is resolved: After an omitted or failed effective-channel lookup, the updater always starts with the legacy stable behavior; focused Swift tests cover both outcomes.
Findings None None.
Security None None.

How this fits together

OpenClaw derives an effective update channel from configuration, installation type, and release version, then uses it for registry checks and Gateway update status. The macOS app consumes that status to restrict Sparkle appcasts to the Gateway’s release train.

flowchart LR
A[Package version and config] --> B[Effective update channel]
B --> C[Registry update check]
B --> D[Gateway update status]
D --> E[CLI and Control UI notices]
D --> F[macOS updater]
F --> G[Eligible appcast releases]
Loading

Before merge

  • Resolve merge risk (P1) - Configless final-.33+ package installs change from stable notices to extended-stable notices; that is required by the release contract, but should retain fresh-install and upgrade coverage before merge.
Agent review details

Security

None.

PR surface

Source +172, Tests +273, Docs +3, Other +119. Total +567 across 25 files.

View PR surface stats
Area Files Added Removed Net
Source 9 211 39 +172
Tests 9 372 99 +273
Docs 3 8 5 +3
Config 0 0 0 0
Generated 0 0 0 0
Other 4 124 5 +119
Total 25 715 148 +567

Review metrics

Metric Value Why it matters
Production versus test delta production +305/-48, tests +410/-100 The production growth is justified by carrying one channel fact through Gateway, CLI, protocol, and macOS boundaries; the test growth covers those boundaries.
Gateway response surface 1 optional field added The additive effectiveChannel field is the compatibility-sensitive bridge from Gateway install detection to the macOS updater.

Stored data model

Persistent data-model change detected: serialized state: src/infra/update-check.test.ts. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster

Relationship: canonical
Canonical: #118518
Summary: This PR is the active, distinct repair for a configless-update gap adjacent to the original extended-stable feature.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Land the documented release-train behavior (recommended)
    Accept the intentional compatibility change once exact-head checks confirm direct extended-stable installs stay on their release train.

Technical review

Best possible solution:

Keep one install-aware effective-channel decision, expose it additively through Gateway status, and preserve the stable macOS fallback when that fact is unavailable.

Do we have a high-confidence way to reproduce the issue?

Yes, from current source: a final patch-33-or-later package install with no update.channel resolves to stable on main despite the release policy requiring extended-stable.

Is this the best way to solve the issue?

Yes: resolving the channel once from the verified install kind and documented release version is cleaner than separate Gateway, CLI, and macOS heuristics.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 484765582656.

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This MEMBER-authored PR is outside the external-contributor proof gate; its focused tests and parse checks remain supplemental validation.
  • remove rating: 🦪 silver shellfish: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove merge-risk: 🚨 availability: Current PR review merge-risk labels are merge-risk: 🚨 compatibility.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P1: A default direct extended-stable install can receive update prompts for the wrong release train across Gateway and macOS surfaces.
  • merge-risk: 🚨 compatibility: The PR intentionally changes update-channel selection for existing configless final-.33+ package installs.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This MEMBER-authored PR is outside the external-contributor proof gate; its focused tests and parse checks remain supplemental validation.

Evidence

What I checked:

Likely related people:

  • kevinslin: Authored the merged extended-stable update feature that established the affected channel behavior. (role: introduced the extended-stable update contract; confidence: high; commits: d2146223205e; files: src/infra/update-channels.ts, src/gateway/server-methods/update.ts)
  • steipete: Recent current-main history covers both the macOS updater and Gateway update paths affected here. (role: recent macOS and update-area contributor; confidence: high; commits: 890f20be06cf, 6246f67784e6; files: apps/macos/Sources/OpenClaw/MenuBar.swift, src/gateway/server-methods/update.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Complete exact-head macOS and Gateway validation before merge.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (8 earlier review cycles)
  • reviewed 2026-08-03T06:24:40.458Z sha c3532af :: needs maintainer review before merge. :: none
  • reviewed 2026-08-03T23:23:14.431Z sha c3532af :: found issues before merge. :: [P1] Require package-install evidence before inferring extended-stable | [P1] Derive the macOS policy for unpersisted extended-stable installs
  • reviewed 2026-08-06T10:29:44.850Z sha c3532af :: found issues before merge. :: [P1] Require verified package evidence before inferring extended-stable | [P1] Provide macOS the effective unpersisted channel | [P2] Pass the installed version into the interactive keep-current flow
  • reviewed 2026-08-06T11:41:38.010Z sha c3532af :: found issues before merge. :: [P1] Gate inference on a verified package install | [P1] Provide macOS the effective unpersisted channel | [P2] Pass the installed version through Keep current
  • reviewed 2026-08-07T06:33:41.995Z sha 307b7bd :: found issues before merge. :: [P1] Keep status registry queries on extended-stable | [P1] Recover when effective-channel resolution fails | [P2] Honor disabled startup hints after inferred resolution
  • reviewed 2026-08-07T07:36:55.525Z sha a9c2adc :: found issues before merge. :: [P1] Keep both status registry queries on extended-stable | [P1] Recover updater startup when channel resolution fails
  • reviewed 2026-08-07T07:46:15.658Z sha a9c2adc :: found issues before merge. :: [P1] Resolve the registry tag after install detection | [P1] Preserve Sparkle startup when channel lookup fails | [P2] Honor disabled startup hints after inferred resolution
  • reviewed 2026-08-08T07:45:45.679Z sha 989564a :: needs changes before merge. :: [P1] Restore Sparkle startup when channel resolution is unavailable

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Aug 4, 2026
@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime cli CLI command changes size: M and removed size: S labels Aug 7, 2026
@RomneyDa

RomneyDa commented Aug 7, 2026

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 7, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@openclaw-barnacle openclaw-barnacle Bot added commands Command implementations size: L and removed size: M labels Aug 8, 2026
@clawsweeper clawsweeper Bot added the merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. label Aug 8, 2026
@RomneyDa
RomneyDa force-pushed the fix/extended-stable-update-notices branch from 1ad85d0 to d4e49a4 Compare August 9, 2026 06:51
@openclaw-barnacle openclaw-barnacle Bot added the app: web-ui App: web-ui label Aug 9, 2026
@RomneyDa

RomneyDa commented Aug 9, 2026

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 9, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. labels Aug 9, 2026
@RomneyDa
RomneyDa merged commit dcdbd7a into main Aug 9, 2026
130 checks passed
@RomneyDa
RomneyDa deleted the fix/extended-stable-update-notices branch August 9, 2026 08:01
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 10, 2026
…law#118518)

* fix(update): keep extended-stable update notices on channel

* fix(update): repair extended-stable CI checks

* fix(update): retain verified extended-stable channel

* fix(update): normalize gateway install surface

* test(update): split effective channel coverage

* fix(update): resolve verified extended-stable status paths

* fix(update): preserve Sparkle fallback on missing channel

* fix(update): restore effective channel after rebase

* fix(update): repair rebased CI coverage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: macos App: macos app: web-ui App: web-ui cli CLI command changes commands Command implementations docs Improvements or additions to documentation gateway Gateway runtime maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: L status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant