Repository navigation
fix: Installed apps shows an old version after in-app updates - #1959
roboclaw-bot wants to merge 7 commits into
Conversation
Worked on by: - @MertBasar0 Co-authored-by: MertBasar0 <[email protected]> OpenClaw-Publication: 47010fa4-3a86-447c-86ce-a6abffe97f49
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. What this changesRefreshes 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.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete 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 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherCompanion 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]
Technical reviewBest 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
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
Preflight sourceSource 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
LabelsLabel changes:
Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (5 earlier review cycles)
Reviewed November 13, 2026, 8:28 AM ET / 13:28 UTC (Revision 6). |
|
@clawsweeper re-review |
1 similar comment
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
I'm a Copilot triage agent. The failed-job retry I started has completed, but CI is still red. Attempt 2 failed PR run: https://github.com/openclaw/openclaw-windows-node/actions/runs/41252828179/job/126335757532 Update: an independently retried main run on commit 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
|
The Windows test host crash did not reproduce on the same merge commit ( Could a maintainer please select Re-run failed jobs on the upstream CI run? |
Co-authored-by: MertBasar0 <[email protected]>
Worked on by: - @MertBasar0 Co-authored-by: MertBasar0 <[email protected]> OpenClaw-Publication: de756344-b9e9-4cf2-aaab-89af7a9ff05d
|
@clawsweeper re-review |
1 similar comment
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
PR cleanup reviewReviewed head: 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. |
|
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, 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 |
|
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
No pressure on timing. If a refreshed head goes green, a maintainer can take a look from there. |
Co-authored-by: MertBasar0 <[email protected]>
Worked on by: - @MertBasar0 Co-authored-by: MertBasar0 <[email protected]> OpenClaw-Publication: 959d6433-2164-4dce-b048-1a0bbecd9547
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
@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 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, UninstallStringPlus the version Companion itself reports, and a screenshot of the Installed apps entry. Steps
After: the same PowerShell command, the Installed apps screenshot again, and the tray log lines around startup. Expected: 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. |
|
@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 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 Before (your command): 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:
Side observation: Windows Settings, Installed apps, shows 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 Rollback is easy and I can leave this build running meanwhile if you want a follow-up test. |
|
@Speculorum9 thank you, this is exactly the report the PR needed, and it is a real finding, not your setup. I went through The PR is getting one more commit: at every startup Companion logs a single line starting with 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 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
|
@Speculorum9 the new head The overlay steps are the same as last time. After two startups, the useful parts are:
Thank you again for taking the time. |
|
@MertBasar0 Thank you for the logging build. Result: the Installed apps record was refreshed this time. Build: artifact Tray log, first startup: Second startup (after a full quit): Registry (your command), after the first startup and unchanged after the second: Only DisplayName and DisplayVersion changed. The other values are as before. Installed apps screenshot: Settings still lists
One difference from last time: the previous build ( Rollback is easy and I can leave this build running if you want another check. |
|
@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 The Settings mismatch is worth one more look, because it decides what this PR can claim. Settings lists 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, InstallLocationIf there is exactly one entry, the Feel free to keep this build or roll back, whichever you prefer. |
|
@MertBasar0 Thank you. I ran your command exactly as written. Here's the output:
So there is exactly one entry, the |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
@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. |
|
@shanselman a short status note on #1959, since it now waits only on a maintainer step. Where it stands at
What would help.
Thanks for the triage passes so far. |

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
Scope
winnodeRequired 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
a4dd026cc5f85a444a0fcd05eef5b86282dbda8c+ patch SHA-25661e3a9cc86f87e751dcf1a67fd429cecc0dd140464ec7c5ef83a3d4199f9f533. Run26258047cb8ad7b68ec1bbeac016858dc5024bdcincludes excluded orchestration. Re-audit: all five published-file hashes match both hosted source manifests.DisplayVersion/DisplayNamechange A2026.9.8-1-> B2026.9.8-2.unins000.exe/.datunchanged. Source/payload/restart/hook receipts cross-bound: A PID 9004 -> fresh B PID 1304; 1,023 payload hashes match.PATCHED_UPDATE_VERIFIED; hook absence PASS (78 assemblies/78 modules, two classified dynamic entries, zero unresolved).Yes/No/N/A) Yes, archives/records checked.Security Impact
Yes/No) No.Yes/No) No.Yes/No) No.Yes/No) No.Yes/No) Yes.Yes, explain the risk and mitigation: Two matching HKCU display values only; no creation/elevation. Write failures warn; restart repairs interruption.Compatibility and Migration
Yes/No) Yes.Yes/No) No.Yes/No) No.Review Conversations
Windows 11 field retest at
2eaac693Speculorum9 repeated the unsigned overlay on the same machine with the
openclaw-tray-win-x64artifact of CI run 43213489194 (head2eaac693, built from GitHub's merge commit; version2026.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.Installed apps registration refreshed from 2026.9.5-alpha.93 to 2026.11.3-PullRequest1959.55.Installed apps registration already shows 2026.11.3-PullRequest1959.55.DisplayNameandDisplayVersionchanged.InstallDate,InstallLocationandUninstallStringwere unchanged after both startups..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}_is1key 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.48034345, no log line) is not explained. The guards and the two writes are the same in both heads.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}_is1under HKCU Uninstall and, only when that registration belongs to the running executable, overwrites two existing string values:DisplayVersionandDisplayName. It never creates the key and never deletes values.InstallDate,InstallLocationandUninstallStringwere 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/.datwere unchanged.2eaac693(InnoInstallationMetadataTests):RunningReleaseRefreshesOnlyDisplayFieldsAndRemainsIdempotent,ForeignOrMalformedRegistrationRemainsUnchanged,MissingRegistrationIsNotCreated,InterruptedDisplayRefreshIsRepairedOnNextStartup,RegistryFailureReturnsRecoveryWarningWithoutBlockingStartup.CI attribution at
2eaac693Run 43213489194: 14 jobs passed, 7 skipped, 2 failed. CI Gate fails only because
Mock Gateway application and compatibility testsfailed. In that job'sRun Release reader layout proofstep 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:132threwHost-exit diagnostic extraction or cleanup failed.(System.Management.Automation.MethodInvocationException). This PR changes none ofscripts/, 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:
InnoInstallationMetadataTestsat the PR head: 8 passed, 0 failed.InnoInstallationMetadata.Refreshdisabled, which is main's behavior of never refreshing:RunningReleaseRefreshesOnlyDisplayFieldsAndRemainsIdempotentandInterruptedDisplayRefreshIsRepairedOnNextStartupfail (2 of 8).App.xaml.cs:StartupRefreshFollowsAdmissionAndCompletesBeforeStartupMarkerfails (1 of 8)../build.ps1passes. 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, andExecReusableCommandBinderTests.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 head48034345085f5f68c5be76f549cb41981d754a9eis the current-tree Windows validation to interpret.Windows 11 field test (unsigned overlay)
Speculorum9 overlaid the
openclaw-tray-win-x64artifact 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 commit804b6180(48034345merged ontomain3f47e838). 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):InnoInstallationMetadataTests8 passed, 0 failed;./build.ps1passes; 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 from48034345).