Files
orca/.github
Jinwoo Hong d6983cbdf2 feat(daemon): relocate the Windows daemon host out of the install dir to survive updates
Phase 1 of Windows terminal update-survival. On win32 packaged, the
terminal daemon is now forked from a copy of the Electron runtime staged
under userData/daemon-host/<version> (run as node, ELECTRON_RUN_AS_NODE),
so its process image and all loaded modules live outside the install dir
the NSIS updater deletes and force-closes. Keeping the Electron binary
(not stock node.exe) means run-as-node behavior is byte-identical — no
console flashing, asar-correct — which the reverted #7473 attempt broke.

Proven on CI by tools/daemon-relocation-spike: a copied Orca.exe boots
the daemon, drives a real ConPTY session, and holds zero loaded-module
handles into the install dir, on the minimal file set.

- daemon-host-relocation.ts: materialize (atomic staging + marker-last +
  fail-open), version-keyed dir, PID-pinned GC of old versions.
- daemon-init.ts: fork from the relocated exe/entry when available;
  byte-identical in-dir fork otherwise (non-win32, dev, or fail-open).
- Adoption-neutral: protocol/pipe unchanged; a new app still adopts an
  old in-dir daemon.
- win-update-survival-e2e.yml: builds a branch installer and runs the
  harness with --expect survival to prove sessions survive an update.
2026-07-06 20:54:36 -04:00
..
2026-05-30 13:09:17 -07:00
2026-06-01 23:38:15 -07:00