Start the Windows bundle when the network is disconnected

The launcher asked /api/health through Invoke-WebRequest, which resolves the
system proxy or PAC script before it looks at the URL; with no network every
probe timed out and the launcher killed a healthy local process after two
minutes and reported that Luminary had not started. Both launchers now probe
127.0.0.1 over a raw TCP socket, which uses no proxy, DNS or certificate store,
and the app window is started with --no-proxy-server.
This commit is contained in:
2026-12-01 12:13:54 +00:00
parent 7aef2e37bf
commit a7ba0d2e87
4 changed files with 58 additions and 7 deletions
+7 -2
View File
@@ -142,8 +142,13 @@ create data dir → create log dir → pick port → spawn node.exe (hidden)
second or third attempt).
- The PowerShell launcher checks `$process.HasExited` first, so a crash reports
the log instead of waiting the full timeout.
- The browser is opened only after health succeeds; opening earlier shows a
connection error on slow machines.
- The probe is a raw HTTP request over TCP to `127.0.0.1`, in both launchers,
and never `Invoke-WebRequest` or a proxy-aware HTTP client. WinINET resolves
the system proxy (a PAC script or WPAD) before it looks at the URL, which can
block for far longer than the request timeout on a machine with no network;
the server was healthy the whole time, but every probe timed out and the
launcher reported that Luminary had not started. Start-up must never depend on
a connection, a proxy setting or DNS.
Logs are append-only: `logs\server.out.log` and `logs\server.err.log` from the
child, `logs\launcher.log` from the Go launcher. They fall back to