Repository navigation
fix: Installed apps keeps an old version after ZIP updates - #2113
TheAngryPit wants to merge 8 commits into
Conversation
Worked on by: - @MertBasar0 Co-authored-by: MertBasar0 <[email protected]> OpenClaw-Publication: 47010fa4-3a86-447c-86ce-a6abffe97f49
Worked on by: - @MertBasar0 Co-authored-by: MertBasar0 <[email protected]> OpenClaw-Publication: 76ff21e2-713d-4aed-aa3e-ba97d1dcebd7
Co-authored-by: MertBasar0 <[email protected]>
Worked on by: - @MertBasar0 Co-authored-by: MertBasar0 <[email protected]> OpenClaw-Publication: de756344-b9e9-4cf2-aaab-89af7a9ff05d
…penclaw#2050) Return the standard UIA disabled HRESULT so native clients do not substitute stale worker-thread COM error info. Retain deterministic stale-error, mounted-lifetime, and no-activation coverage. Co-authored-by: Copilot App <[email protected]> (cherry picked from commit 3435fba)
|
🦞👀 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: needs real behavior proof before merge. What this changesRefresh the matching Inno installation’s displayed name and version after Companion completes admitted startup. Example: An Inno-installed Companion updates from 2026.9.5-alpha.97 to 2026.9.8-1 through the ZIP updater.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 2 items remain Keep open: current main still has the confirmed metadata defect, and this focused repair introduces no definite correctness bug. Priority: P2 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherThe ZIP updater replaces application files; the startup helper uses the running executable and version to reconcile an existing matching current-user Inno registration consumed by Windows Installed apps. flowchart TD
A[ZIP update] --> B[Companion restart]
B --> C[Startup admission]
C --> D[Installation metadata helper]
D --> E[Matching existing HKCU registration]
E --> F[Refresh two display fields]
F --> G[Windows Installed apps]
Technical reviewBest possible solution: Land one guarded startup reconciliation that preserves Inno’s registration creation and uninstall ownership. Do we have a high-confidence way to reproduce the issue? Current main has no registration refresh after the updater handoff, corroborated by the corrected Windows 11 report; this read-only review ran no reproduction or tests. Is this the best way to solve the issue? The smallest complete fix is the focused metadata owner called after startup admission; its guards and distinct preservation tests serve that repair without replacing the updater or migration detector. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 22c111d4c209. Provenance checked
TestingProof path: unit tests only. 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. Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
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 Reviewed November 11, 2026, 8:40 AM ET / 13:40 UTC. |
|
This pull request has been automatically marked as stale due to inactivity. |
What Problem This Solves
Fixes stale Installed apps versions after a successful in-app ZIP update. Related: #1676 and #1959 (fix: Installed apps shows an old version after in-app updates).
This is a separately maintained current-main continuation of #1959. The original publication route could not accept the follow-up; its original commits and credits are preserved here. #1959 remains open, and this PR makes no claim that it has been superseded or closed.
Original implementation and startup regression: @MertBasar0 and the retained @roboclaw-bot commits. The corrected report is from @Speculorum9. The retained #2050 uplift credits @karkarl and Copilot; that UI Automation repair is already on the base and adds no duplicate changes to this diff.
User Impact
Installed apps can show the version of the running production Companion after an in-app update. The repair preserves installation dates, uninstall commands and unrelated registration values. Signed Windows 11 upgrade and visible Settings verification remain unexecuted.
Why This Change Was Made
The ZIP updater replaces application files without running Inno again. Current main still has no registration refresh. A focused startup owner updates only DisplayVersion and DisplayName when an existing same-user Inno registration matches the running production executable. It runs after startup admission and before the completion marker.
Missing or mismatched registrations, portable copies, Dev, isolated and packaged builds remain unchanged. Registration creation and uninstall ownership stay with Inno; write failures produce recovery guidance without blocking startup.
Evidence
Base:
22c111d4c209f9e29c1fd0ad1ca03ff63b196b61. Candidate:c9437981f0db20473da74bae424849938c6e2dcc, treeb36d0dc15569af97a2f1910151fafa6079923cb6.Live issue/source and merged-work checks found the metadata defect still open and its refresh owner absent on current main. The existing startup regression fails when the candidate-compiled test assembly reads that exact main startup source, where the refresh call is absent. All eight metadata tests pass on the candidate's pre-comment-cleanup parent. This is a source-contract check, not an installed upgrade reproduction.
The full build and 6,298 Tray cases passed at parent
21c539f01dd65027dcab1a5566ac08268fda0737. Shared has 12 host symlink-privilege failures, recorded below. The final commit removes only three XML documentation lines. Its WinUI build and all eight focused metadata tests passed. Historical Server 2025 update artifacts in #1959 remain origin evidence, not execution evidence for this candidate.Local NoComments identified that documentation-only deletion. Robo-side Autoreview reviewed the exact final head and five-file delta against the stated base: scoped-clean, exit 0, no findings. Its TestAudit found no source findings across the eight metadata/startup methods; it executed no tests and explicitly leaves production lookup/ACL and runtime startup unqualified. Independent implementation/proof-plan review found no production-code defect and accepted the implementation for a draft PR, with production registry lookup, signed upgrade and Shared validation still unqualified. This is not a ready-to-merge claim.
Change Type
Scope
winnodeRequired proof pools
windows-clean-installer-upgrade: signed production upgrade, registration preservation and uninstall continuity. Not run in this preparation.windows-winui-interactive: visible Installed apps version and admitted startup behavior. Not run; GUI automation was outside this preparation's authorized scope.Production-path proof requires a disposable/restorable Windows environment with a normal production profile. An isolated-profile launch deliberately excludes this repair through
AppIdentity.IsIsolated; it cannot substitute for the signed upgrade proof. Keep that exclusion enabled.Validation
Headless Windows x64 validation uses isolated test profile directories and the repository's normal build/test commands.
.\build.ps121c539f0dotnet test tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj --no-restore21c539f0dotnet test tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj --no-restore21c539f0dotnet test tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj --filter FullyQualifiedName~InnoInstallationMetadataTests21c539f0OPENCLAW_REPO_ROOTselecting exact current main22c111d4source /21c539f0compiled testsdotnet build src/OpenClaw.Tray.WinUI/OpenClaw.Tray.WinUI.csproj --no-restore -r win-x64c9437981c9437981All 12 Shared failures throw "A required privilege is not held by the client" in CreateSymbolicLink during fixture construction. Neither the Shared source nor its tests changes in this PR. No privilege settings, assertions or skip policies were changed. The first build attempt also exposed missing platform environment variables in the task harness; restoring truthful process-local Windows_NT/AMD64 values allowed the existing Visual Studio resolver and normal build to pass without installation or build-property overrides.
No native UI, installed update, signing, paid pool or fork CI was run.
Real Behavior Proof
21c539f01dd65027dcab1a5566ac08268fda0737; WinUI build and eight focused cases at final comment-only headc9437981f0db20473da74bae424849938c6e2dcc.Yes/No/N/A): N/A. No screenshot or private local path is presented as public proof.Security Impact
Yes/No): No.Yes/No): No.Yes/No): No.Yes/No): No.Yes/No): Yes.Yes, explain the risk and mitigation: Write only two display values in a matching existing HKCU Inno registration. No registration creation or elevation; denied writes return recovery guidance.Compatibility and Migration
Yes/No): Yes.Yes/No): No.Yes/No): No.Review Conversations