From 6e3f47fe9ae90d97eac332311730b1e8a2268aec Mon Sep 17 00:00:00 2001 From: garrytan Date: Sun, 1 Nov 2026 21:36:46 +0000 Subject: [PATCH] test: Codex preamble expectation follows the plain start lookup (GST-882) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> --- test/gen-skill-docs.test.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/gen-skill-docs.test.ts b/test/gen-skill-docs.test.ts index b6296dc27..c932dd13d 100644 --- a/test/gen-skill-docs.test.ts +++ b/test/gen-skill-docs.test.ts @@ -3125,9 +3125,11 @@ describe('Codex generation (--host codex)', () => { expect(content).toContain('_r=$(git rev-parse --show-toplevel 2>/dev/null)/.agents/skills/gstack'); expect(content).toContain('_r=${CODEX_HOME:-~/.codex}/skills/gstack'); // Phase 1/2: config reads moved into gstack-skill-start — the fence itself - // is the bin asset the preamble must resolve through $GSTACK_BIN, and the - // question-preference runtime call still resolves the same way. - expect(content).toContain('$GSTACK_BIN/gstack-skill-start'); + // is the bin asset the preamble resolves through the same roots, as plain + // lines (GST-882), and the question-preference runtime call resolves + // through $GSTACK_BIN. + expect(content).toContain('[ -d "$GSTACK_ROOT/bin" ]||GSTACK_ROOT=${CODEX_HOME:-~/.codex}/skills/gstack'); + expect(content).toContain('"$GSTACK_ROOT/bin/gstack-skill-start"'); expect(content).toContain('$GSTACK_BIN/gstack-question-preference'); // The upgrade-skill doc reference moved into the script's upgrade-flow // block, resolved $0-relative ($_ROOT_DIR) — host-neutral by construction,