From 26ced25a8facd7c0cfb244476e2b8d95fa484fd5 Mon Sep 17 00:00:00 2001 From: Colin McDonnell Date: Mon, 19 Jan 2026 16:09:18 +0000 Subject: [PATCH] add getIssue utility and use actual issue metadata in trigger page, fix getPullRequest caching and user prompt quoting --- entry | 5 +++-- utils/instructions.ts | 6 ++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/entry b/entry index bd8b40e..2e08eb0 100755 --- a/entry +++ b/entry @@ -138028,7 +138028,8 @@ function resolveInstructions(ctx) { event: ctx.payload.event }); const runtime = buildRuntimeContext(ctx); - const user = ctx.payload.prompt.split("\n").map((line) => `> ${line}`).join("\n"); + const user = ctx.payload.prompt; + const userQuoted = user.split("\n").map((line) => `> ${line}`).join("\n"); const system = `*********************************************** ************* SYSTEM INSTRUCTIONS ************* *********************************************** @@ -138107,7 +138108,7 @@ ${system} ************* USER PROMPT ************* -${user} +${userQuoted} ************* EVENT DATA ************* diff --git a/utils/instructions.ts b/utils/instructions.ts index 7826aa0..fbe7bb0 100644 --- a/utils/instructions.ts +++ b/utils/instructions.ts @@ -82,7 +82,9 @@ export function resolveInstructions(ctx: InstructionsContext): ResolvedInstructi const runtime = buildRuntimeContext(ctx); - const user = ctx.payload.prompt + const user = ctx.payload.prompt; + + const userQuoted = user .split("\n") .map((line) => `> ${line}`) .join("\n"); @@ -166,7 +168,7 @@ ${system} ************* USER PROMPT ************* -${user} +${userQuoted} ************* EVENT DATA *************