Skip to content

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

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

roboclaw-bot wants to merge 5 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. 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 on 0dc2a5da (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 (tree 533cd682, 9 files against main):

  • 6f00bef7 drops the disconnected Issue1642 HTTP fixture tests.
  • 8a823bac reads 100 releases per alpha check and isolates the update tests.
  • 803005f6 re-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

  • 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

Current head (tree 533cd682), local Windows 11 Home 26200 x64: ./build.ps1 passed. 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:

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

  • Source: Speculorum9's December 1 retest on the same Windows 11 machine (10.0.26300, x64, OPENCLAW_UPDATE_CHANNEL=alpha, Gateway in WSL2). Build: the unsigned fork build OpenClawTray-PR1960-bd112864-2026.11.3-win-x64.zip (SHA-256 250b917800e19d6b74b997741c50509fe8b05eb1aee147a26f63679e0dc7c662, build run), overlaid on the official v2026.11.3 stable ZIP.
  • Observed result: at startup the build offered v2026.11.12-alpha.1, the newest alpha at the time. Download & Install completed, Companion restarted on 2026.11.12-alpha.1+29f0553f on the alpha channel, the Gateway reconnected and paired, and a second check found no update. Screenshots are in the linked comment.
  • State after the restart: the same paired device with no new approval (gateway entries and device keys unchanged); the start-at-sign-in Run entry and AutoStart unchanged; settings unchanged apart from three new Desktop Companion keys that the alpha adds with defaults.
  • Known limitation: on the alpha channel, What's New lists every release ahead of the installed version, oldest first (GetChangelog(true)), so it started with the v2026.11.4-alpha.2 notes. Stable fetches only the latest release and is unaffected. This is left out of this PR so the retest stays valid for this head.
  • Current-head CI: the Tray UI workspace and chat-layout shard failed in ReactorChatLayoutProofTests.CodeCopyAutomationIds_AreDistinctAndStableAcrossFeedbackAndContentUpdates. This PR changes no chat or UI code, main passes that shard (including the base 5e4d1986), 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)

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: the declared signed proof pools, and broader newer-main integration validation. The Windows 11 contributor results above do 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: passed.

What this changes

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

  • Before: The updater excludes newer alphas.
  • After: The reviewed build offers v2026.11.12-alpha.1 and completes Download & Install.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The useful, focused repair has current-head end-to-end evidence; required CI is not fully cleared and its UI failure is not independently attributed.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): The current-head unsigned Windows 11 x64 build exercised startup discovery and Download & Install from a v2026.11.3 installation to v2026.11.12-alpha.1; inspected screenshots and the reporter's restart/state report support success. Signed clean-installer proof pools remain unverified, limiting distribution assurance without creating contributor merge work under this PR's exemption.
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 selecting alpha see an alpha channel label while newer compatible alphas remain undiscoverable.
Reason: The patch makes the existing opt-in work, preserves stable defaults, and has maintainer-author direction plus concrete reporter validation.

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

Before merge

None.

Findings

None.

Agent review details

How this fits together

Companion'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]
Loading

Technical review

Best 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

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

  • Current main still excludes alpha updates: Main's pipeline rejects prereleases and parses only stable versions; its backend retains FetchOnlyLatestRelease=true without reading the channel. (src/OpenClaw.Tray.WinUI/Services/UpdateCheckPipeline.cs:164, 29f0553fbed0)
  • Pinned introduced change: The introduced hunks reuse the existing selector, version comparator, backend and coordinator; stable backend success and Store/development/Debug admission remain intact. (src/OpenClaw.Tray.WinUI/Services/UpdateCheckPipeline.cs:159, bd11286485af)
  • Current-head discovery and installation proof: Speculorum9's December 1 retest identifies the reviewed product commit and artifact digest, reports successful installation with pairing, settings and startup preferences preserved, and supplies screenshots inspected directly showing the offered alpha and resulting About version: fix(windows): honor alpha channel when selecting Companion updates #1960 (comment). (bd11286485af)
  • Affirmative dependency contract: The shipping project references Updatum 1.3.4, and the changed backend directly configures its discovery options and calls its activation/download APIs. (src/OpenClaw.Tray.WinUI/OpenClaw.Tray.WinUI.csproj:118, bd11286485af)
  • Pinned producer behavior verified: Version 1.3.4 fetches GetLatest for stable discovery or a bounded release page otherwise; ForceTriggerUpdateFromRelease replaces ReleasesAhead, and DownloadUpdateAsync resolves LatestRelease before its first await. No AGENTS.md was found in that revision's tree. (Updatum/UpdatumManager.cs:627, b052f3878414)
  • Required CI remains unresolved: The reviewed head passes core/CLI, Tray/setup/integration and changed-test soak jobs, but the workspace/chat-layout UI shard fails and CI Gate consequently fails. Its annotation gives only exit code 1; downloading the log was blocked at productionresultssa15.blob.core.windows.net, so this review cannot classify the underlying failure as external or diff-caused. This leaves the previous review's CI investigation move unresolved. (bd11286485af)

Likely related people:

  • Karen: Raw commit f46400a adds src/OpenClaw.Tray.WinUI/Services/UpdateCheckPipeline.cs:27 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: f46400aab24e; files: src/OpenClaw.Tray.WinUI/Services/UpdateCheckPipeline.cs)
  • 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:16 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
Change distribution Production +97/-16; tests and fixtures +766/-1; documentation +11/-0 Most growth is the 603-line release corpus supporting distinct ordering, eligibility and channel cases; no new production service or state store is introduced.

