mirror of
https://github.com/garrytan/gstack.git
synced 2026-06-18 15:50:11 +02:00
fix(make-pdf): move setup before preamble footer
This commit is contained in:
@@ -58,6 +58,7 @@ import { generateContextHealth } from './preamble/generate-context-health';
|
||||
// Tier 3+ repo mode + search
|
||||
import { generateRepoModeSection } from './preamble/generate-repo-mode-section';
|
||||
import { generateSearchBeforeBuildingSection } from './preamble/generate-search-before-building';
|
||||
import { generateMakePdfSetup } from './make-pdf';
|
||||
|
||||
// Standalone export used directly by the resolver registry
|
||||
export { generateTestFailureTriage } from './preamble/generate-test-failure-triage';
|
||||
@@ -81,7 +82,8 @@ export function generatePreamble(ctx: TemplateContext): string {
|
||||
}
|
||||
const sections = [
|
||||
generatePreambleBash(ctx),
|
||||
// Plan-mode-skill semantics at position 1: after bash (so _SESSION_ID /
|
||||
...(ctx.skillName === 'make-pdf' ? [generateMakePdfSetup(ctx)] : []),
|
||||
// Plan-mode-skill semantics stays near the top: after bash (so _SESSION_ID /
|
||||
// _BRANCH / _TEL env vars are live) and before all onboarding gates so
|
||||
// models read the authoritative "AskUserQuestion satisfies plan mode's
|
||||
// end-of-turn" rule before any other instruction. Renders for all skills
|
||||
|
||||
Reference in New Issue
Block a user