mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-11 12:31:41 +00:00
fix(auto-reply): prevent sender spoofing in group prompts
This commit is contained in:
@@ -10,7 +10,6 @@ export async function applySessionHints(params: {
|
||||
sessionKey?: string;
|
||||
storePath?: string;
|
||||
abortKey?: string;
|
||||
messageId?: string;
|
||||
}): Promise<string> {
|
||||
let prefixedBodyBase = params.baseBody;
|
||||
const abortedHint = params.abortedLastRun
|
||||
@@ -41,10 +40,5 @@ export async function applySessionHints(params: {
|
||||
}
|
||||
}
|
||||
|
||||
const messageIdHint = params.messageId?.trim() ? `[message_id: ${params.messageId.trim()}]` : "";
|
||||
if (messageIdHint) {
|
||||
prefixedBodyBase = `${prefixedBodyBase}\n${messageIdHint}`;
|
||||
}
|
||||
|
||||
return prefixedBodyBase;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user