Repository navigation
fix(windows): honor alpha channel when selecting Companion updates - #1960
roboclaw-bot wants to merge 5 commits into
Conversation
Worked on by: - @MertBasar0 Co-authored-by: MertBasar0 <[email protected]> OpenClaw-Publication: ff2b470e-bddd-4974-bb90-bcdbe9ae94a5
|
🦞👀 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: passed. What this changesThis PR honors the existing alpha update channel, selects the newest compatible release numerically, and preserves the approved download target. Example: Companion v2026.11.3 runs with OPENCLAW_UPDATE_CHANNEL=alpha.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR: main still ignores alpha update opt-in, and the change addresses a confirmed user problem without a definite introduced defect. The failing required UI shard remains unattributed. Reviewed head: Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherCompanion's release updater receives the installed version, existing channel environment variable, and official GitHub release metadata, then selects a compatible asset for the coordinator's prompt and installation flow. flowchart LR
A[Installed version and channel] --> B[UpdateCheckPipeline]
C[Official GitHub releases] --> D[UpdatumUpdateBackend]
D --> B
B --> E[OpenClawReleaseVersion ordering]
E --> F[UpdateCoordinator prompt]
F --> G[Approved release download and install]
Technical reviewBest possible solution: Land the existing-owner alpha discovery repair once the required UI shard failure has an established disposition. Do we have a high-confidence way to reproduce the issue? Current-main source establishes the ignored opt-in, and Speculorum9 reproduced it on official v2026.11.1 with a matching Gateway release line. Is this the best way to solve the issue? Configuring the existing backend and extending the existing comparator addresses both discovery and suffix ordering without introducing a competing updater. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 29f0553fbed0. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. Review metrics
Root-cause clusterRelationship: Members:
These related items are listed for context. Any action on an item requires its own checks. LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
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 readiness starts with the lower of the proof and patch scores. It is capped at 3/6 if the fix is partial, the change offers little benefit, a product decision is still open, or the PR reverses an earlier decision without saying why. ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (3 earlier review cycles)Reviewed November 30, 2026, 7:32 PM ET / December 1, 2026, 00:32 UTC (Revision 4). |
|
Reporter here. I can test this on the machine where I reported #1642, which is the scenario the review says is still unverified: a real Inno install on Windows 11 with the alpha channel set. Current state of that machine
What I'd run and report
I can also do the reverse check with the variable removed to confirm stable-only behavior is unchanged. Just say go and name the build, and I'll post results here. |
|
@Speculorum9, please go ahead with the Windows 11 Inno test you outlined. This unsigned x64 Release build comes from PR commit Download the PR test ZIP (sign in to GitHub; available until December 4, 2026). SHA-256 of the downloaded ZIP:
|
Co-authored-by: MertBasar0 <[email protected]>
Worked on by: - @MertBasar0 Co-authored-by: MertBasar0 <[email protected]> OpenClaw-Publication: bd6e9009-99e1-4bfe-a61e-3e66becd6c40
|
@clawsweeper re-review |
|
Thanks again for the build and the detailed steps, @MertBasar0. Before I run it, two things have changed since the Nov 4 offer, and I'd like to test the right thing.
Separately, if a maintainer can produce an upstream-built artifact for the current head, I'd rather test that one. Otherwise I'm happy to go ahead with the fork build, with backups in place first. I'll post my results here once you confirm the build and the expected target. There is no rush on my side. |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Data point for #1642 on current stable Companion (v2026.11.1): the alpha channel setting is still ignored. Short version: with Environment
What I saw (Nov 8)
The first row also shows how the symptom shifts once a newer stable exists: the alpha setting still has no effect, and the app just offers stable. From reading the v2026.11.1 source
One caveatThis build includes "Windows alphas follow the current Gateway release line" (#1593), and my Gateway is on 2026.10.9. I can't rule that filter out as a contributing factor. I plan to repeat the check after moving the Gateway to 2026.11.x and will report back here. Testing this PRStill happy to test the patched build. @MertBasar0, my Nov 7 question about which build to use still stands. |
|
Follow-up: repeated with Gateway 2026.11.2, same result. I moved the Gateway to 2026.11.2 (stable) and pressed Check for updates on Companion 2026.11.1 with This removes the caveat from my earlier comment: with the Gateway on the matching release line, the alpha is still not offered. Together with the source reading above, the alpha setting appears to be ignored on 2026.11.1, which is the behavior this PR addresses (#1642). I'm still happy to test the patched build once there's one to use. |
|
Thanks for the two data points, @Speculorum9. They confirm the stable side of #1642 better than anything I had. Sorry for the slow answer on the build. Since you're now on v2026.11.1, the old ZIP (
Download the PR test ZIP (sign in to GitHub; available until December 9, 2026). SHA-256: Expected result: with the alpha channel on, Check for updates should offer The steps are the same as before:
Reporting the offered tag already covers this fix. Download, installation and what survives the update (Gateway connection, pairing, settings, Installed apps) would be welcome extra evidence, but they're optional. On an upstream-built artifact: CI here only uploads test results for PR heads, not an app package, so this fork build is what's available today. If a maintainer prefers to produce one, I'm happy to wait for it. |
|
Test result: the patched build offers the alpha. Thank you, @MertBasar0. Short version: on Windows 11 with Setup
Result
I did not click Download & Install, so the install step remains untested on this build. NoteThe workflow head SHA on the artifact was Here's a screen snip of the update dialog shown when the patched build launched: |
PR cleanup reviewReviewed head: Thank you for the November 10 result. The patched 0dc2a5d build offering v2026.11.2-alpha.10, with existing device pairing retained, is new Windows 11 evidence beyond the older review. Download & Install remains untested, as you noted. Main still lacks alpha-aware discovery. Before landing, we should record this updated evidence, disposition the disconnected HTTP-fixture tests, and investigate the exact-head UI-host crash rather than treating it as an attributed flake. Action in this cleanup pass: leaving this PR open. No branch changes or runtime-proof waiver. The findings above come from source, discussion and recorded-CI review; Windows validation was not rerun in this pass. |
|
Hi @MertBasar0 and @Speculorum9, this is a Copilot triage agent (not Scott). Thank you both for the careful work on #1642 ( What I did, on a separate branch. I merged current
Validation on that branch (local, Windows ARM64, clean task-owned worktree): Why I stopped here. Three independent read-only reviewers looked at the patched branch over three rounds. My bar for landing is agreement at 95% or higher with no P0/P1. The last round was 92% safe, 90% safe and a 92% hold, and the hold raised a P1 that needs an owner's policy call and not a patch:
Update: thank you @Speculorum9 for running a real Download & Install of an alpha on the PR head Not verified (I will not install builds on a shared machine overnight): feeds with more than 100 releases (one page of 100 is read); unsupported current versions reporting "Current"; an alpha-stamped build without opt-in being offered the same-base stable; and the maintainer-branch patches on a real install. The UI-host crash on the old head. On the exact head Suggested next steps (in any order, no pressure):
I did not change any labels. The PR already carries "status: 👀 ready for maintainer look". |
|
Follow-up from the reporter on #1642: I ran the "real Download & Install of an alpha" test that the triage review listed as the largest remaining unknown. Setup
Steps and results
Log excerpt ( What this does not cover
I'm happy to test a named build or a revised head if one is posted. |
|
@shanselman thank you for the overnight pass and the 1. The P1 (extended-stable Gateway + alpha opt-in): which behavior do you want? What happens now: One clarification: the same shape already exists on The two options we see:
We lean towards B. Because the stable case predates this PR, we would prefer to do B as a small follow-up PR covering both channels, rather than widen #1960. If you would rather have it in this PR, we can do that too. Please tell us A or B, and whether you want it here or as a follow-up. 2. Bringing your patches into this PR If you are fine with it, we will update this PR with
You will stay credited as co-author. We will rerun the required validation on the new head and post the results. @Speculorum9 offered to test a revised head, so the new build can get the same Windows 11 check, including Download & Install. The P2s you listed (the pin not being atomic, the source-text guard, the changelog range) we would handle as follow-ups unless you want any of them in this PR. |
|
This pull request has been automatically marked as stale due to inactivity. |
|
Checking in from the #1642 reporter, since this PR has been marked stale: the fix is still needed and still works for me.
As far as I can tell, the only open item is @MertBasar0's Nov 12 question to @shanselman: A or B for the extended-stable + alpha case, and whether B belongs here or in a follow-up. From a user's side, B sounds right to me, since a security release should never be hidden behind an ordinary one, and doing it as a follow-up keeps this PR small. If the PR is updated with |
Co-authored-by: MertBasar0 <[email protected]>
Worked on by: - @MertBasar0 Co-authored-by: MertBasar0 <[email protected]> OpenClaw-Publication: 784b29d3-e772-4585-b13a-8d7dc82743f1
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Thank you, @Speculorum9, for checking in and for the clear vote on A or B. It kept this PR from going stale. The PR is now updated with current
Option B (a security release is never hidden behind an ordinary one on an extended-stable Gateway) is now tracked separately in #2420, as you suggested. If you still have time to run the same Windows 11 check on the new head, here is a build of it:
What would help most is the same flow as on Nov 11: the update dialog with the alpha offered, Download & Install, and the state after the restart (version and channel, pairing, start-at-sign-in, settings). Thanks again for all the careful testing on this one. |
|
You bet. I retested on the new head Setup
Update
State after the restart
Side notes (not from this PR)
Thanks for carrying this through. |
|
Thank you, @Speculorum9. That is exactly the current-head proof this PR was missing: the build found On the side notes:
Thanks again for testing this twice, carefully and end to end. |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
@shanselman this is ready for another look when you have time. Since your three patches:
|





Closes #1642.
What Problem This Solves
Fixes: Companion misses newer compatible alphas when
OPENCLAW_UPDATE_CHANNEL=alphais set.User Impact
Honor alpha opt-in; preserve stable defaults/fast path. On Windows 11 the reporter confirmed alpha discovery and a completed Download & Install on the current head
bd112864(v2026.11.12-alpha.1), as earlier on0dc2a5da(v2026.11.2-alpha.10), with pairing, settings and start-at-sign-in intact. The declared signed proof pools remain unverified.Why This Change Was Made
Alpha opt-in enables Updatum prereleases and numeric ordering. Select the greatest compatible release; preserve metadata and suppression. No dependency, Store/Dev/Debug or #1676 changes.
Evidence
Current head. The PR now carries @shanselman's three maintainer patches and current main
5e4d1986(tree533cd682, 9 files against main):6f00bef7drops the disconnected Issue1642 HTTP fixture tests.8a823bacreads 100 releases per alpha check and isolates the update tests.803005f6re-pins the approved release before downloading.The publish commit brought these patches in as one commit and its trailer credits only @MertBasar0, so please keep
Co-authored-by: Scott Hanselman <[email protected]>in the squash-merge message.The extended-stable + alpha case (option B: never hide a security release behind an ordinary one) is tracked separately in #2420, so this PR stays small. The evidence below is from the earlier heads.
Unchanged 25 cases: baseline 15 pass/10 fail; patched 25 pass/0 fail/0 skip. Scope: 19 pipeline cases plus six disconnected HTTP fixtures, not E2E.
Baseline, attempt 1 · Windows, attempt 1 · Docs, attempt 1.
Validation: GitHub Actions, Windows Server 2025, .NET 10.0.402. Retained TRX and candidate hashes verified; no publication rerun. Credit: @MertBasar0, @shanselman (maintainer patches); reporter: @Speculorum9.
Change Type
Scope
winnodeRequired proof pools
windows-clean-installer-upgrade: installed-alpha update acceptance remains outstanding.windows-winui-interactive: native update-check behavior on Windows 11 remains outstanding.Not executed.
Validation
Current head (tree
533cd682), local Windows 11 Home 26200 x64:./build.ps1passed. Tray 7,108 passed/1 failed. Shared 6,165 passed/13 failed/30 skipped. All 14 failures are host-only and fail the same way on plain main on this machine: a missing VCRUNTIME140 for the file-worker manifest test, 12 reparse-point privilege tests and one machine-name casing test. The counts below are from the earlier head.Build passed. Shared: 4,807 passed/0 failed/25 skipped. Tray: 4,788 passed/0 failed/0 skipped, including 25 issue cases and 23 siblings. All 25 Shared skips remain unwaived; details are in archived TRX. Docs passed (68 files and proof-pool checks). Independent P0-P3 static review: no actionable findings.
Executed commands:
$results: per-suite evidence directory. Restore avoids fresh-tree no-op; counts use individual TRX outcomes.Real Behavior Proof
Windows 11 contributor result (current head
bd112864)OPENCLAW_UPDATE_CHANNEL=alpha, Gateway in WSL2). Build: the unsigned fork buildOpenClawTray-PR1960-bd112864-2026.11.3-win-x64.zip(SHA-256250b917800e19d6b74b997741c50509fe8b05eb1aee147a26f63679e0dc7c662, build run), overlaid on the official v2026.11.3 stable ZIP.v2026.11.12-alpha.1, the newest alpha at the time. Download & Install completed, Companion restarted on2026.11.12-alpha.1+29f0553fon the alpha channel, the Gateway reconnected and paired, and a second check found no update. Screenshots are in the linked comment.GetChangelog(true)), so it started with thev2026.11.4-alpha.2notes. Stable fetches only the latest release and is unaffected. This is left out of this PR so the retest stays valid for this head.ReactorChatLayoutProofTests.CodeCopyAutomationIds_AreDistinctAndStableAcrossFeedbackAndContentUpdates. This PR changes no chat or UI code, main passes that shard (including the base5e4d1986), and on November 30 another PR failed a different test in the same class, so this looks like a flake; a rerun was requested.Windows 11 contributor result (earlier head
0dc2a5da)0dc2a5da2a09135b6ce74c2d0b83793899f8f402. Fork build/job; ZIP artifact 13679942019, SHA-256ec5742fc4e534a006d82094fb3f7c3b74737a67dc1cbc66d8a765e9d548026b0. The upload log records this digest, and the contributor reports verifying it. Workflow commit60438ce4is orchestration only; the checked-out product source is0dc2a5da.2026.11.1+pr1960.0dc2a5da, Gateway 2026.11.2,OPENCLAW_UPDATE_CHANNEL=alpha. The contributor backed up the installation/settings/registry, then launched the overlaid build; this was not an installer upgrade.Update available: v2026.11.2-alpha.10and the native update-available dialog showedCurrent version: 2026.11.1. Unpatched v2026.11.1 under the same conditions said "You're up to date" (baseline, matching-Gateway repeat). Gateway reconnected with the stored device token without re-pairing. The Installed apps entry stayed unchanged; registration reconciliation belongs to Inno "Installed apps" registration stays at the original version after in-app updates — the stale-metadata sequence behind #1592 #1676 / fix: Installed apps shows an old version after in-app updates #1959.v2026.11.2-alpha.10without downloading. This is discovery/dialog evidence, not successful download, alpha installation/activation, post-upgrade state, or completion of either declared signed proof pool.0dc2a5da, the contributor clicked Download & Install. The install completed in about 40 seconds and Companion restarted onv2026.11.2-alpha.10on the alpha channel. A second check found no update. The tray reconnected with the same paired device, and the start-at-sign-in entry, the channel variable and the settings file were unchanged. Installed apps still lists the older version; that is Inno "Installed apps" registration stays at the original version after in-app updates — the stale-metadata sequence behind #1592 #1676 / fix: Installed apps shows an old version after in-app updates #1959.6f00bef7.Earlier pipeline evidence
ef1df54dfe95a8b0a2ae8033425561136d8a70efplus nine-file patch SHA-256b7af368732969278f35ae670c089968e8940f601b6c69433b6ac6f1b1d384186. All nine hashes match. Run heads are orchestration, not PR commits.PATCHED_PIPELINE_TESTS_PASSED: ten fail-to-pass, 15 pass-to-pass. HTTP fixtures do not feed Updatum or download assets.a4dd026cc5f85a444a0fcd05eef5b86282dbda8c: touched code unchanged, docs insertion non-overlapping.Security Impact
Yes, explain the risk and mitigation: explicit opt-in, stable defaults and candidate eligibility checks; production transport unverified.Compatibility and Migration
OPENCLAW_UPDATE_CHANNEL=alpha.Review Conversations
Worked on by
Upgrade compatibility
This change reads and writes no stored data, so nothing saved by an earlier release has to load differently.
OpenClawReleaseVersiongains an optionalAlphacomponent. The type exists only in memory: its sole caller isUpdateCheckPipeline, which parses the current version and release tags on every check. Nothing serializes or persists it.OPENCLAW_UPDATE_CHANNELenvironment variable, read on every check. There is no new setting and no migration.UpdatumUpdateBackendsets Updatum'sAllowPreReleasesandFetchOnlyLatestReleaseper check on the in-memory updater. Updatum keeps no channel state between runs.settings.json, the gateway registry and the installer are untouched.Behavior for existing installs:
OPENCLAW_UPDATE_CHANNEL=alpha(#1642)