Skip to content

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

Open

Description

@Speculorum9

Summary

On an alpha install, Check for updates always reports "No updates available", even when a newer alpha has been published. The updater only asks GitHub for the repository's latest release, and GitHub's latest-release endpoint never returns pre-releases. So an alpha user stays on their alpha until a newer stable release ships, and "up to date" is misleading in the meantime.

Environment

  • OpenClaw Companion 2026.9.5-alpha.93 (installed with the Setup installer, not the Store/MSIX; the update check runs, see the log below)
  • Windows 11 Home 10.0.26200
  • Newest published pre-release: v2026.9.5-alpha.97 (2026-10-03T18:55:21Z, prerelease: true, not a draft, includes OpenClawCompanion-Setup-x64.exe and OpenClawTray-2026.9.5-alpha.97-win-x64.zip)
  • Repository "latest" release (GET /repos/openclaw/openclaw-windows-node/releases/latest): v2026.9.4 (2026-09-15)

Steps to reproduce

  1. Install any alpha, e.g. v2026.9.5-alpha.93.
  2. Wait for a newer alpha to be published (e.g. alpha.97).
  3. Click Check for updates.

Actual: "No updates available" / status Current.
Expected: Either the newer alpha is offered, or the UI states that alpha builds don't self-update and points to the Releases page.

Log evidence (%LOCALAPPDATA%\OpenClawTray\openclaw-tray.log)

[2026-10-05 08:23:52.470] [INFO] Manual update check requested
[2026-10-05 08:23:52.470] [INFO] Checking for updates...
[2026-10-05 08:23:52.770] [INFO] No updates available

settings.json has no update-channel or pre-release setting (checked all 70 keys), so this isn't configuration drift.

The alpha channel is set and displayed, but the updater ignores it

  • The Windows user environment variable OPENCLAW_UPDATE_CHANNEL=alpha is set on this machine.
  • Settings → About → App info shows Version v2026.9.5-alpha.93 and Update channel: alpha, right next to the Check for updates button that then reports no update (screenshot in the comment below). The label is read from that variable:
    SettingsPage.xaml.cs L206-L207 @ 7127c16
  • The developer launcher documents it as the prerelease switch, in run-app-local.ps1 L44-L45: "Set OPENCLAW_UPDATE_CHANNEL for this launch. Use alpha for prerelease update testing…"
  • But nothing in the update path reads OPENCLAW_UPDATE_CHANNEL. Across the repo at 7127c16 it's referenced only by the Settings label and run-app-local.ps1. So the UI tells the user they're on the alpha channel while the updater stays on stable.

Root cause

  1. The app pins Updatum to the latest release only, and leaves AllowPreReleases at its default (false):
    App.xaml.cs L46-L50 @ 7127c16
    internal static readonly UpdatumManager AppUpdater = new("openclaw", "openclaw-windows-node")
    {
        FetchOnlyLatestRelease = true,
        InstallUpdateSingleFileExecutableName = "OpenClaw.Tray.WinUI",
    };
  2. In Updatum 1.3.4 (the version referenced in OpenClaw.Tray.WinUI.csproj L119), FetchOnlyLatestRelease calls Release.GetLatest(...), and pre-releases are skipped unless AllowPreReleases is set:
    UpdatumManager.cs L629 and L644
    var release = await GithubClient.Repository.Release.GetLatest(Owner, Repository)...
    ...
    || (!AllowPreReleases && release.Prerelease)) // Skip pre-releases if not allowed
    GitHub's latest-release endpoint returns the most recent non-pre-release, non-draft release (currently v2026.9.4). Because v2026.9.4 is older than 2026.9.5-alpha.93, Updatum reports no update.
  3. The app's fallback path also excludes pre-releases by design (stable-correction ordering):
    UpdateCheckPipeline.cs L164-L166 @ 7127c16

So there's currently no code path by which an alpha install can be offered a newer alpha.

