fix(reply-context): label current reply target

This commit is contained in:
Ayaan Zaidi
2026-05-03 22:21:14 +05:30
parent 5bcc321343
commit 64e28a6ac9
3 changed files with 3 additions and 3 deletions

View File

@@ -62,7 +62,7 @@ export function buildCurrentTurnPromptContextSuffix(
};
return [
"",
"Replied message (untrusted, for context):",
"Reply target of current user message (untrusted, for context):",
"```json",
JSON.stringify(payload, null, 2),
"```",

View File

@@ -269,7 +269,7 @@ export function buildInboundUserContextPrefix(
const replyToBody = sanitizePromptBody(ctx.ReplyToBody);
if (replyToBody) {
blocks.push(
formatUntrustedJsonBlock("Replied message (untrusted, for context):", {
formatUntrustedJsonBlock("Reply target of current user message (untrusted, for context):", {
sender_label: normalizePromptMetadataString(ctx.ReplyToSender),
is_quote: ctx.ReplyToIsQuote === true ? true : undefined,
body: replyToBody,

View File

@@ -22,7 +22,7 @@ const INBOUND_META_SENTINELS = [
"Conversation info (untrusted metadata):",
"Sender (untrusted metadata):",
"Thread starter (untrusted, for context):",
"Replied message (untrusted, for context):",
"Reply target of current user message (untrusted, for context):",
"Forwarded message context (untrusted metadata):",
"Chat history since last reply (untrusted, for context):",
] as const;