Repository navigation
fix(windows): honor alpha channel when selecting Companion updates - #1960
roboclaw-bot wants to merge 3 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: needs maintainer review before merge. What this changesThis PR honors the existing alpha-channel opt-in and selects the newest compatible alpha, final, or correction release. Example: Companion 2026.9.5-alpha.93 runs with OPENCLAW_UPDATE_CHANNEL=alpha while alpha.97 is published.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR addresses a confirmed alpha-update defect still present on main. The previous description finding is resolved, and no introduced production correctness defect was found. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherUpdateCoordinator admits eligible unpackaged builds, Updatum retrieves release metadata, and UpdateCheckPipeline selects a compatible release for the existing prompt, download, and installation flow. flowchart TD
A[Companion update check] --> B[UpdateCoordinator admission]
B --> C[Updatum release discovery]
D[Existing alpha opt-in] --> C
D --> E[UpdateCheckPipeline]
C --> E
E --> F[Selected release activation]
F --> G[Prompt download and install]
Technical reviewBest possible solution: Keep channel discovery, numeric ordering, and release activation in their existing owners while preserving stable defaults, compatibility checks, suppression, and lazy backend loading. Do we have a high-confidence way to reproduce the issue? Current-main discovery excludes prereleases and its fallback cannot parse alpha current versions, matching the reporter's concrete installed-release observations; no target code was executed during this review. Is this the best way to solve the issue? The production repair is focused: vendor flags enable discovery, numeric alpha ordering handles suffixes the vendor discards, and activation reuses the existing download owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against e70292487958. Provenance checked
TestingProof path: in-process harness. 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
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 HistoryReview history (1 earlier review cycle)
Reviewed November 8, 2026, 8:06 PM ET / November 9, 2026, 01:06 UTC (Revision 2). |
|
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 |



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. Contributor testing of the current head confirms Windows 11 alpha discovery and the native update-available dialog. Download & Install, alpha installation/activation, and 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
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; 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
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)
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.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)