mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 12:11:23 +00:00
fix(auto-reply): prevent sender spoofing in group prompts
This commit is contained in:
@@ -17,6 +17,15 @@ export type MsgContext = {
|
||||
* Should use real newlines (`\n`), not escaped `\\n`.
|
||||
*/
|
||||
BodyForAgent?: string;
|
||||
/**
|
||||
* Recent chat history for context (untrusted user content). Prefer passing this
|
||||
* as structured context blocks in the user prompt rather than rendering plaintext envelopes.
|
||||
*/
|
||||
InboundHistory?: Array<{
|
||||
sender: string;
|
||||
body: string;
|
||||
timestamp?: number;
|
||||
}>;
|
||||
/**
|
||||
* Raw message body without structural context (history, sender labels).
|
||||
* Legacy alias for CommandBody. Falls back to Body if not set.
|
||||
|
||||
Reference in New Issue
Block a user