fix(command-handler): add echo-dedup for WS commands to prevent Discord relay
This commit is contained in:
@@ -109,6 +109,8 @@ export function handleWSCommand(ctx: CommandHandlerContext, data: { text?: strin
|
||||
|
||||
// General text → send as user message to AG
|
||||
ctx.logToFile(`[WS-CMD] Sending text to AG: ${text.substring(0, 80)}`);
|
||||
// Mark for echo-dedup: step-probe will skip relaying this back to Discord
|
||||
ctx.recentDiscordSentTexts.set(text.trim(), Date.now());
|
||||
if (ctx.sdk) {
|
||||
try {
|
||||
ctx.sdk.cascade.sendPrompt(text);
|
||||
|
||||
Reference in New Issue
Block a user