From b51214ec3eacf6367a25e5c3861d199f6932b2ec Mon Sep 17 00:00:00 2001 From: FunJim Date: Fri, 3 Apr 2026 12:50:47 +0800 Subject: [PATCH] fix(discord): pass hydrated config to ack reactions to fix SecretRef resolution When extracting `reactMessageDiscord`, it defaulted to reading the raw config (which contains `SecretRef`s) if a hydrated `cfg` was omitted. We now pass the pre-resolved `cfg` context into the reaction options so the plugin SDK resolves the token via memory rather than the raw file. --- extensions/discord/src/monitor/message-handler.process.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/extensions/discord/src/monitor/message-handler.process.ts b/extensions/discord/src/monitor/message-handler.process.ts index c36abfa6dd1..79a285264b1 100644 --- a/extensions/discord/src/monitor/message-handler.process.ts +++ b/extensions/discord/src/monitor/message-handler.process.ts @@ -202,11 +202,15 @@ export async function processDiscordMessage( setReaction: async (emoji) => { await reactMessageDiscord(messageChannelId, message.id, emoji, { rest: discordRest, + cfg, + accountId, }); }, removeReaction: async (emoji) => { await removeReactionDiscord(messageChannelId, message.id, emoji, { rest: discordRest, + cfg, + accountId, }); }, };