Skip to content

Released version v0.5.0 still displays v0.4.7 in-app due to stale csproj Version #570

Closed

Description

@QQSHI13

Problem

The latest GitHub release is v0.5.0 (tagged Apr 23), but the built software still reports 0.4.7 in the UI and assembly metadata.

Evidence:

  • src/OpenClaw.Tray.WinUI/OpenClaw.Tray.WinUI.csproj line 12:
    <Version>0.4.7</Version>
  • src/OpenClaw.Shared/AppVersionInfo.cs comments and logic reference 0.4.7 as the canonical example.
  • tests/OpenClaw.Tray.UITests/A2UIDashboardScaleTest.cs hardcodes Lit("v0.4.7") for version text assertions.
  • docs/VERSIONING.md also documents 0.4.7 as the current version string.

Meanwhile git tag shows:

  • v0.5.0 — released Apr 23
  • v0.6.0-alpha.1 — more recent pre-release

Impact

  • Users downloading the v0.5.0 release see "v0.4.7" in About dialogs, tray tooltips, and logs.
  • Support/debugging is confusing because reported version doesn't match release notes.
  • The v0.6.0-alpha.1 tag suggests work has moved on, but the project file wasn't bumped for either release.

Root cause

The <Version> property in the main .csproj is hardcoded and wasn't updated when the v0.5.0 tag was created. AppVersionInfo reads from this at build time.

Suggested fixes

  1. Immediate: Bump OpenClaw.Tray.WinUI.csproj <Version> to 0.5.0 (or 0.6.0-alpha.1 if that reflects reality).
  2. Process: Tie versioning to Git tags automatically using a tool like GitVersion (already configured via GitVersion.yml in the repo root) or MinVer, so the assembly version is derived from git describe and can't drift from releases.
  3. Tests: Update A2UIDashboardScaleTest.cs to assert against AppVersionInfo.DisplayVersion instead of a hardcoded literal.

Files to update

  • src/OpenClaw.Tray.WinUI/OpenClaw.Tray.WinUI.csproj
  • src/OpenClaw.Shared/AppVersionInfo.cs (comment examples)
  • tests/OpenClaw.Tray.UITests/A2UIDashboardScaleTest.cs
  • docs/VERSIONING.md