Suggested direction (maintainers' call)

  • Option 0, wire up the existing knob: when OPENCLAW_UPDATE_CHANNEL is alpha, configure Updatum with FetchOnlyLatestRelease = false and AllowPreReleases = true (and let the fallback pipeline accept pre-releases on that channel). The Settings label would then match the real behavior.
  • Option A, alpha channel follows the build: when AppVersionInfo.Version has a pre-release label, set FetchOnlyLatestRelease = false and AllowPreReleases = true, so alpha installs track alphas and stable installs stay on stable.
  • Option B, explicit opt-in: an "Update channel: Stable / Alpha" setting that switches the same two Updatum properties.
  • Option C, minimum: if alpha self-update isn't intended, have alpha builds show "Alpha builds don't auto-update; see Releases" instead of "up to date".

Side note: the same panel shows Install type: Unpackaged (developer) for a normal Setup-installer install. SettingsAppInfoProjection.InstallKind maps every non-MSIX install to that label, even though this install runs the regular release update check. A plain "Unpackaged" or "Installer" label would avoid suggesting it's a dev build.

Related context: docs/VERSIONING.md notes that alpha release objects older than 30 days are deleted, which makes it more likely that alpha users end up on stale, unpublished builds without being told.


Reported by @Speculorum9. Investigation done with Claude Code (read-only: local settings and log files, GitHub API, source review).

Activity

  1. Speculorum9 commented on Oct 5, 2026

    @Speculorum9
    Author

    Attaching a screensnip of the "App info" section of Settings. And the message popup when pressing the "Check for updates" button.

    Image
  2. added
    P2
    clawsweeper:fix-shape-clear
    clawsweeper:queueable-fix
    clawsweeper:source-repro
    impact:ux-friction
    issue-rating: 🦞 diamond lobster
    no-stale
    on Oct 5, 2026
  3. clawsweeper commented on Oct 5, 2026

    @clawsweeper

    Codex review: this still needs some work.

    Summary
    This issue remains a source-proven bug on current main: Settings displays the alpha opt-in, but discovery remains stable-only, and enabling prereleases alone would still miss updates within an alpha series.

    Reproducibility: Current source establishes the failure: the environment opt-in reaches only presentation, the backend fetches latest-only, and fallback rejects prereleases; inspected reporter screenshots corroborate historical behavior, but this review did not execute current main.

    Next step
    Connect the existing alpha opt-in to discovery and version ordering, first establishing a failing regression where alpha.93 must select alpha.97.

    Review details

    Best possible solution:

    Honor the existing alpha opt-in with alpha-aware discovery and ordering while preserving stable defaults, correction ordering, and Store-managed servicing.

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

    Current source establishes the failure: the environment opt-in reaches only presentation, the backend fetches latest-only, and fallback rejects prereleases; inspected reporter screenshots corroborate historical behavior, but this review did not execute current main.

    Is this the best way to solve the issue?

    Repairing the existing opt-in through the backend and selection pipeline is bounded; changing Updatum flags alone is insufficient because its numeric comparison discards alpha sequence numbers, while a new setting or automatic channel switching would expand scope.

    AGENTS.md: found and applied where relevant.

    Codex review notes: model internal, reasoning medium; reviewed against de162ba66028.

    Label changes

    Label changes:

    No label changes.

    Label justifications:

    • P2: Alpha update discovery is broken, but the application remains usable and the reporter successfully received a later stable update.
    • impact:ux-friction: Settings advertises an alpha channel while stale alpha builds report themselves current, requiring users to check releases manually.
    Evidence reviewed

    Acceptance criteria:

    • ./build.ps1
    • dotnet test ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj --no-restore
    • dotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj --no-restore
    • dotnet test ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj --no-restore --filter FullyQualifiedName~OpenClawReleaseVersionTests
    • dotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj --no-restore --filter FullyQualifiedName~UpdateCheckPipelineTests

    What I checked:

    • Verified current default branch: GitHub identifies main as the default branch and reports the same commit as the checkout. (de162ba66028)
    • Existing opt-in contract: The launcher documents alpha for prerelease update testing, while SettingsPage independently reads OPENCLAW_UPDATE_CHANNEL for its label; repository searches found no updater consumer of that variable. (run-app-local.ps1:45, de162ba66028)
    • Backend remains latest-only: UpdatumUpdateBackend sets FetchOnlyLatestRelease=true and does not enable prereleases; moving the backend out of App preserved this configuration. (src/OpenClaw.Tray.WinUI/Services/UpdatumUpdateBackend.cs:14, de162ba66028)
    • Fallback excludes alpha releases: The fallback rejects prereleases explicitly and calls IsNewerStableRelease, whose parser rejects alpha versions; existing pipeline tests cover stable corrections, not alpha discovery. (src/OpenClaw.Tray.WinUI/Services/UpdateCheckPipeline.cs:164, de162ba66028)
    • Verified dependency contract: The target imports and pins Updatum 1.3.4, making its discovery and comparison behavior directly relevant: latest-only calls GetLatest, and GetTagVersion removes the suffix starting at '-' or '_', collapsing alpha.93 and alpha.97 to the same numeric version. The annotated 1.3.4 tag resolves to the cited dependency commit. (Updatum/Extensions/GitHubExtensions.cs:28, b052f3878414)
    • Reporter evidence inspected: Both downloaded screenshots were inspected: the first shows alpha.93, channel alpha, and an up-to-date dialog; the second shows stable 2026.9.8-1 while still displaying alpha. Speculorum9's follow-up reports skipped alpha releases, successful later stable installation, and withdraws the flags-only proposal as a complete fix.

    Likely related people:

    • Karen: Raw commit f46400a adds src/OpenClaw.Shared/OpenClawReleaseVersion.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: f46400aab24e; files: src/OpenClaw.Shared/OpenClawReleaseVersion.cs)
    • Scott Hanselman: Raw commit b5115e0 adds src/OpenClaw.Tray.WinUI/Services/UpdatumUpdateBackend.cs:14 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)
    How this review workflow works
    • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
    • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
    • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
    • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
    • Maintainers can also comment @clawsweeper review to request a fresh review only.
    • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge; those execution lanes are retired.
    • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

    Reviewed October 24, 2026, 11:40 AM ET / 15:40 UTC.

  4. Speculorum9 commented on Oct 8, 2026

    @Speculorum9
    Author

    Runtime confirmation, plus a note on the suggested fix

    Good catch on Updatum's version parsing: since it strips everything from - before building a System.Version, alpha.93 and alpha.97 compare equal, so "Option 0" (just flipping AllowPreReleases/FetchOnlyLatestRelease) wouldn't be enough on its own. Withdrawn as a complete fix.

    What this machine did afterwards matches the source analysis at runtime:

    • Installed: 2026.9.5-alpha.97 (Setup), OPENCLAW_UPDATE_CHANNEL=alpha set.
    • Published in the meantime and never offered: v2026.9.5-alpha.117 (Oct 7 08:29 UTC), v2026.9.8-alpha.1, v2026.9.8-alpha.2.
    • First update ever offered: v2026.9.8-1, once it became the repository's Latest (stable) release; the built-in updater installed it on Oct 7. So an alpha install leaves its alpha only when a newer stable ships, as described.

    Now on stable 2026.9.8-1 with the variable still set, Settings → About shows Version v2026.9.8-1 / Update channel: alpha: the same label/behavior mismatch in the other direction. The side note from the report also still applies on 9.8-1: Install type: Unpackaged (developer) for a regular Setup install. (Screenshot attached.)

    Image

    @clawsweeper re-review

  5. clawsweeper commented on Oct 8, 2026

    @clawsweeper

    🦞👀
    Exact review queued.

    Re-review progress:

  6. clawsweeper commented on Oct 8, 2026

    @clawsweeper

    🦞🔧
    ClawSweeper is automatically building a fix for this issue.

    The issue review finished and no active implementation pull request was found.

    Automatic implementation progress:

  7. added
    clawsweeper:intake:bug
    and removed
    clawsweeper:intake:bug
    on Oct 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2clawsweeper:fix-shape-clearclawsweeper:queueable-fixclawsweeper:source-reproimpact:ux-frictionissue-rating: 🦞 diamond lobsterno-stale

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions