From de256542aa5a9ae39fd706868217054efde28025 Mon Sep 17 00:00:00 2001 From: zocomputer Date: Sat, 26 Sep 2026 16:22:06 +0000 Subject: [PATCH] fix(discord): stop the bridge's replies from pinging anyone MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A reply's content can carry `@user`, `@here`, or `@everyone` text forwarded from the asker or echoed by the model, and Discord parses mentions in message content by default — so Computer's answer could ping a user or the whole channel. Send `allowed_mentions: { parse: [] }` on every part, matching the intent already encoded in the admission rules: the bridge answers a mention, it does not broadcast. --- channels/discord/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/channels/discord/index.ts b/channels/discord/index.ts index 78816e7..432b933 100644 --- a/channels/discord/index.ts +++ b/channels/discord/index.ts @@ -279,6 +279,7 @@ async function handleMention(raw: unknown): Promise { for (const [index, part] of parts.entries()) { await discordRequest("POST", `/channels/${admission.sessionChannelId}/messages`, { content: part, + allowed_mentions: { parse: [] }, ...(index === 0 ? { message_reference: {