Skip to content

fix: Installed apps shows an old version after in-app updates - #1959

Open
roboclaw-bot wants to merge 7 commits into
mainfrom
openclaw/issue-1676-inno-metadata
Open

roboclaw-bot wants to merge 7 commits into
mainfrom
openclaw/issue-1676-inno-metadata

Conversation

@roboclaw-bot

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

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes stale Installed apps versions after in-app ZIP updates. Closes #1676.

Requested by Mert Başar (@MertBasar0); corrected reporter evidence: @Speculorum9.

User Impact

After an in-app update, the Installed apps registration shows the running version again: only DisplayName and DisplayVersion are repaired, install date and uninstall data are preserved. Windows Settings can keep showing an older cached version for a while (observed on Windows 11, see the field test below); this PR does not control when Settings refreshes its list.

Why This Change Was Made

Inno owns registration/uninstall. The helper repairs matching same-user metadata after admitted startup; packaged/Dev/isolated/mismatched records and #1642 discovery stay unchanged.

Evidence

Baseline: stale metadata; patched run. Baseline success records defect reproduction.

Native proof: Archive hashes/CRC and 27 native entries verified; seven-day retention. No private dumps uploaded.

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: metadata repair; signed Windows 11 pool incomplete.
  • windows-winui-interactive: startup; captures do not prove Settings/DPI parity.

Validation

Windows execution: Codex/GitHub Actions. Archive verification: Robo, no runtime rerun. Output directories below are abbreviated.

  • ./build.ps1: exit 0.
  • dotnet test ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj --logger trx --results-directory <run-specific directory>: 4,809 passed / 25 skipped / 0 failed.
  • dotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj --logger trx --results-directory <run-specific directory>: 4,807 passed / 0 skipped / 0 failed; all 8 new cases passed.

TRX rows: 25 skips despite aggregate notExecuted=0. Five files/251 additions checked. Retained P0-P3 implementation/proof-plan and SDK recovery reviews: scoped-clean, not execution certification; neither rerun.

Real Behavior Proof

  • Environment tested: Hosted Windows Server 2025 x64; unsigned non-Dev B.
  • PR head or commit tested: Base a4dd026cc5f85a444a0fcd05eef5b86282dbda8c + patch SHA-256 61e3a9cc86f87e751dcf1a67fd429cecc0dd140464ec7c5ef83a3d4199f9f533. Run 26258047cb8ad7b68ec1bbeac016858dc5024bdc includes excluded orchestration. Re-audit: all five published-file hashes match both hosted source manifests.
  • Exact steps or command run: Original A/hook -> Updatum replacement -> fresh installed B; no overlay.
  • Evidence after fix: 2026-11-03 archive/source re-audit, NOT a new Windows run. Each registry view preserves 23/25 values and all kinds; only DisplayVersion/DisplayName change A 2026.9.8-1 -> B 2026.9.8-2. unins000.exe/.dat unchanged. Source/payload/restart/hook receipts cross-bound: A PID 9004 -> fresh B PID 1304; 1,023 payload hashes match.
  • Observed result: PATCHED_UPDATE_VERIFIED; hook absence PASS (78 assemblies/78 modules, two classified dynamic entries, zero unresolved).
  • Screenshot or artifact links verified? (Yes/No/N/A) Yes, archives/records checked.
  • Not verified or blocked: full user gateway/credential/chat migration; live release discovery/download, signed Windows 11 upgrade (an unsigned Windows 11 overlay passed, see the field test below), signing/SAC, Store/MSIX/ARM64, Settings visual/DPI parity and complete pools. Audit covers the changed Inno data contract only. Welcome captures have clipped lower content/runner-console edges.

Security Impact

  • New permissions or capabilities? (Yes/No) No.
  • Secrets or tokens handling changed? (Yes/No) No.
  • New or changed network calls? (Yes/No) No.
  • Command or tool execution surface changed? (Yes/No) No.
  • Data access scope changed? (Yes/No) Yes.
  • If any answer is Yes, explain the risk and mitigation: Two matching HKCU display values only; no creation/elevation. Write failures warn; restart repairs interruption.

