From 36a810be8ae429969bf4c10b83e11331804c0a5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C3=82CHES?= Date: Sat, 14 Mar 2026 17:55:05 -0600 Subject: [PATCH] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- src/resources/extensions/gsd/prompt-loader.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/resources/extensions/gsd/prompt-loader.ts b/src/resources/extensions/gsd/prompt-loader.ts index cc51b3ad4..69395fa9d 100644 --- a/src/resources/extensions/gsd/prompt-loader.ts +++ b/src/resources/extensions/gsd/prompt-loader.ts @@ -82,9 +82,11 @@ export function loadTemplate(name: string): string { } /** - * Load a template and wrap it with a labeled header for inlining into prompts. + * Load a template and wrap it with a labeled footer for inlining into prompts. + * The template body is emitted first so that any YAML frontmatter (---) remains + * at the first non-whitespace line of the template content. */ export function inlineTemplate(name: string, label: string): string { const content = loadTemplate(name); - return `### Output Template: ${label}\nSource: \`templates/${name}.md\`\n\n${content}`; + return `${content}\n\n### Output Template: ${label}\nSource: \`templates/${name}.md\``; }