mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 18:10:45 +00:00
fix(reply-context): label current reply target
This commit is contained in:
@@ -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),
|
||||
"```",
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user