Compatibility and Migration

  • Backward compatible? (Yes/No) Yes.
  • Config or environment changes? (Yes/No) No.
  • Migration needed? (Yes/No) No.
  • If yes, list the exact upgrade steps: N/A.

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.

Windows 11 field retest at 2eaac693

Speculorum9 repeated the unsigned overlay on the same machine with the openclaw-tray-win-x64 artifact of CI run 43213489194 (head 2eaac693, built from GitHub's merge commit; version 2026.11.3-PullRequest1959.55). This head has the startup log line, so this result supersedes the "will be repeated" note in the first field test section further down. Result: the registration was refreshed.

  • First startup: Installed apps registration refreshed from 2026.9.5-alpha.93 to 2026.11.3-PullRequest1959.55.
  • Second startup, after a full quit: Installed apps registration already shows 2026.11.3-PullRequest1959.55.
  • Registry: only DisplayName and DisplayVersion changed. InstallDate, InstallLocation and UninstallString were unchanged after both startups.
  • Windows Settings > Installed apps still listed an older entry (.52, dated 10/20), also after Settings was closed and reopened. The only OpenClaw uninstall registration across HKCU, HKLM and WOW6432Node is the {M0LTB0T-TRAY-4PP1-D3N7}_is1 key at .55, and there is no OpenClaw MSIX package, so Settings is showing cached data, not another registration. This PR updates the registration Windows reads; when Settings picks it up is up to Windows and is not claimed here.
  • The earlier non-refresh with the previous build (48034345, no log line) is not explained. The guards and the two writes are the same in both heads.
  • The signed upgrade proof stays not verified.

Reports: retest, registrations

Data compatibility

No stored data format changes. The change adds no settings, files or new registry values, and it does not touch Companion settings, gateway, credential or chat data. At startup it opens the existing same-user Inno key {M0LTB0T-TRAY-4PP1-D3N7}_is1 under HKCU Uninstall and, only when that registration belongs to the running executable, overwrites two existing string values: DisplayVersion and DisplayName. It never creates the key and never deletes values.

  • Existing data after the upgrade: in the Windows 11 field retest above, InstallDate, InstallLocation and UninstallString were unchanged after both startups, and the second startup reported the record as already current. The Server 2025 archive audit kept 23 of 25 values and all value kinds; unins000.exe/.dat were unchanged.
  • Tests at 2eaac693 (InnoInstallationMetadataTests): RunningReleaseRefreshesOnlyDisplayFieldsAndRemainsIdempotent, ForeignOrMalformedRegistrationRemainsUnchanged, MissingRegistrationIsNotCreated, InterruptedDisplayRefreshIsRepairedOnNextStartup, RegistryFailureReturnsRecoveryWarningWithoutBlockingStartup.

CI attribution at 2eaac693

Run 43213489194: 14 jobs passed, 7 skipped, 2 failed. CI Gate fails only because Mock Gateway application and compatibility tests failed. In that job's Run Release reader layout proof step the tests ran and passed (Total tests: 2, Passed: 2, Test Run Successful). The step failed afterwards, in the CI host-exit diagnostic cleanup: scripts/NativeAnimationPreference.ps1:132 threw Host-exit diagnostic extraction or cleanup failed. (System.Management.Automation.MethodInvocationException). This PR changes none of scripts/, the UI tests or the workflows. This attribution comes from the job log; the job has not been rerun.

Worked on by

Regression evidence (Windows 11)

Native Windows 11 Home build 26200, at PR head 660c7cb and after merging main 04f413d:

  • InnoInstallationMetadataTests at the PR head: 8 passed, 0 failed.
  • RED with the two registry writes in InnoInstallationMetadata.Refresh disabled, which is main's behavior of never refreshing: RunningReleaseRefreshesOnlyDisplayFieldsAndRemainsIdempotent and InterruptedDisplayRefreshIsRepairedOnNextStartup fail (2 of 8).
  • RED with the startup call removed from App.xaml.cs: StartupRefreshFollowsAdmissionAndCompletesBeforeStartupMarker fails (1 of 8).
  • Merge with main 04f413d (tree 6bb050f3): ./build.ps1 passes. Tray tests: 5242 passed, 0 failed. Shared tests: 4863 passed, 2 failed, both host-only failures that also fail on this machine without the change (no symlink privilege, and ExecReusableCommandBinderTests.PinnedCarrier_IgnoresShadowInsertedAfterApproval).

The failing UI job is outside this change. Attempt 1 crashed the test host and attempt 2 timed out in A2UISvgTests.PathologicalGeometry_BoundedByRenderTimeout, which also failed on main 160b8c8. Main has since stabilized the UI job (#1981).

Not verified here

The signed Windows 11 upgrade pool is maintainer scheduled. It needs official signed installers and a machine whose real Companion install may be changed. The refresh is deliberately a no-op for Dev, isolated and packaged builds, so a Dev install cannot stand in for it.

Refreshed with main 4e3dd14c674b9f45d2fabceaefb45f8827c03bb0; the fresh CI run on PR head 48034345085f5f68c5be76f549cb41981d754a9e is the current-tree Windows validation to interpret.

Windows 11 field test (unsigned overlay)

Speculorum9 overlaid the openclaw-tray-win-x64 artifact of CI run 43109799749 on an Inno install that had been updated in-app (Windows 11 10.0.26300, x64). That artifact is built from GitHub's merge commit 804b6180 (48034345 merged onto main 3f47e838). Result: the Installed apps registration was not refreshed after two startups, and the tray log showed no warning. Every guard value checked by hand matched, so the guard that returned early is not identified yet. Settings, Gateway pairing and the start-at-sign-in entry were unaffected. Details: #1959 (comment)

This head adds one startup log line that names the refresh outcome and, when it skips, the guard and the compared value. The overlay test will be repeated with it. Until then the upgrade proof stays not verified.

Validation at 6b5f6d31 (Windows 11 Home 26200): InnoInstallationMetadataTests 8 passed, 0 failed; ./build.ps1 passes; Tray tests (isolated data directory) 6306 passed, 1 failed: FileWorkerManifestTests.ManifestRejectsDirectAndDelayedSpeechRuntimeDependencies(VCRUNTIME140.dll) fails on every run on this host and is independent of this change (neither that test nor the manifest script it runs differs from 48034345).

Worked on by:
- @MertBasar0

Co-authored-by: MertBasar0 <[email protected]>
OpenClaw-Publication: 47010fa4-3a86-447c-86ce-a6abffe97f49
@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. P2 Normal priority bug or improvement with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. labels Oct 31, 2026
@clawsweeper

clawsweeper Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Codex review: blocked before merge.

What this changes

Refreshes an existing matching Inno installation’s display name and version after admitted Companion startup.

Example: Start the updated production Companion on an existing Inno installation.

  • Before: DisplayVersion remains 2026.9.5-alpha.93.
  • After: DisplayVersion becomes 2026.11.3-PullRequest1959.55, while installation date and uninstall information remain unchanged.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The focused implementation and existing-state field evidence are convincing, but the declared signed proof gate is incomplete and required CI remains failed.
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: After an in-app update, Windows inventory can retain the original installed version and offer an upgrade to a version already running.
Reason: The repair addresses the confirmed registration contract without changing updater selection, user preferences or uninstall behavior; immediate Windows Settings cache refresh is outside its stated scope.

Merge readiness

⛔ Blocked before merge - 1 item remains

Keep this PR open: current main still lacks this repair for a confirmed update defect, and review found no introduced correctness bug.

Priority: P2
Reviewed head: 2eaac693bce34f9cec5a6074ff20a590f3698001

Before merge

  • Await maintainer action - Approve and schedule the declared signed Windows installer-upgrade pool on an authorized restorable host.

Findings

None.

Tests

  • Missing end-to-end proof: The declared signed Windows 11 upgrade from the latest stable release remains unexecuted; unsigned overlay evidence does not complete that gate.
Agent review details

How this fits together

Companion startup supplies process identity and running version to a registry metadata helper, which updates two display fields only when the existing same-user Inno registration matches.

flowchart TD
A[Updated Companion starts] --> B[Startup admission]
B --> C[Installation identity checks]
C --> D[Existing HKCU Inno registration]
D --> E[Refresh two display fields]
E --> F[Log outcome]
D --> G[Windows inventory consumers]
Loading

Technical review

Best possible solution:

Land the focused startup reconciliation while preserving Inno’s installation and uninstall ownership and accurately limiting claims about Windows Settings refresh.

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

Current-main source lacks registration reconciliation, corroborating the corrected released-build report; this review ran no target code, builds or tests.

Is this the best way to solve the issue?

The smallest complete repair is this narrowly guarded metadata owner: preserve registration identity and uninstall data, update only the running installation’s two display fields, and retain existing startup admission.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Startup ordering and ownership keeps the original intent (17a8b03: The prior orchestration refactor retained App as the startup composition owner while delegating cohesive behavior to focused owners.)

Testing

Proof path: shipped entry point.

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)
  • Barbara Kudiess: Raw commit 17a8b03 adds src/OpenClaw.Tray.WinUI/App.xaml.cs:948 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 17a8b0363a82; files: src/OpenClaw.Tray.WinUI/App.xaml.cs)
  • Karen: Raw commit 3a58bf3 adds src/OpenClaw.Tray.WinUI/App.xaml.cs:1044 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 3a58bf34902f; files: src/OpenClaw.Tray.WinUI/App.xaml.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 +131; tests and test inclusion +180; documentation +1; deletions 0 Growth supports one registry boundary, startup delegation and distinct preservation, exclusion, recovery and ordering regressions.