Activity

  1. clawsweeper commented on May 28, 2026

    @clawsweeper

    Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed May 28, 2026, 5:40 AM ET / 09:40 UTC.

    Summary
    Keep open, but not as a confirmed v0.5.0 release-artifact bug: the downloaded v0.5.0 x64 release metadata reports 0.5.0, while current main still has a 0.4.7 fallback and one hardcoded test literal that merit maintainer review.

    Reproducibility: no. high-confidence reproduction for the v0.5.0 shipped artifact: metadata in the downloaded x64 release reports 0.5.0. The stale local fallback is source-reproducible because current main still has 0.4.7 and AppVersionInfo reads assembly version metadata.

    Ways to help us reproduce this

    • Add a screenshot or short recording showing the behavior.
    • Add expected vs actual behavior.

    Next step
    A maintainer should decide whether to close the release-specific claim based on artifact evidence or accept a narrow cleanup, because manually bumping the csproj conflicts with the documented tag-driven release policy.

    Review details

    Best possible solution:

    Keep tag-driven CI release versioning, then either close this as a release-artifact non-repro or land a narrow docs/test/local-fallback cleanup that avoids hardcoded stale user-visible version values without changing the routine release policy.

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

    No high-confidence reproduction for the v0.5.0 shipped artifact: metadata in the downloaded x64 release reports 0.5.0. The stale local fallback is source-reproducible because current main still has 0.4.7 and AppVersionInfo reads assembly version metadata.

    Is this the best way to solve the issue?

    No for the suggested immediate manual bump as the only fix; RELEASING.md says routine release versions should come from tags and CI. The safer path is a maintainer decision on whether to treat this as docs/test/local fallback cleanup, plus any guard that proves release artifacts carry the tag version.

    AGENTS.md: found and applied where relevant.

    Remaining risk / open question:

    • I could inspect release artifact metadata from Linux, but did not run the Windows UI About dialog/tray tooltip path from the v0.5.0 build.
    • A source build that does not pass /p:Version still appears able to surface the 0.4.7 fallback, while the documented release process says routine releases should not manually bump the csproj fallback.

    Codex review notes: model gpt-5.5, reasoning high; reviewed against 2d1cfb7773d8.

    Label changes

    Label changes:

    • add P3: The confirmed remaining work is low-risk versioning/docs/test cleanup rather than a proven broken shipped release.
    • add impact:other: The issue concerns version diagnostics and support clarity, which is maintainer-visible but outside the more specific impact labels.
    • add issue-rating: 🐚 platinum hermit: Current issue advisory state selects this label.
    • add clawsweeper:needs-live-repro: Current issue advisory state selects this label.
    • add clawsweeper:no-new-fix-pr: Current issue advisory state selects this label.
    • add clawsweeper:needs-maintainer-review: Current issue advisory state selects this label.
    • add clawsweeper:needs-product-decision: Current issue advisory state selects this label.

    Label justifications:

    • P3: The confirmed remaining work is low-risk versioning/docs/test cleanup rather than a proven broken shipped release.
    • impact:other: The issue concerns version diagnostics and support clarity, which is maintainer-visible but outside the more specific impact labels.
    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

    What I checked:

    Likely related people:

    • Regis Brid: Commit f3d3fd added AppVersionInfo, set the current 0.4.7 fallback, and changed the A2UI dashboard footer literal. (role: introduced current version fallback and AppVersionInfo path; confidence: high; commits: f3d3fd2772f3; files: src/OpenClaw.Tray.WinUI/OpenClaw.Tray.WinUI.csproj, src/OpenClaw.Shared/AppVersionInfo.cs, tests/OpenClaw.Tray.UITests/A2UIDashboardScaleTest.cs)
    • Scott Hanselman: History shows the v0.5.0 release/tag commit and later release-flow docs/workflow ownership around tag-driven versioning. (role: release/versioning flow contributor; confidence: high; commits: 1960a436e0d0, 6711591b5c14, 0aebcc24f221; files: .github/workflows/ci.yml, docs/RELEASING.md, docs/VERSIONING.md)
    • Chris Anderson: Commit 9fa43f introduced the native WinUI A2UI renderer area exercised by the dashboard scale test that now contains the version literal. (role: adjacent A2UI feature owner; confidence: medium; commits: 9fa43f347703; files: tests/OpenClaw.Tray.UITests/A2UIDashboardScaleTest.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.
    • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
    • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.
  2. added
    P3
    impact:other
    issue-rating: 🐚 platinum hermit
    clawsweeper:needs-live-repro
    clawsweeper:no-new-fix-pr
    clawsweeper:needs-maintainer-review
    clawsweeper:needs-product-decision
    on May 28, 2026
  3. QQSHI13 commented on May 28, 2026

    @QQSHI13
    ContributorAuthor

    Thanks @clawsweeper for the detailed review — I overstated the release impact.

    You're right: the v0.5.0 artifact is fine because CI overrides the version via GitVersion. The remaining problem is narrow:

    1. Dev builds without /p:Version fall back to 0.4.7 (source-reproducible).
    2. A2UI test still hardcodes v0.4.7 instead of deriving from AppVersionInfo.

    I agree with downgrading to a docs/test/local-fallback cleanup. Happy to open a narrow PR to:

    • Update the .csproj fallback to 0.6.0-alpha.1 (or whatever reflects current main)
    • Replace the hardcoded test literal with AppVersionInfo.DisplayVersion
    • Update docs/VERSIONING.md examples

    …or the maintainers can close this and handle it as part of the next release prep. Either way works for me.

  4. added a commit that references this issue on May 28, 2026
    af9a453
  5. github-actions commented on May 28, 2026

    @github-actions
    Contributor

    🤖 This is an automated response from Repo Assist.

    I've created a draft PR to fix this: it bumps <Version> in OpenClaw.Tray.WinUI.csproj from 0.4.7 to 0.5.0 (matching the latest stable release tag), and replaces the hardcoded Lit("v0.4.7") in A2UIDashboardScaleTest with Lit(AppVersionInfo.DisplayVersion) so the test stays correct across future bumps.

    Note: Since CI already overrides the version via GitVersion (-p:Version=...), this only affects local builds and fallback paths — but it's still worth keeping in sync with the release tag for accuracy and test reliability.

    Generated by 🌈 Repo Assist, see workflow run. Learn more.

    To install this agentic workflow, run

    gh aw add githubnext/agentics/workflows/repo-assist.md@97143ac59cb3a13ef2a77581f929f06719c7402a
    
  6. added a commit that references this issue on May 29, 2026
    f8e6ac4
  7. locked as resolved and limited conversation to collaborators on Jun 1, 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

    P3clawsweeper:needs-live-reproclawsweeper:needs-maintainer-reviewclawsweeper:needs-product-decisionclawsweeper:no-new-fix-primpact:otherissue-rating: 🐚 platinum hermit

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions