Skip to content

fix(windows): honor alpha channel when selecting Companion updates - #1960

Open
roboclaw-bot wants to merge 3 commits into
mainfrom
openclaw/windows-1642-draft
Open

roboclaw-bot wants to merge 3 commits into
mainfrom
openclaw/windows-1642-draft

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Closes #1642.

What Problem This Solves

Fixes: Companion misses newer compatible alphas when OPENCLAW_UPDATE_CHANNEL=alpha is 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

  • Bug fix
  • Feature
  • Refactor
  • Docs or instructions
  • Tests or validation
  • Security hardening
  • Chore or infrastructure

Scope

  • Tray or WinUI UX
  • Windows node capability
  • Local MCP or winnode
  • Gateway, connection, or pairing
  • Setup or onboarding
  • Permissions, privacy, or security
  • Tests, CI, or docs

Required 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:

powershell.exe -NoProfile -File ./build.ps1
dotnet test ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj --logger "trx;LogFileName=Shared.trx" --results-directory $results
dotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj --logger "trx;LogFileName=Tray.trx" --results-directory $results
./scripts/validate-docs.ps1

$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)

  • Source and provenance: Speculorum9's November 10 report tests product head 0dc2a5da2a09135b6ce74c2d0b83793899f8f402. Fork build/job; ZIP artifact 13679942019, SHA-256 ec5742fc4e534a006d82094fb3f7c3b74737a67dc1cbc66d8a765e9d548026b0. The upload log records this digest, and the contributor reports verifying it. Workflow commit 60438ce4 is orchestration only; the checked-out product source is 0dc2a5da.
  • Environment and action: Windows 11 Home build 26300, existing Inno install, Companion v2026.11.1 overlaid with the unsigned PR build reporting 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.
  • Observed result: startup logged Update available: v2026.11.2-alpha.10 and the native update-available dialog showed Current 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.
  • Scope: the contributor did not click Download & Install. The same fork CI job checked the extracted package with the alpha channel against live releases and selected v2026.11.2-alpha.10 without downloading. This is discovery/dialog evidence, not successful download, alpha installation/activation, post-upgrade state, or completion of either declared signed proof pool.
  • Still open from the cleanup review:
    • Disposition the six disconnected HTTP-fixture tests; they remain disconnected and are not end-to-end proof.
    • Investigate the exact-head UI-host crash; it is not resolved or established as an attributed flake.

Earlier pipeline evidence

  • Environment tested: isolated hosted Windows Server 2025, SDK 10.0.402.
  • PR head or commit tested: base ef1df54dfe95a8b0a2ae8033425561136d8a70ef plus nine-file patch SHA-256 b7af368732969278f35ae670c089968e8940f601b6c69433b6ac6f1b1d384186. All nine hashes match. Run heads are orchestration, not PR commits.
  • Exact steps or command run: apply verified patch, run commands above, verify source preservation. Docs ran separately.
  • Evidence after fix: build/test artifact.
  • Observed result: PATCHED_PIPELINE_TESTS_PASSED: ten fail-to-pass, 15 pass-to-pass. HTTP fixtures do not feed Updatum or download assets.
  • Screenshot or artifact links verified? Yes: artifact digests/content and unexpired metadata. Seven-day retention; sign-in may be needed. No screenshots.
  • Not verified or blocked: Download & Install, completed asset download, alpha installation/activation and post-upgrade state, the declared signed proof pools, and broader newer-main integration validation. The current-head Windows 11 discovery/dialog observation above does not complete those pools. Separate rubber-duck review not attested. Main a4dd026cc5f85a444a0fcd05eef5b86282dbda8c: touched code unchanged, docs insertion non-overlapping.

Security Impact

  • New permissions or capabilities? No.
  • Secrets or tokens handling changed? No.
  • New or changed network calls? Yes: alpha uses public release-list discovery.
  • Command or tool execution surface changed? No.
  • Data access scope changed? Yes: public release metadata only.
  • If any answer is Yes, explain the risk and mitigation: explicit opt-in, stable defaults and candidate eligibility checks; production transport unverified.

Compatibility and Migration

  • Backward compatible? Yes for the selector contract; runtime acceptance unverified.
  • Config or environment changes? Yes: honor existing OPENCLAW_UPDATE_CHANNEL=alpha.
  • Migration needed? No.
  • If yes, list the exact upgrade steps: None. Installed alpha alone does not opt in.

Review Conversations

  • I replied to or resolved every bot review conversation addressed by this PR.
  • I left unresolved only conversations that still need maintainer judgment.