Root-cause cluster

Relationship: same_root_cause
Canonical: #1642
Summary: This PR repairs the canonical alpha-discovery report; security fallback after ordinary-release suppression is a separately tracked concern.

Members:

These related items are listed for context. Any action on an item requires its own checks.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.

Label justifications:

  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rank-up moves

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

  • Have the CI owner inspect the current-head workspace/chat-layout shard failure and establish its cause.

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

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 (3 earlier review cycles)
  • reviewed 2026-10-31T23:50:00.923Z sha 4265c3a :: blocked before merge. :: [P3] Remove AI workflow attribution from the public description
  • reviewed 2026-11-09T01:06:11.426Z sha 0dc2a5d :: needs maintainer review before merge. :: none
  • reviewed 2026-11-30T22:50:23.276Z sha bd11286 :: passed. :: none

Reviewed November 30, 2026, 7:32 PM ET / December 1, 2026, 00:32 UTC (Revision 4).

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

@github-actions github-actions Bot removed the stale label Nov 29, 2026
roboclaw-bot and others added 2 commits November 30, 2026 19:09
Co-authored-by: MertBasar0 <[email protected]>
Worked on by:
- @MertBasar0

Co-authored-by: MertBasar0 <[email protected]>
OpenClaw-Publication: 784b29d3-e772-4585-b13a-8d7dc82743f1
@roboclaw-bot

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

🦞👀

Re-review progress:

@clawsweeper clawsweeper Bot added the proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. label Nov 30, 2026
@MertBasar0

Copy link
Copy Markdown
Contributor

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 main and @shanselman's three maintainer patches. The new head is bd11286485af548f7dd286f2eb244773bd8c309c:

  • the disconnected Issue1642 HTTP fixture tests are dropped;
  • the alpha check reads 100 releases;
  • the approved release is re-pinned before downloading.

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:

  • ZIP: OpenClawTray-PR1960-bd112864-2026.11.3-win-x64.zip, SHA-256 250b917800e19d6b74b997741c50509fe8b05eb1aee147a26f63679e0dc7c662 (build run)
  • It reports itself as 2026.11.3+pr1960.bd11286485af548f7dd286f2eb244773bd8c309c, so it should offer the newest alpha, currently v2026.11.12-alpha.1.
  • Your machine is on v2026.11.2-alpha.10 from the last test, which is newer than this build. Please put Companion back on the v2026.11.3 stable install first (or any version at or below 2026.11.3), then overlay the ZIP the same way as before.

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.

@Speculorum9

Copy link
Copy Markdown

You bet. I retested on the new head bd11286 with your fork build, on the same Windows 11 machine as Nov 11. It works.

Setup

  • Windows 11 (10.0.26300), x64, OPENCLAW_UPDATE_CHANNEL=alpha, Gateway in WSL2.
  • OpenClawTray-PR1960-bd112864-2026.11.3-win-x64.zip: SHA-256 matched (250b9178...c7c662), and the handoff verification file names product commit bd11286....
  • Companion was on the fix(setup): Start with Windows cannot stop the installer startup shortcut #1964 PR build, so I quit it, copied the official v2026.11.3 stable ZIP over the install, then your ZIP on top (robocopy, no mirror, 0 failures). About showed v2026.11.3, build date Nov 30, channel alpha.

Update

  • At startup the build checked by itself and offered v2026.11.12-alpha.1, the current newest alpha.
image
  • Download & Install: clicked 19:07:37, "Installing update and restarting" 19:07:54, new process 19:08:05, Gateway connected and paired 19:08:08, then "No updates available".
  • About now shows v2026.11.12-alpha.1, channel alpha.
image

State after the restart

  • Version: 2026.11.12-alpha.1+29f0553f; channel still alpha.
  • Pairing: kept. All three gateway entries and device keys are unchanged, and the node reconnected without a new approval.
  • Start at sign-in: the Run entry is unchanged (--background), and AutoStart is still on.
  • Settings: unchanged, apart from three new Desktop Companion keys that the alpha adds with defaults.

Side notes (not from this PR)

Thanks for carrying this through.

@MertBasar0

Copy link
Copy Markdown
Contributor

Thank you, @Speculorum9. That is exactly the current-head proof this PR was missing: the build found v2026.11.12-alpha.1 on its own, Download & Install completed, and pairing, start-at-sign-in and settings were intact after the restart.

On the side notes:

Thanks again for testing this twice, carefully and end to end.

@roboclaw-bot

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

🦞👀

Re-review progress:

@clawsweeper clawsweeper Bot added proof: sufficient Contributor real behavior proof is sufficient. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Dec 1, 2026
@MertBasar0

Copy link
Copy Markdown
Contributor

@shanselman this is ready for another look when you have time. Since your three patches:

  • @Speculorum9 retested the current head bd112864 end to end on Windows 11: it found v2026.11.12-alpha.1, Download & Install completed, and pairing, start-at-sign-in and settings were kept (retest).
  • ClawSweeper re-reviewed it at 4/6 with sufficient proof and no findings.
  • The only red check is the Tray UI workspace and chat-layout shard (ReactorChatLayoutProofTests.CodeCopyAutomationIds_AreDistinctAndStableAcrossFeedbackAndContentUpdates). This PR touches no chat code and main passes that shard, so it looks like a flake, but I can't rerun it from my account. Could you rerun the failed jobs?

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. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient Contributor real behavior proof is sufficient. 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.

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