Labels

Label changes:

  • add status: ⏳ waiting on maintainer: Only explicit maintainer approvals or decisions remain; merge is still blocked.

Label justifications:

  • P2: Updates succeed, but installed-version inventory remains incorrect; the evidence does not establish a blocked first run.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: ⏳ waiting on maintainer: Only explicit maintainer approvals or decisions remain; merge is still blocked.

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 (5 earlier review cycles)
  • reviewed 2026-10-31T23:46:55.052Z sha 92c9c31 :: blocked before merge. :: none
  • reviewed 2026-11-03T23:36:57.714Z sha 92c9c31 :: needs maintainer review before merge. :: none
  • reviewed 2026-11-09T01:05:53.124Z sha b68e4ce :: blocked before merge. :: none
  • reviewed 2026-11-11T22:18:01.837Z sha 4803434 :: blocked before merge. :: none
  • reviewed 2026-11-13T02:55:00.593Z sha 2eaac69 :: blocked before merge. :: none

Reviewed November 13, 2026, 8:28 AM ET / 13:28 UTC (Revision 6).

@roboclaw-bot
roboclaw-bot marked this pull request as ready for review November 1, 2026 17:35
@roboclaw-bot

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

1 similar comment
@roboclaw-bot

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 3, 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. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. labels Nov 3, 2026
@shanselman

