fix(reply-context): label current reply target · openclaw/openclaw@64e28a6
obviyus
·
2026-05-04
·
via Recent Commits to openclaw:main
File tree
agents/pi-embedded-runner/run
| Original file line number | Diff line number | Diff line change |
|---|
@@ -62,7 +62,7 @@ export function buildCurrentTurnPromptContextSuffix(
|
62 | 62 | }; |
63 | 63 | return [ |
64 | 64 | "", |
65 | | -"Replied message (untrusted, for context):", |
| 65 | +"Reply target of current user message (untrusted, for context):", |
66 | 66 | "```json", |
67 | 67 | JSON.stringify(payload, null, 2), |
68 | 68 | "```", |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -269,7 +269,7 @@ export function buildInboundUserContextPrefix(
|
269 | 269 | const replyToBody = sanitizePromptBody(ctx.ReplyToBody); |
270 | 270 | if (replyToBody) { |
271 | 271 | blocks.push( |
272 | | -formatUntrustedJsonBlock("Replied message (untrusted, for context):", { |
| 272 | +formatUntrustedJsonBlock("Reply target of current user message (untrusted, for context):", { |
273 | 273 | sender_label: normalizePromptMetadataString(ctx.ReplyToSender), |
274 | 274 | is_quote: ctx.ReplyToIsQuote === true ? true : undefined, |
275 | 275 | body: replyToBody, |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -22,7 +22,7 @@ const INBOUND_META_SENTINELS = [
|
22 | 22 | "Conversation info (untrusted metadata):", |
23 | 23 | "Sender (untrusted metadata):", |
24 | 24 | "Thread starter (untrusted, for context):", |
25 | | -"Replied message (untrusted, for context):", |
| 25 | +"Reply target of current user message (untrusted, for context):", |
26 | 26 | "Forwarded message context (untrusted metadata):", |
27 | 27 | "Chat history since last reply (untrusted, for context):", |
28 | 28 | ] as const; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。