Worked on by

Upgrade compatibility

This change reads and writes no stored data, so nothing saved by an earlier release has to load differently.

  • OpenClawReleaseVersion gains an optional Alpha component. The type exists only in memory: its sole caller is UpdateCheckPipeline, which parses the current version and release tags on every check. Nothing serializes or persists it.
  • The channel comes from the existing OPENCLAW_UPDATE_CHANNEL environment variable, read on every check. There is no new setting and no migration.
  • UpdatumUpdateBackend sets Updatum's AllowPreReleases and FetchOnlyLatestRelease per 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:

Install Before After
Stable build, no channel set Updatum's own pick, else the newest stable release with a compatible asset Same. The fallback now takes the highest stable version in the feed instead of the first match, and still skips prereleases and alpha tags.
Alpha build, channel unset Only Updatum's own pick. The fallback could not parse an alpha current version, so it found nothing. Same Updatum pick first. The fallback now also offers a newer stable release, because a final release orders after all alphas of the same base.
Alpha build, OPENCLAW_UPDATE_CHANNEL=alpha (#1642) Prereleases skipped, no update offered The newest alpha or stable release with a compatible asset is selected and activated for download and install

Worked on by:
- @MertBasar0

Co-authored-by: MertBasar0 <[email protected]>
OpenClaw-Publication: ff2b470e-bddd-4974-bb90-bcdbe9ae94a5
@clawsweeper

clawsweeper Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal priority bug or improvement with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 31, 2026
@clawsweeper

clawsweeper Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Codex review: needs maintainer review before merge.

What this changes

This 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.

  • Before: Check for updates reports no update.
  • After: The selector recognizes alpha.97 as newer and activates it in the existing updater.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A useful, focused production repair with live backend-discovery evidence, limited by outstanding native acceptance, low-value tests, and an unattributed failed UI check.
Proof confidence 🦐 gold shrimp (3/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Users explicitly following alpha releases are told Companion is current while newer compatible alphas exist.
Reason: Honoring the existing opt-in repairs documented behavior without adding a setting; the supplied maintainer-authored direction needs no further product approval.

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
Reviewed head: 0dc2a5da2a09135b6ce74c2d0b83793899f8f402

Before merge

None.

Findings

None.

Tests

  • Low-value test tests/OpenClaw.Tray.Tests/Issue1642TransportTests.cs: Remove the six disconnected cases and their issue1642-feed.json fixture: they assert responses and rejection rules implemented by their own fake handler and cannot detect regressions in Companion or Updatum.
  • Low-value test tests/OpenClaw.Tray.Tests/Issue1642SelectionTests.cs: Stable_BackendSuccessRetainsFastPath duplicates the existing CheckAsync_WhenOrdinaryCheckFindsUpdate_DoesNotInspectFallbacks regression; retain one canonical case.
  • Missing end-to-end proof: The reported fail-to-pass selector results and later live-backend harness do not cover the declared Windows 11 native update-check and installed-upgrade scenarios, including existing profile preservation.
Agent review details

How this fits together

UpdateCoordinator 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]
Loading

Technical review

Best 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

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Scott Hanselman: Raw commit b5115e0 adds src/OpenClaw.Tray.WinUI/Services/UpdatumUpdateBackend.cs:12 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: b5115e0e69af; files: src/OpenClaw.Tray.WinUI/Services/UpdatumUpdateBackend.cs)
  • AlexAlves87: Raw commit d5543b9 adds src/OpenClaw.Tray.WinUI/Services/UpdateCoordinator.cs:22 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: d5543b904507; files: src/OpenClaw.Tray.WinUI/Services/UpdateCoordinator.cs)

Preflight source

Source 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

Metric Value Why it matters
Introduced scope Production +82/-14; tests and fixtures +912; documentation +8 Production growth stays within existing owners; 210 test and fixture lines exercise a disconnected fake HTTP handler.

Labels

Label changes:

  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • remove rating: 🧂 unranked krab: Current PR rating is rating: 🦐 gold shrimp, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: Restores update discovery for explicitly opted-in alpha users without changing ordinary stable-channel admission.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (1 earlier review cycle)
  • reviewed 2026-10-31T23:50:00.923Z sha 4265c3a :: blocked before merge. :: [P3] Remove AI workflow attribution from the public description

Reviewed November 8, 2026, 8:06 PM ET / November 9, 2026, 01:06 UTC (Revision 2).

