fix(gbrain): classify PGLite connect locks

This commit is contained in:
Sinabina
2026-07-10 16:51:09 -07:00
parent 7c9df1c568
commit cbf8a2bec2
9 changed files with 74 additions and 9 deletions
+4
View File
@@ -893,6 +893,10 @@ BEFORE invoking the orchestrator:
slow (cold pooler connection, #1964). Tell the user in one line: "Engine
probe timed out (>15s) — proceeding; raise `GSTACK_GBRAIN_PROBE_TIMEOUT_MS`
if your pooler is slow." Do NOT treat this as a broken config.
- **`engine-locked`**: STOP. "The local PGLite database is busy, usually
because `gbrain serve` from a live Claude session owns it. Stop that process
or run `/sync-gbrain` outside the live session, then retry. This identifies
the conflict but does not remove PGLite's single-process limit."
- **`no-cli`**: STOP. "Local gbrain CLI not installed. Run `/setup-gbrain`
first."
- **`missing-config`** AND `gbrain_mcp_mode == "remote-http"`: tell the user