hermes-agent/apps/desktop/electron
ethernet 4527943e91 test(desktop): extract hiddenWindowsChildOptions + stopBackendChild for real unit tests
windows-child-process.test.ts regexed main.ts and bootstrap-runner.ts
source text to check that spawn/execFileSync call sites wrapped their
options with hiddenWindowsChildOptions(), and that backend teardown
chose the right kill strategy.

Extract both into dependency-free sibling modules:
- windows-child-options.ts: hiddenWindowsChildOptions(options,
isWindows)
  now takes isWindows as an injectable param (defaults to the real
  platform check). main.ts and bootstrap-runner.ts both import the same
  implementation instead of each defining their own copy.
- backend-child.ts: stopBackendChild(child, deps) with
forceKillProcessTree
  and isWindows injected, so the SIGTERM-vs-tree-kill branching is
directly
  testable with a fake child + a spy.

windows-child-options.test.ts replaces windows-child-process.test.ts,
calling the real functions with fake spawn/execFileSync-shaped objects
and asserting on the actual returned options / kill call.
2026-07-13 17:22:17 -04:00
..
backend-child.ts test(desktop): extract hiddenWindowsChildOptions + stopBackendChild for real unit tests 2026-07-13 17:22:17 -04:00
backend-command.test.ts feat(desktop): ts-ify everything 2026-07-08 16:24:16 -07:00
backend-command.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
backend-env.test.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
backend-env.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
backend-probes.test.ts feat(desktop): ts-ify everything 2026-07-08 16:24:16 -07:00
backend-probes.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
backend-ready.test.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
backend-ready.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
bootstrap-platform.test.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
bootstrap-platform.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
bootstrap-runner.test.ts fix(desktop): prevent bootstrap stale commit repin on existing checkouts 2026-07-10 02:29:58 -05:00
bootstrap-runner.ts test(desktop): extract hiddenWindowsChildOptions + stopBackendChild for real unit tests 2026-07-13 17:22:17 -04:00
connection-config.test.ts feat(desktop): Hermes Cloud connection mode — one sign-in, agent discovery, silent connect 2026-07-10 01:37:43 -05:00
connection-config.ts feat(desktop): Hermes Cloud connection mode — one sign-in, agent discovery, silent connect 2026-07-10 01:37:43 -05:00
dashboard-token.test.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
dashboard-token.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
desktop-uninstall.test.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
desktop-uninstall.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
embed-referer.ts feat(desktop): ts-ify everything 2026-07-08 16:24:16 -07:00
entitlements.mac.inherit.plist fix(desktop): inherit microphone entitlement for macOS helpers 2026-06-03 07:32:00 +07:00
entitlements.mac.plist Add Hermes desktop app (#20059) 2026-05-31 17:46:56 -05:00
fs-read-dir.test.ts feat(desktop): ts-ify everything 2026-07-08 16:24:16 -07:00
fs-read-dir.ts feat(desktop): bridge WSL paths for a Windows host + WSL backend 2026-07-12 05:32:54 -04:00
gateway-ws-probe.test.ts feat(desktop): ts-ify everything 2026-07-08 16:24:16 -07:00
gateway-ws-probe.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
git-repo-scan.ts feat(desktop): ts-ify everything 2026-07-08 16:24:16 -07:00
git-review-ops.test.ts feat(desktop): ts-ify everything 2026-07-08 16:24:16 -07:00
git-review-ops.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
git-root.test.ts feat(desktop): ts-ify everything 2026-07-08 16:24:16 -07:00
git-root.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
git-worktree-ops.test.ts feat(desktop): base-branch picker for new worktree dialog 2026-07-13 14:53:34 -04:00
git-worktree-ops.ts feat(desktop): auto-fetch remote base branch before worktree add 2026-07-13 14:53:34 -04:00
hardening.test.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
hardening.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
link-title-window.test.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
link-title-window.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
main.ts test(desktop): extract hiddenWindowsChildOptions + stopBackendChild for real unit tests 2026-07-13 17:22:17 -04:00
oauth-net-request.test.ts feat(desktop): ts-ify everything 2026-07-08 16:24:16 -07:00
oauth-net-request.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
oauth-session-request.test.ts feat(desktop): ts-ify everything 2026-07-08 16:24:16 -07:00
preload.ts feat(desktop): base-branch picker for new worktree dialog 2026-07-13 14:53:34 -04:00
profile-delete-respawn.test.ts feat(desktop): ts-ify everything 2026-07-08 16:24:16 -07:00
session-windows.test.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
session-windows.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
titlebar-overlay-width.test.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
titlebar-overlay-width.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
update-count.test.ts feat(desktop): ts-ify everything 2026-07-08 16:24:16 -07:00
update-count.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
update-marker.test.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
update-marker.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
update-rebuild.test.ts feat(desktop): ts-ify everything 2026-07-08 16:24:16 -07:00
update-rebuild.ts feat(desktop): ts-ify everything 2026-07-08 16:24:16 -07:00
update-relaunch.test.ts feat(dev): add isolated sandbox script for local dev 2026-07-10 18:51:49 -04:00
update-relaunch.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
update-remote.test.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
update-remote.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
vscode-marketplace.test.ts feat(desktop): ts-ify everything 2026-07-08 16:24:16 -07:00
vscode-marketplace.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
window-state.test.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
window-state.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
windows-child-options.test.ts test(desktop): extract hiddenWindowsChildOptions + stopBackendChild for real unit tests 2026-07-13 17:22:17 -04:00
windows-child-options.ts test(desktop): extract hiddenWindowsChildOptions + stopBackendChild for real unit tests 2026-07-13 17:22:17 -04:00
windows-child-process.test.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
windows-hermes-resolution.test.ts feat(desktop): ts-ify everything 2026-07-08 16:24:16 -07:00
windows-user-env.test.ts feat(desktop): ts-ify everything 2026-07-08 16:24:16 -07:00
windows-user-env.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
workspace-cwd.test.ts feat(desktop): ts-ify everything 2026-07-08 16:24:16 -07:00
workspace-cwd.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
wsl-clipboard-image.test.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
wsl-clipboard-image.ts cleanup(desktop): npm run fix for fmtting 2026-07-08 16:24:16 -07:00
wsl-path-bridge.test.ts feat(desktop): bridge WSL paths for a Windows host + WSL backend 2026-07-12 05:32:54 -04:00
wsl-path-bridge.ts feat(desktop): bridge WSL paths for a Windows host + WSL backend 2026-07-12 05:32:54 -04:00
zoom.test.ts fix(desktop): re-apply UI zoom on show/restore, scoped to chat windows 2026-07-10 02:13:10 -05:00
zoom.ts fix(desktop): re-apply UI zoom on show/restore, scoped to chat windows 2026-07-10 02:13:10 -05:00