@roboclaw-bot
roboclaw-bot marked this pull request as ready for review November 1, 2026 00:38
@Speculorum9

Copy link
Copy Markdown

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

  1. Baseline on alpha.34: Check for updates result (expected: no update).
  2. Replace the app files with a build of this PR (a CI artifact from the PR branch is fine; tell me which one you want used, or whether you'd rather wait for a signed build).
  3. Check for updates again: which release it selects, whether the download completes, and whether the install goes through and Companion comes back on the new version.
  4. After the update: gateway connection, pairing and settings intact (the "existing data still works" item), and what Installed apps shows afterward (useful as the before picture for fix: Installed apps shows an old version after in-app updates #1959).
  5. Redacted tray log excerpts for each step.

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.

Copy link
Copy Markdown
Contributor

@Speculorum9, please go ahead with the Windows 11 Inno test you outlined. This unsigned x64 Release build comes from PR commit 4265c3ab5ed2f0daceb019741a1f707d74d1105e. It reports 2026.10.5-alpha.34 to match your baseline. On Windows, the updater in the extracted package selected the published v2026.10.8-alpha.20 x64 update with the alpha channel enabled. Build and verification

Download the PR test ZIP (sign in to GitHub; available until December 4, 2026). SHA-256 of the downloaded ZIP:

aa7df7fa302f3d3547ff1129d32be7abb7692c8ed7330af97de4039b7701dcbb
  1. Record what Check for updates shows on your original install, then fully quit Companion.
  2. Extract the verified ZIP to a temporary folder. Copy its contents over the app files in your existing Inno install directory, preserving the Inno uninstaller and all other files outside the ZIP. Relaunch from your usual shortcut with OPENCLAW_UPDATE_CHANNEL=alpha. If Windows policy blocks the unsigned build, please stop there and let us know.
  3. Please report which tag was offered, whether download and installation completed, and which version opened afterward. Include whether Gateway connectivity, pairing and settings survived, what Installed apps shows, and any relevant redacted tray log lines.

roboclaw-bot and others added 2 commits November 6, 2026 19:15
Co-authored-by: MertBasar0 <[email protected]>
Worked on by:
- @MertBasar0

Co-authored-by: MertBasar0 <[email protected]>
OpenClaw-Publication: bd6e9009-99e1-4bfe-a61e-3e66becd6c40
@MertBasar0

Copy link
Copy Markdown
Contributor

@clawsweeper re-review

@Speculorum9

Copy link
Copy Markdown

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.

  1. The PR head moved. It went from 4265c3ab to 0dc2a5da (a merge of main plus the draft publish). Is the test ZIP (SHA-256 aa7df7fa…dcbb, built from 4265c3ab) still the one you'd like me to use, or will you rebuild from the current head?
  2. A newer alpha is out. v2026.11.1-alpha.8 was published on Nov 6. It is a newer series than v2026.10.8-alpha.20, which your run selected. With the alpha channel on, I now expect the patched build to offer alpha.8. Is that the expected target? My gateway is on 2026.10.9, so I'd like to know whether Companion 2026.11.1 is expected to work with it before I jump a series.

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.

@roboclaw-bot

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 9, 2026
@clawsweeper clawsweeper Bot added the status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. label Nov 9, 2026
@Speculorum9

Copy link
Copy Markdown

Data point for #1642 on current stable Companion (v2026.11.1): the alpha channel setting is still ignored.

Short version: with OPENCLAW_UPDATE_CHANNEL=alpha set the whole time, Companion v2026.11.1 reported "No updates available" while v2026.11.2-alpha.10 was already published. This supports the need for this PR.

Environment

  • Windows 11 Home (build 26300), Inno install, Gateway 2026.10.9
  • OPENCLAW_UPDATE_CHANNEL=alpha as a user environment variable; About shows "Update channel: alpha" before and after

What I saw (Nov 8)

Step Result
Check for updates on 2026.10.5-alpha.34 Offered the stable v2026.11.1. Before it was published, the same check reported no update, as in the original report.
In-app update to v2026.11.1 Completed. The app restarted on 2026.11.1+04f413d2 and reconnected normally.
Startup update check on v2026.11.1 "No updates available", about 85 minutes after v2026.11.2-alpha.10 was published (22:45 UTC).

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

UpdateCheckPipeline, UpdateCoordinator, UpdatumUpdateBackend and UpdateBackendLoader contain no reference to the alpha channel. OPENCLAW_UPDATE_CHANNEL is read only by AboutPage.xaml.cs (display) and a dev script.

One caveat

This 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 PR

Still happy to test the patched build. @MertBasar0, my Nov 7 question about which build to use still stands.

@Speculorum9

Copy link
Copy Markdown

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 OPENCLAW_UPDATE_CHANNEL=alpha still set. It reported "You're up to date. You're running the latest version (v2026.11.1)", while v2026.11.2-alpha.10 is published.

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.

@MertBasar0

Copy link
Copy Markdown
Contributor

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 (2026.10.5-alpha.34 from 4265c3ab) would be a downgrade, so please don't use it. Here is a new build instead:

  • Source: current PR head 0dc2a5da. That is exactly the v2026.11.1 source (04f413d2) plus this PR's changes, and nothing else.
  • Version: it reports 2026.11.1, so it replaces your installed app files without changing the version.
  • Verified in CI: the extracted package was loaded with OPENCLAW_UPDATE_CHANNEL=alpha and checked against the live releases. It selected v2026.11.2-alpha.10. That check didn't download or install anything. Build and verification

Download the PR test ZIP (sign in to GitHub; available until December 9, 2026). SHA-256:

ec5742fc4e534a006d82094fb3f7c3b74737a67dc1cbc66d8a765e9d548026b0

Expected result: with the alpha channel on, Check for updates should offer v2026.11.2-alpha.10, or a newer alpha if one is published by then. On unpatched v2026.11.1 you saw "You're up to date", so that is the before/after.

The steps are the same as before:

  1. Back up your profile.
  2. Fully quit Companion.
  3. Copy the ZIP's contents over the app files in your Inno install directory, keeping the uninstaller and everything else outside the ZIP.
  4. Relaunch from your usual shortcut.

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.

@Speculorum9

Speculorum9 commented Nov 10, 2026 •

Copy link
Copy Markdown

Test result: the patched build offers the alpha. Thank you, @MertBasar0.

Short version: on Windows 11 with OPENCLAW_UPDATE_CHANNEL=alpha set, the patched build (2026.11.1+pr1960.0dc2a5da) offered v2026.11.2-alpha.10. The unpatched v2026.11.1 had said "You're up to date" under the same conditions.

Setup

  • Windows 11 Home (build 26300), Inno install, Companion v2026.11.1 → patched build, Gateway 2026.11.2
  • Verified the downloaded artifact: SHA-256 ec5742fc…26b0, matching your comment and GitHub's digest
  • Backed up the install folder, settings and registry first, then quit Companion and copied the ZIP over the app files (the uninstaller and wsl\ were untouched)
  • Build is unsigned. Windows did not block it, and it launched normally

Result

Step Result
Launch patched build Startup check logged Update available: v2026.11.2-alpha.10, and the update dialog showed "Current version: 2026.11.1"
Gateway connection Connected with the stored device token. No re-pairing. Handshake hello-ok, scopes operator.admin, operator.pairing. Node role connected
Installed apps entry Unchanged (2026.9.5-alpha.93), as in #1676

I did not click Download & Install, so the install step remains untested on this build.

Note

The workflow head SHA on the artifact was 60438ce4, but the exe's own version string reports 0dc2a5da, as described in your comment.

Here's a screen snip of the update dialog shown when the patched build launched:
image

@roboclaw-bot

Copy link
Copy Markdown
Contributor Author

PR cleanup review

Reviewed head: 0dc2a5da2a09135b6ce74c2d0b83793899f8f402. Main comparison: e59374c064f43d68f5c72d070d4c89ef2d20ec3b.

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.

@shanselman

shanselman commented Nov 11, 2026 •

Copy link
Copy Markdown
Collaborator

Hi @MertBasar0 and @Speculorum9, this is a Copilot triage agent (not Scott). Thank you both for the careful work on #1642 (OPENCLAW_UPDATE_CHANNEL=alpha is shown in Settings but ignored by the updater). The Windows 11 result where the patched build offered v2026.11.2-alpha.10 is exactly the evidence this fix needed, and the selection logic and its tests read well. I spent some time on this overnight and want to leave a clear record. I did not push to this branch and I did not merge, so nothing here changes the PR.

What I did, on a separate branch. I merged current main into the PR head and added three small changes on top. They are on Scott's fork as land-1960-maintainer-patches (7 commits ahead of main, 0 behind; 9 files, +874/-17). Anyone is welcome to cherry-pick from it.

  1. 6f00bef7 drops the six Issue1642TransportTests and their feed fixture, which the earlier cleanup review noted were disconnected from the production updater code (they exercised a local HTTP fixture, not UpdatumUpdateBackend).
  2. 8a823bac reads 100 releases per alpha check. Updatum's default page size is 30, so on a busy feed a newer alpha could fall off the first page. Against the real public feed, a page size of 30 returned 30 releases and 100 returned all 48 public ones (13 alphas), about 98 KB instead of 66 KB. It also makes the update tests ignore an inherited OPENCLAW_UPDATE_CHANNEL (two tests failed on a machine that had it set) and documents the behavior in docs/ARCHITECTURE.md.
  3. 803005f6 re-pins the approved release right before the download starts. The update flow releases its check gate before showing the dialog, so a second check while the dialog is open can change which release Updatum would download (DownloadUpdateAsync() uses release ??= LatestRelease). That race is older than this PR, but alpha mode makes the "latest" release more likely to move. Four deliberate mutations of the new guard were each caught by the tests.

Validation on that branch (local, Windows ARM64, clean task-owned worktree): ./build.ps1 exit 0; Tray tests 6312 passed / 0 failed, and the same with OPENCLAW_UPDATE_CHANNEL=alpha set in the environment; Shared tests 5761 passed / 0 failed / 27 skipped; validate-docs.ps1 and git diff --check clean; the real Companion profile was unchanged by the runs. The pin lives in the Release (#else) branch of UpdateCoordinator.cs, which Debug builds and the Tray test project do not compile, so I also compiled it: dotnet build src\OpenClaw.Tray.WinUI\OpenClaw.Tray.WinUI.csproj -c Release -r win-arm64 -p:DevBuild=false -p:RequireSignedCleanupHost=false gave 0 warnings and 0 errors.

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:

  • P1 (needs a decision): on a Gateway on the extended-stable channel, with alpha opt-in on, the greatest candidate can be a newer ordinary alpha. CompanionUpdateSuppressionPolicy then suppresses it (ordinary release plus extended-stable), so an older security-marked stable that is still newer than the installed version is never offered (selection in UpdateCheckPipeline.cs, suppression at UpdateCoordinator.cs:160-177). This comes from the PR as filed, not from my patches, and it is only reachable with an explicit OPENCLAW_UPDATE_CHANNEL=alpha on an extended-stable Gateway. The pipeline does not know the Gateway channel, so the fix is a design choice: should alpha opt-in bypass the extended-stable suppression, or should a security stable be offered when the winner is deferred?
  • P2s: the pin is hardened but not atomic (a very small window remains between Activate() and Updatum's first read; passing the approved release into the vendor download call would close it); the source-text guard test would still pass on a commented-out pin; the changelog can include notes from releases the pipeline rejected when the backend's pick matches; the tests use fake candidates, so the real UpdatumUpdateBackend-to-feed wiring has no concrete regression test; and in alpha mode a prerelease-flagged release with a stable CalVer tag passes the filter (the real feed has none today).

Update: thank you @Speculorum9 for running a real Download & Install of an alpha on the PR head 0dc2a5da (your comment below, posted after this one). It offered v2026.11.2-alpha.10, installed in about 40 seconds, restarted on the alpha channel, reported no further updates, and kept the existing Gateway pairing. That closes the largest unknown I had listed here, for the PR head as filed. It did not use the maintainer branch or an extended-stable Gateway, so the P1 policy question above is still open.

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 0dc2a5da the only red job was the UI job from Nov 6: the test host process crashed in ReactorChatLayoutProofTests after 231 tests had passed (the log itself says that test "may, or may not be the source of the crash"). This PR does not touch chat UI, and that test class is the most frequent failure in my count of recent CI runs on other PRs and on main, so I believe it is the repo-wide flake pool and not this change. I cannot tell more from the log alone. main also gained #2019 (fix: CI fails intermittently on loaded runners, and oversized A2UI SVGs freeze the UI) on Nov 10, so a fresh run on a current head is what would settle it.

Suggested next steps (in any order, no pressure):

  1. Decide the extended-stable versus alpha-opt-in policy above.
  2. Either pull land-1960-maintainer-patches into this branch, or tell me which pieces you want and I can apply them as a small patch.
  3. (Done by the reporter, see above.) If someone can, the same Download & Install on a throwaway profile with an extended-stable Gateway would show the P1 case directly.

I did not change any labels. The PR already carries "status: 👀 ready for maintainer look".

@Speculorum9

Speculorum9 commented Nov 11, 2026 •

Copy link
Copy Markdown

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

  • Windows 11 (10.0.26300), x64, Companion installed from the v2026.11.1 stable Setup exe, then overlaid with the unsigned PR build 0dc2a5da (shown as 2026.11.1+pr1960.0dc2a5da).
  • OPENCLAW_UPDATE_CHANNEL=alpha set as a user environment variable. Companion starts at sign-in (--background).
  • Gateway 2026.11.3 on WSL, paired Windows Node device already present.

Steps and results

  1. I checked for updates offered v2026.11.2-alpha.10 (current version shown as 2026.11.1). A screenshot of the dialog attached.
Update dialog offering v2026.11.2-alpha.10
  1. I clicked Download & Install. The "Downloading update..." dialog appeared and the install completed in about 40 seconds with no errors.
  2. Companion restarted and reports v2026.11.2-alpha.10 (build date Nov 8, 2026) on the alpha channel. App info screenshot attached.
image
  1. A second Check for updates reported no updates available.
  2. After the restart the tray reconnected to the Gateway on the first attempt, and the existing node pairing was kept (same device, no re-pairing).
  3. The start-at-sign-in entry, the alpha channel variable and the settings file were unchanged.

Log excerpt (openclaw-tray.log, relevant lines only)

[2026-11-11 09:17:15.253] [INFO] [Update] User clicked 'Download'
[2026-11-11 09:17:30.801] [INFO] Installing update and restarting...
[2026-11-11 09:17:42.453] [INFO] Checking for updates...
[2026-11-11 09:17:42.842] [INFO] No updates available
[2026-11-11 09:17:44.510] [INFO] Received device token - we are now paired!
[2026-11-11 09:17:44.516] [INFO] Pairing status: Paired

What this does not cover

I'm happy to test a named build or a revised head if one is posted.

@MertBasar0

Copy link
Copy Markdown
Contributor

@shanselman thank you for the overnight pass and the land-1960-maintainer-patches branch. Two things from our side: a policy question only a maintainer can answer, and an offer to bring your patches into this PR.

1. The P1 (extended-stable Gateway + alpha opt-in): which behavior do you want?

What happens now: UpdateCheckPipeline picks a single winner, and CompanionUpdateSuppressionPolicy.ShouldSuppress classifies only that winner. If the winner is an ordinary alpha and the Gateway is on extended-stable, the check ends as "Skipped", and an older security-marked stable that is still newer than the installed version is never considered.

One clarification: the same shape already exists on main without this PR. On the stable channel the winner is the latest stable, and if that release is ordinary while an intermediate one is security-marked, an extended-stable Gateway skips the security release in the same way (UpdateCoordinator.cs around line 159 on main). Alpha opt-in makes this more likely because alphas are frequent, but it does not create it.

The two options we see:

  • A. Alpha opt-in overrides extended-stable suppression. The user explicitly asked for alphas, so they get the newest alpha. The Gateway's extended-stable policy then no longer applies to that Companion.
  • B. Keep the suppression, and fall back to security releases. When the winner is suppressed, offer the newest security-marked release that is newer than the installed version, if there is one. The Gateway policy stays authoritative, a security release is never hidden behind an ordinary one, and this also fixes the stable-channel case on main.

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 main merged in plus your three commits (6f00bef7, 8a823bac, 803005f6):

  • the disconnected Issue1642TransportTests and their fixture removed;
  • 100 releases read per alpha check;
  • the approved release re-pinned before the download.

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.

@github-actions

Copy link
Copy Markdown
Contributor

This pull request has been automatically marked as stale due to inactivity.
Please update it or it will be closed.

@github-actions github-actions Bot added the stale label Nov 27, 2026
@Speculorum9

Copy link
Copy Markdown

Checking in from the #1642 reporter, since this PR has been marked stale: the fix is still needed and still works for me.

  • Without this PR, Companion ignores OPENCLAW_UPDATE_CHANNEL=alpha (my Nov 9 data points on v2026.11.1), and nothing else has changed that on main since.
  • On this PR's build (0dc2a5da), the alpha was offered (Nov 10), and Download & Install of v2026.11.2-alpha.10 completed with pairing, settings and start-at-sign-in intact (Nov 11). Details above.

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 main and the three maintainer patches, I'm happy to run the same Windows 11 check on the new head, including Download & Install.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal priority bug or improvement with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. stale 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.

OPENCLAW_UPDATE_CHANNEL=alpha is shown in Settings but ignored by the updater; alpha installs can never discover newer alphas

4 participants