shanselman commented Nov 4, 2026 •

Copy link
Copy Markdown
Collaborator

I'm a Copilot triage agent. The failed-job retry I started has completed, but CI is still red. Attempt 2 failed A2UISvgTests.PathologicalGeometry_BoundedByRenderTimeout: the pathological SVG decode took 11.10 seconds, exceeding the test's 10-second bound (the 8-second production timeout plus a 2-second allowance). This is a different failure from attempt 1's test-host crash.

PR run: https://github.com/openclaw/openclaw-windows-node/actions/runs/41252828179/job/126335757532

Update: an independently retried main run on commit 160b8c80 also failed the same test at 10.85 seconds: https://github.com/openclaw/openclaw-windows-node/actions/runs/41737007496/job/126342336599. The test and MediaResolver source Git blobs are identical between that main commit and this PR head. A different recent main run passed the same test: https://github.com/openclaw/openclaw-windows-node/actions/runs/41739455498/job/126278798564. The failure is reproducible without this PR, but the hosts and surrounding runs differ, so this does not establish its cause or rule out a PR interaction. I would not weaken the bound based on these results.

The signed Windows 11 installer-upgrade and interactive proof gaps documented in the PR also remain. The failure message prints 8 seconds, but its assertion allows 10.

Worked on by:
- @MertBasar0

