From 12b7b889315224850c395695dd39cc22400e2927 Mon Sep 17 00:00:00 2001 From: Garry Tan Date: Mon, 23 Mar 2026 23:55:55 -0700 Subject: [PATCH] docs: sync ARCHITECTURE.md with health-check-first ensureServer --- ARCHITECTURE.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ARCHITECTURE.md b/ARCHITECTURE.md index 8ffc16aa..3908a2ca 100644 --- a/ARCHITECTURE.md +++ b/ARCHITECTURE.md @@ -69,7 +69,7 @@ The server writes `.gstack/browse.json` (atomic write via tmp + rename, mode 0o6 { "pid": 12345, "port": 34567, "token": "uuid-v4", "startedAt": "...", "binaryVersion": "abc123" } ``` -The CLI reads this file to find the server. If the file is missing, stale, or the PID is dead, the CLI spawns a new server. +The CLI reads this file to find the server. If the file is missing or the server fails an HTTP health check, the CLI spawns a new server. On Windows, PID-based process detection is unreliable in Bun binaries, so the health check (GET /health) is the primary liveness signal on all platforms. ### Port selection