From 4924be8bc2a74d565a5618362f77eda37b23987c Mon Sep 17 00:00:00 2001 From: garrytan Date: Sat, 31 Oct 2026 19:12:57 +0000 Subject: [PATCH] test(setup-gbrain): the loopback Path 4 fixture over a local PGLite now reads local-stdio (#3539) The owned Path 4 fixture registers its fake brain at 127.0.0.1 and then runs gbrain init --pglite in the same HOME. Under the #3539 rule a loopback HTTP entry over this machine's own engine is a local brain, so detect reports local-stdio there. free-suite (7) on PR #3727 (run 41231145675) failed on the old remote-http expectation. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> --- test/setup-gbrain-fixture.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/setup-gbrain-fixture.test.ts b/test/setup-gbrain-fixture.test.ts index 5594e17a1..ac30fdf8e 100644 --- a/test/setup-gbrain-fixture.test.ts +++ b/test/setup-gbrain-fixture.test.ts @@ -114,7 +114,7 @@ describe('setup-gbrain owned Path 4 fixture', () => { expect(registration.exitCode).toBe(0); const after = await command(detectPath, [], env); expect(after.exitCode).toBe(0); - expect(JSON.parse(after.stdout).gbrain_mcp_mode).toBe('remote-http'); + expect(JSON.parse(after.stdout).gbrain_mcp_mode).toBe('local-stdio'); expect(JSON.parse(after.stdout).gbrain_engine).toBe('pglite'); expect(JSON.parse(after.stdout).gbrain_local_status).toBe('ok'); expect((await command(path.join(fixture.bin, 'claude'), ['mcp', 'remove', 'gbrain'], env)).exitCode).toBe(0);