Co-authored-by: MertBasar0 <[email protected]>
OpenClaw-Publication: 76ff21e2-713d-4aed-aa3e-ba97d1dcebd7

Copy link
Copy Markdown
Contributor

The Windows test host crash did not reproduce on the same merge commit (d29bc8fc). All three SandboxFlyout widths passed in six fresh runs (18/18), and the full Tray UI suite finished with 638 passed and 0 failed. The fork diagnostic reports NOT_REPRODUCED.

Could a maintainer please select Re-run failed jobs on the upstream CI run?

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

Co-authored-by: MertBasar0 <[email protected]>
OpenClaw-Publication: de756344-b9e9-4cf2-aaab-89af7a9ff05d
@MertBasar0

Copy link
Copy Markdown
Contributor

@clawsweeper re-review

1 similar comment
@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. and removed status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. clawsweeper:intake:bug Preliminary submission classification; full source review pending. labels Nov 9, 2026
@roboclaw-bot

Copy link
Copy Markdown
Contributor Author

PR cleanup review

Reviewed head: b68e4cef2f3b8d40b6c09b1f1e02b9798de71e1b. Main comparison: e59374c064f43d68f5c72d070d4c89ef2d20ec3b.

The source repair is still needed on main and remains narrowly limited to two display fields on the matching existing Inno registration. The unsigned update receipts and Windows regression controls are useful, but they do not complete the declared signed Windows 11 upgrade pool. Keep this open for that proof and disposition of the current UI/CI failure; the alpha-selection work in #1960 is complementary, not a replacement. The latest failed UI log is now available: it fails the disabled onboarding UIA exception case, not the older SVG timeout. Main #2050 addresses that exact exception boundary and is absent from this branch, so refresh the base before interpreting a new run.

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.

@TheAngryPit

Copy link
Copy Markdown
Contributor

Note

🤖 Codex responding on behalf of @TheAngryPit

A narrow CI-repair candidate is available at c973d947. It applies the accepted #2050 fix to this PR's current head, b68e4cef, changing the same three files and preserving the original author.

This targets the disabled-onboarding UIA exception assertion recorded in run 42294880875, without changing this PR's Inno metadata behavior. The candidate's full build and eight focused metadata tests passed. Native UI was not run locally; #2050's passing CI does not replace CI on this composed candidate. Signed Windows 11 upgrade and compatibility proof remain open.

@roboclaw-bot: please have the registered publisher review and incorporate the candidate into this existing PR, then qualify the resulting head through canonical CI. The canonical PR still points to b68e4cef; the candidate is on the fork branch codex/pr1959-uia-fix-20261110, with tree 688283d0d60f662a61ad326aa1e9ccd5a7de60c2.

@shanselman

Copy link
Copy Markdown
Collaborator

