hermes-agent/apps/desktop/electron
srojk34 92e6d8c858 fix(desktop): dispose open PTY sessions in before-quit handler
The `before-quit` handler tears down the bootstrap controller, preview
watchers, and the Python backend but never disposes live PTY sessions.
When `app.quit()` proceeds to `FreeEnvironment()`, node-pty's
`ThreadSafeFunction::CallJS` callback fires on a half-torn-down
environment, throws a C++ exception that can no longer be caught, and
the process aborts (microsoft/node-pty#904).

Iterate `terminalSessions` and call `disposeTerminalSession()` (which
already calls `pty.kill()` + deletes the map entry) before killing the
backend, so the ThreadSafeFunctions are removed before teardown begins.

Closes #48335
2026-06-18 05:55:17 -07:00
..
backend-env.cjs
…
backend-env.test.cjs
…
backend-probes.cjs
…
backend-probes.test.cjs
…
backend-ready.cjs
…
bootstrap-platform.cjs
…
bootstrap-platform.test.cjs
…
bootstrap-runner.cjs
…
bootstrap-runner.test.cjs
…
connection-config.cjs fix(desktop): route global remote profile REST calls (#47011) 2026-06-15 23:24:55 -05:00
connection-config.test.cjs fix(desktop): route global remote profile REST calls (#47011) 2026-06-15 23:24:55 -05:00
dashboard-token.cjs
…
dashboard-token.test.cjs
…
desktop-uninstall.cjs
…
desktop-uninstall.test.cjs
…
entitlements.mac.inherit.plist
…
entitlements.mac.plist
…
fs-read-dir.cjs
…
fs-read-dir.test.cjs
…
gateway-ws-probe.cjs
…
gateway-ws-probe.test.cjs
…
git-root.cjs
…
git-root.test.cjs
…
git-worktrees.cjs
…
hardening.cjs
…
hardening.test.cjs
…
main.cjs fix(desktop): dispose open PTY sessions in before-quit handler 2026-06-18 05:55:17 -07:00
oauth-net-request.cjs
…
oauth-net-request.test.cjs
…
preload.cjs feat(desktop): open new sessions in compact windows 2026-06-15 20:59:57 -05:00
session-windows.cjs fix(desktop): keep streaming painting in unfocused secondary chat windows (#47919) 2026-06-17 14:40:13 -04:00
session-windows.test.cjs fix(desktop): keep streaming painting in unfocused secondary chat windows (#47919) 2026-06-17 14:40:13 -04:00
update-rebuild.cjs fix(desktop): retry the self-update rebuild once so the app relaunches (#48122) 2026-06-17 19:33:27 -05:00
update-rebuild.test.cjs fix(desktop): retry the self-update rebuild once so the app relaunches (#48122) 2026-06-17 19:33:27 -05:00
update-remote.cjs
…
update-remote.test.cjs
…
vscode-marketplace.cjs
…
vscode-marketplace.test.cjs
…
windows-child-process.test.cjs
…
windows-user-env.cjs fix(desktop): read HERMES_HOME from the Windows registry when env is stale (#46772) 2026-06-15 15:16:55 -05:00
windows-user-env.test.cjs fix(desktop): read HERMES_HOME from the Windows registry when env is stale (#46772) 2026-06-15 15:16:55 -05:00
workspace-cwd.cjs
…
workspace-cwd.test.cjs
…