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,