Hi @MertBasar0, this is a Copilot triage agent (not Scott), doing an overnight sweep for PRs that could land. I made no changes to this branch. Thank you for the careful, evidence-first work on the stale Installed apps version (#1676).

What I checked against current main (22c111d4):

  • The branch merges cleanly (no conflicts, checked with git merge-tree), so refreshing it should be quick.
  • The Gate on head b68e4cef is red from Nov 6, and it is the UI job. The cleanup review ties that failure to the disabled-onboarding UIA exception case that main's fix: disabled onboarding actions report the wrong automation error #2050 (fix: disabled onboarding actions report the wrong automation error) fixed later that day, which this branch does not include. For context, the Gate is also noisy repo-wide right now (it failed on about 6 in 10 of the last 50 CI runs across all branches, including main), so a fresh run on a refreshed branch will say more than rerunning the old one.
  • Still open, per the cleanup review: the signed Windows 11 upgrade proof for the windows-clean-installer-upgrade pool. I can't run a signed installer upgrade, so I am not adding a "ready for maintainer look" label.

No pressure on timing. If a refreshed head goes green, a maintainer can take a look from there.

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

Co-authored-by: MertBasar0 <[email protected]>
OpenClaw-Publication: 959d6433-2164-4dce-b048-1a0bbecd9547
@roboclaw-bot

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 11, 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. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. labels Nov 11, 2026
@MertBasar0

Copy link
Copy Markdown
Contributor

@Speculorum9 you offered to test a named build, and your machine already has the state this PR is about (Installed apps showing an older version after an in-app update). Would you run one check there?

Build: artifact openclaw-tray-win-x64 from CI run 43109799749, built from this PR's head 48034345. It is unsigned and uses the production identity. The PR was refreshed onto main 4e3dd14c today, so it includes #2050.

Before (plain PowerShell window, not one started from a packaged app):

Get-ItemProperty 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Uninstall\{M0LTB0T-TRAY-4PP1-D3N7}_is1' |
  Select-Object DisplayName, DisplayVersion, InstallDate, InstallLocation, UninstallString

Plus the version Companion itself reports, and a screenshot of the Installed apps entry.

Steps

  1. Quit Companion.
  2. Copy the artifact's files over the install folder (the InstallLocation above), the same overlay you did for fix(windows): honor alpha channel when selecting Companion updates #1960.
  3. Start Companion normally and wait until it is connected.

After: the same PowerShell command, the Installed apps screenshot again, and the tray log lines around startup.

Expected: DisplayVersion and DisplayName now show the running version. InstallDate, InstallLocation and UninstallString are unchanged. Settings and Gateway pairing are intact.

Running the official Setup again restores the signed build. If you would rather wait for a signed build, that is fine too; this is the unsigned equivalent of the upgrade proof, and I will label it that way in the PR body.

@Speculorum9

Speculorum9 commented Nov 12, 2026 •

Copy link
Copy Markdown

@MertBasar0 I ran the overlay test on the PR head build. Result: the Installed apps record was not refreshed after two normal Companion startups. Details below so you can compare with your expectations.

Build: artifact openclaw-tray-win-x64 from CI run 43109799749 (head 48034345), SHA-256 946672b2…9b915d1 matching the artifact digest. Version reported: 2026.11.3-PullRequest1959.52+804b6180. Unsigned, overlaid with robocopy /E (1,211 files copied, 0 failed) over the existing install, after backing up the registry key and the app folder.

Machine: Windows 11 (10.0.26300), x64, Companion installed with Inno Setup, since then updated in-app (the last update was v2026.11.2-alpha.10, installed earlier today from the update dialog). Install folder C:\Users\rpill\AppData\Local\OpenClawTray\.

Before (your command):

DisplayName     : OpenClaw Companion version 2026.9.5-alpha.93
DisplayVersion  : 2026.9.5-alpha.93
InstallDate     : 20261003
InstallLocation : C:\Users\rpill\AppData\Local\OpenClawTray\
UninstallString : "C:\Users\rpill\AppData\Local\OpenClawTray\unins000.exe"

After the first startup, and again after a second full quit and restart: identical to the above. A registry export diff before and after is empty.

What I checked to rule out my setup:

  • The new binary contains the change: InnoInstallationMetadata and the {M0LTB0T-TRAY-4PP1-D3N7}_is1 key literal are present in the overlaid OpenClaw.Tray.WinUI.dll, and absent from the previous build's DLL.
  • I evaluated each guard in InnoInstallationMetadata.Refresh against the live registry values, and all hold: Publisher is "OpenClaw Foundation"; all five values are REG_SZ; InstallLocation equals the exe folder; UninstallString equals "<folder>\unins000.exe"; DisplayName starts with "OpenClaw Companion version ". OPENCLAW_TRAY_DATA_DIR is not set; app-identity.txt says release; the process is unpackaged.
  • The tray log shows "Application started (WinUI 3)" on both startups and no warning from the refresh.
  • The rest of the state is intact: the existing Gateway pairing was kept, the start-at-sign-in entry and OPENCLAW_UPDATE_CHANNEL=alpha are unchanged.

Side observation: Windows Settings, Installed apps, shows 2026.10.5-alpha.34 dated 10/20/2026 for Companion, while the registry record says 2026.9.5-alpha.93 dated 10/03. I searched HKCU and HKLM (both views) and MSIX, and there is only one OpenClaw uninstall record, so Settings appears to be showing cached data that differs from the live key.

From the registry and the tray log alone I can't tell which check made it skip the write. A log line at each early return in Refresh (or one Info line with the values it compared) would show it directly. I'm happy to run a build with that logging and report back.

Rollback is easy and I can leave this build running meanwhile if you want a follow-up test.

@MertBasar0

Copy link
Copy Markdown
Contributor

@Speculorum9 thank you, this is exactly the report the PR needed, and it is a real finding, not your setup. I went through Refresh against the values you listed and could not see which guard returns early either, so your suggestion is the right next step.

The PR is getting one more commit: at every startup Companion logs a single line starting with Installed apps registration. It says either that the record was refreshed (from which version to which), that it was already current, or which check stopped it, with the compared value, for example:

Installed apps registration not refreshed: InstallLocation '...' is not the running folder '...'.

The guards and the two writes themselves do not change. When CI has built the new head I will post the run link here. The overlay steps are the same as before. Afterwards, the useful parts are that log line, the registry output, and the Installed apps screenshot. Your observation that Settings shows a version that is in neither the key nor the running build matters too, because it shows whether Settings follows the key once it is refreshed.

One correction to my earlier comment: the CI artifact is built from GitHub's merge commit 804b6180 (this PR's head 48034345 merged onto main 3f47e838), not from the PR head alone. InnoInstallationMetadata is identical in both, so it does not change your result.

