Repository navigation
fix(windows): separate updater from orchestration migration - #11405
Conversation
Greptile SummaryThis PR separates Windows updater/uninstaller concerns from the orchestration migration gate by reverting the NSIS
Confidence Score: 5/5Safe to merge. The Windows updater rollback is intentional, the All changes are either deliberate reversions to pre-#11271 stock behavior (NSIS macro, distinct-artifacts flag, gate claims) or targeted fixes with corresponding test coverage (terminal reveal identity using Files Needing Attention: No files require special attention.
|
| Filename | Overview |
|---|---|
| src/renderer/src/hooks/useIpcEvents.ts | Bug fix: passes tab.id (the actual created/found tab) instead of tabId (the requested tab arg) when constructing the terminal reveal identity, ensuring recovery callers receive the correct binding. |
| src/renderer/src/hooks/ipc-events-test-harness.ts | Test harness fix: setTabLayout default now mutates state.terminalLayoutsByTabId so subsequent reads in the same test reflect the updated layout, enabling identity assertions to work correctly. |
| src/renderer/src/hooks/mobile-terminal-reveal-tab-adoption.test.ts | Tests updated to assert the identity field in replyTerminalCreate responses; adds a revealIdentity helper for the expected shape. |
| config/nsis/daemon-host-uninstall.nsh | Restores stock NSIS uninstaller behavior by removing the entire customCheckAppRunning macro and its embedded PowerShell process-release logic introduced by #11271. |
| config/reliability-gates.jsonc | Removes installer-pair-proof.test.mjs from the orchestration reliability gate commands, test file list, and assertion refs; updates coverage notes and oracle to drop Windows distinct-artifact claims; moves Windows updater continuity to a separate gate. |
| tools/win-update-e2e/run.mjs | Removes --require-distinct-artifacts proof block and defers toInstaller resolution to just before the update step (after the window-watch has started); the existing concern about watch orphaning on resolution failure remains. |
| tools/win-update-e2e/installer-pair-proof.mjs | File deleted: SHA-256 distinctness proof helper is no longer needed now that the distinct-artifacts gate is removed from this migration. |
| tools/win-update-e2e/installer-pair-proof.test.mjs | File deleted: tests for the removed installer pair proof module. |
| tools/win-update-e2e/cli-args.mjs | Removes --require-distinct-artifacts flag from CLI argument parsing and help text. |
| .github/workflows/win-update-e2e.yml | Removes --require-distinct-artifacts from the CI invocation of the update e2e harness. |
| tools/win-update-e2e/README.md | Removes CLI table row for --require-distinct-artifacts and the corresponding known limitations section about the updater packaged journey. |
| docs/reference/plans/2026-07-28-orchestration-seamless-update-migration.md | Removes claims about installer process-ownership, exact executable release proofs, and the paired Windows updater/launcher test requirement; scopes the compatibility path description to the ask-resume behavior only. |
| src/main/cli/windows-launcher-asset.test.ts | Removes the test that asserted the NSIS uninstall script contained the PowerShell process-release macro, consistent with the rollback of that macro. |
Sequence Diagram
sequenceDiagram
participant Mobile as Mobile Client
participant IPC as useIpcEvents
participant Store as AppStore
participant API as window.api.ui
Mobile->>IPC: "onRequestTerminalCreate({requestId, worktreeId, tabId, leafId, ptyId})"
IPC->>Store: find or create tab (by worktreeId / tabId)
Store-->>IPC: "tab {id: tab.id}"
Note over IPC: Before fix: verifyTerminalRevealIdentity used tabId (request arg)<br/>After fix: uses tab.id (actual binding)
IPC->>Store: "verifyTerminalRevealIdentity({worktreeId, tabId: tab.id, leafId, ptyId})"
Store-->>IPC: "identity | undefined"
IPC->>API: "replyTerminalCreate({requestId, tabId: tab.id, title, identity})"
API-->>Mobile: terminal reveal reply with correct identity
Reviews (2): Last reviewed commit: "fix(terminal): attest adopted reveal ide..." | Re-trigger Greptile
📝 WalkthroughWalkthroughThe Windows update harness no longer accepts or executes distinct-installer artifact proof, and target installer resolution now occurs immediately before update installation. Reliability-gate and migration-plan text, test coverage, and harness documentation remove packaged Windows updater claims. The NSIS script now stops and removes the daemon directory only during genuine uninstall, with the previous process-check macro removed. Terminal creation now reports identities based on actual tab bindings, with corresponding test harness and expectations updated. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…#11405) * fix(windows): separate updater from orchestration migration * fix(terminal): attest adopted reveal identity --------- Co-authored-by: OrcaWin <[email protected]>
Summary
askcompatibility pathPackaged Windows updater continuity remains separate reliability work that needs its own real A/B artifact proof.
Validation
pnpm typecheckpnpm lintgit diff --check