Repository navigation
revert: back out the Windows terminal update-survival chain (#7421→#7499) - #7505
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (18)
📝 WalkthroughWalkthroughChangesThis PR removes the daemon-host node.exe relocation infrastructure, node-pty native runtime relocation, and Windows hidden-console child-process patching. Affected modules include daemon-host-relocation, install-dir-runtime-relocation, node-pty-runtime-relocation, and windows-hidden-console-children, all deleted along with their tests. daemon-init.ts and src/main/index.ts are updated to remove references to these removed modules and associated tracing spans. electron-builder.config.cjs replaces daemon-host staging with packaged-runtime-node-modules helpers. The release-cut workflow drops a daemon-host node.exe verification step. The node-pty patch is updated to remove Spectre mitigation flags, add a ConPTY console-list fallback, and refactor Unix posix_spawn error handling with structured cleanup. Related tests are updated or removed accordingly. Sequence Diagram(s)Not applicable — changes are primarily removals and refactors without new user-facing interaction flows. Compact metadata
Related issues: None specified Related PRs: None specified Suggested labels: refactor, build, daemon, node-pty Suggested reviewers: None specified Poem ✨ 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 |
Records why the #7421->#7499 chain was reverted in #7505 (failure mechanisms, why verification missed them, non-negotiables), and lays out the from-scratch plan: proof harness first, relocate the daemon file closure out of the install dir while keeping the exact Electron runtime, fix adoption interactivity, and gate every phase on a packaged-artifact update test.
…#7421→stablyai#7499) (stablyai#7505) * Revert "Preload the daemon windowsHide shim via --require; wrap promisify custom (stablyai#7499)" This reverts commit b5710ee. * Revert "Hide console windows for children of the node.exe-hosted daemon (stablyai#7486)" This reverts commit 081cf2f. * Revert "fix(daemon): relocate daemon host image out of the install-dir kill zone (stablyai#7473)" This reverts commit 38c2e2e. * Revert "fix(pty): keep runtime dirs a surviving daemon still uses (stablyai#7463)" This reverts commit 01ad86a. * Revert "Relocate node-pty ConPTY runtime outside the Windows install dir (fixes update-time terminal loss) (stablyai#7421)" This reverts commit 24d599f.
Reverts the entire Windows terminal-relocation chain
Reverts, in reverse order: #7499, #7486, #7473, #7463, #7421.
The chain attempted to make terminal sessions survive Windows app updates by relocating the ConPTY runtime and then the daemon host image out of the installer's kill zone. Each step fixed its predecessor's regression and introduced a new one — rc.5 flashed console windows every ~3s, rc.6's fix was inert (bundler ordering + a promisify bypass), and rc.7's fix broke daemon startup outright ("Daemon exited during startup with code 1"). Reverting to the pre-#7421 baseline is the safe state.
What this restores
Verification
Note
#7456 (open, unmerged) is part of the same effort and should stay unmerged pending a ground-up design. A future attempt at update-survival will come as a fresh proposal with packaged-installer E2E validation before any release, not as another patch on this chain.