Repository navigation
fix(emulator): launch scrcpy through the background process wrapper - #35566
Conversation
1c2ee0e to
c659d42
Compare
Walkthrough
Priority: Merge Risk:
|
[Low impact] The PR appears safe to merge; no actionable issues were found. SummaryRoutes the long-running scrcpy server through
Reviews (4) · Last reviewed commit: "fix(emulator): launch scrcpy through the..." · Reviewed by Greptile |
f9c9fe4 to
6b73552
Compare
6b73552 to
a70ca32
Compare
LoC: +5/-2
Launch the long-running scrcpy ADB server through the existing
spawnProcesswrapper. Its direct Node spawn omitted Orca's Windows console-hiding policy. The wrapper supplieswindowsHide: true,shell: falseand existing argument handling while preserving argv, ignored stdin, piped output and the existing ChildProcess lifecycle.Stacked on #35531; reconcile/merge it first, then retarget/rebase main and revalidate. Preserve #35518 socket retirement and adjacent SDK/network guards.
Validation: 33 emulator tests/three suites plus six existing process-host resolver policy tests pass; strict focused TypeScript and all five normal hook tasks pass. Real Node26.8.1 native spawn/pipes/TCP, seven baseline/21 final exact source inputs, ten groups per arm at N1/10: all 55 final launches emit the hiding/shell flags vs zero before. Both arms drain 4,325,629 bytes and emit 55 metadata/close callbacks; all 110 helper PIDs, socket peers, servers and profiles released. Final executed bundle rebuilt byte-identically.
This proves emitted flags on Linux and existing modeled win32/darwin/linux resolver policy. Actual Windows console/focus behavior, macOS, native ADB/device, Electron UI and CPU/RSS/latency remain untested. No new tests merely asserting the wrapper call; no installs or native ABI repair.
Aggregate queued after #35561; no pass or Claude takeover claimed. Frozen head
1c2ee0ea5c293ba12ca8863fb9bd4293bd7cd810, parent955c6980c229ac98bea68d9e3da98622eadd9f93. Evidence/home/neil/.local/state/orca-electron-audit/scrcpy-background-process-spawn/report.md; 40-payload seal00598a483e6ac8a252dc21b986bd34c67fca1ce5fbb3fd7f4efb8d8b67afd5dc.