From f764cf8fb7f516504af003979e377c997ccd4559 Mon Sep 17 00:00:00 2001 From: garrytan Date: Sun, 1 Nov 2026 00:35:59 +0000 Subject: [PATCH] test: the plan-mode re-render guard count includes the Gemini CLI host Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> --- test/plan-mode-preamble-render.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/plan-mode-preamble-render.test.ts b/test/plan-mode-preamble-render.test.ts index 24bedde3f..60d10c400 100644 --- a/test/plan-mode-preamble-render.test.ts +++ b/test/plan-mode-preamble-render.test.ts @@ -49,7 +49,7 @@ describe('every installed-skill render carries the plan-mode arg', () => { test('setup: a build (which renders without the arg) does not skip the host re-renders when the key is off', () => { const setup = fs.readFileSync(path.join(ROOT, 'setup'), 'utf8'); const guards = setup.split('\n').filter(line => /^if \[ "\$INSTALL_[A-Z]+" -eq 1 \] && .*NEEDS_BUILD/.test(line)); - expect(guards.length).toBe(5); + expect(guards.length).toBe(6); for (const line of guards) expect(line, line).toContain('{ [ "$NEEDS_BUILD" -eq 0 ] || [ -n "$_PLAN_MODE_ARG" ]; }'); });