Feel free to roll back to the signed build in the meantime.

Worked on by:
- @MertBasar0

Co-authored-by: MertBasar0 <[email protected]>
OpenClaw-Publication: 4f94cfd4-6a77-47e8-8d33-e2c7142aa68a
@MertBasar0

Copy link
Copy Markdown
Contributor

@Speculorum9 the new head 2eaac693 is built: CI run https://github.com/openclaw/openclaw-windows-node/actions/runs/43213489194, artifact openclaw-tray-win-x64 (as before, built from GitHub's merge commit of this head onto main).

The overlay steps are the same as last time. After two startups, the useful parts are:

  1. The line starting with Installed apps registration from the tray log.
  2. The registry output for the {M0LTB0T-TRAY-4PP1-D3N7}_is1 key.
  3. The Installed apps screenshot.

Thank you again for taking the time.

@Speculorum9

Speculorum9 commented Nov 12, 2026 •

Copy link
Copy Markdown

@MertBasar0 Thank you for the logging build. Result: the Installed apps record was refreshed this time.

Build: artifact openclaw-tray-win-x64 from CI run 43213489194 (head 2eaac693), SHA-256 965cf320…9af4, matching the artifact digest. Version reported: 2026.11.3-PullRequest1959.55+1bb76fb7. Overlaid with robocopy /E over the same install as last time (1,211 files, 0 failed), after backing up the app folder and registry key earlier.

Tray log, first startup:

Installed apps registration refreshed from 2026.9.5-alpha.93 to 2026.11.3-PullRequest1959.55.

Second startup (after a full quit):

Installed apps registration already shows 2026.11.3-PullRequest1959.55.

Registry (your command), after the first startup and unchanged after the second:

DisplayName     : OpenClaw Companion version 2026.11.3-PullRequest1959.55
DisplayVersion  : 2026.11.3-PullRequest1959.55
InstallDate     : 20261003
InstallLocation : C:\Users\rpill\AppData\Local\OpenClawTray\
UninstallString : "C:\Users\rpill\AppData\Local\OpenClawTray\unins000.exe"

Only DisplayName and DisplayVersion changed. The other values are as before.

Installed apps screenshot: Settings still lists 2026.11.3-PullRequest1959.52 dated 10/20/2026 (below) although the registry says .55. I closed and reopened Settings and it still shows .52, so it is not just a stale window. As in my earlier report, Settings looks like it is showing cached data that differs from the live key. Last time it showed an alpha.34 entry that was never in the registry.

image

One difference from last time: the previous build (.52, head 48034345) did not write the record on the same machine, and there was no logging to say why. I can't tell whether the new head fixed a guard or the first run just did not reach the write. If it helps, I can restore the .52 build and re-run it, but it would not log the reason.

Rollback is easy and I can leave this build running if you want another check.

@MertBasar0

Copy link
Copy Markdown
Contributor

@Speculorum9 thank you, that is the result this PR needed. The current head refreshed the record on the first startup, reported it as already current on the second, and changed only DisplayName and DisplayVersion. No need to re-run the .52 build: without the log line it cannot tell us more.

The Settings mismatch is worth one more look, because it decides what this PR can claim. Settings lists .52, dated 10/20, while the key says .55, so Settings may be reading another registration rather than a cache. Could you run this and paste the output?

Get-ItemProperty HKCU:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*,
  HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*,
  HKLM:\Software\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* -ErrorAction SilentlyContinue |
  Where-Object DisplayName -like '*OpenClaw*' |
  Select-Object PSChildName, DisplayName, DisplayVersion, InstallDate, Publisher
Get-AppxPackage *OpenClaw* | Select-Object Name, Version, InstallLocation

If there is exactly one entry, the {M0LTB0T-TRAY-4PP1-D3N7}_is1 key, then Settings is showing stale data, and the PR will say so plainly instead of claiming Settings updates. If there is a second entry, for example an MSIX package or another Uninstall key at .52, that explains the screenshot and is outside what this PR touches.

Feel free to keep this build or roll back, whichever you prefer.

@Speculorum9

Speculorum9 commented Nov 13, 2026 •

Copy link
Copy Markdown

@MertBasar0 Thank you. I ran your command exactly as written.

Here's the output:

PSChildName    : {M0LTB0T-TRAY-4PP1-D3N7}_is1
DisplayName    : OpenClaw Companion version 2026.11.3-PullRequest1959.55
DisplayVersion : 2026.11.3-PullRequest1959.55
InstallDate    : 20261003
Publisher      : OpenClaw Foundation

Get-AppxPackage *OpenClaw* returned nothing.

So there is exactly one entry, the {M0LTB0T-TRAY-4PP1-D3N7}_is1 key, and no MSIX package. Settings still lists .52 (10/20), which means it is showing stale data, not another registration. I'll leave this build running unless you want me to roll back.

@roboclaw-bot

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

🦞👀
Exact review queued.

Re-review progress:

@roboclaw-bot

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added the status: ⏳ waiting on maintainer Only explicit maintainer approvals or decisions remain; merge is still blocked. label Nov 13, 2026
@MertBasar0

Copy link
Copy Markdown
Contributor

@Speculorum9 thank you, that settles it: one registration, no MSIX, so Settings is showing cached data. The PR body now says that plainly, records your retest, and no longer claims that Settings updates. A fresh ClawSweeper review is running.

No need to keep this build for #1959; you can roll back to the signed release whenever it suits you.

@MertBasar0

Copy link
Copy Markdown
Contributor

@shanselman a short status note on #1959, since it now waits only on a maintainer step.

Where it stands at 2eaac693.

  • The latest ClawSweeper review found no findings. Its one remaining item is maintainer action: schedule the declared windows-clean-installer-upgrade pool (a signed Windows 11 upgrade from the latest stable release).
  • The unsigned Windows 11 field retest by @Speculorum9 passed. The existing Inno registration was refreshed in place: only DisplayName and DisplayVersion changed, while install date, location and uninstall string were kept. One Uninstall entry, no MSIX.
  • The failed CI job at this head is the Mock Gateway job. Its tests passed (2/2), and the CI harness then failed at "Run Release reader layout proof"; the PR body's "CI attribution" section has the details.

What would help.

  1. Could a maintainer schedule the signed upgrade pool for this PR? I can't run a signed installer upgrade from a contributor machine.
  2. The branch is now well behind main. If you'd like a fresh CI run before the pool, I can have it refreshed onto current main first. Tell me which you prefer, so the pool runs on the head you want to land.

Thanks for the triage passes so far.

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. status: ⏳ waiting on maintainer Only explicit maintainer approvals or decisions remain; merge is still blocked.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Inno "Installed apps" registration stays at the original version after in-app updates — the stale-metadata sequence behind #1592

5 participants