diff --git a/src/discord/monitor/listeners.ts b/src/discord/monitor/listeners.ts index 770ae6d6c67b..8dbf03aec201 100644 --- a/src/discord/monitor/listeners.ts +++ b/src/discord/monitor/listeners.ts @@ -262,6 +262,7 @@ async function handleDiscordReactionEvent(params: { accountId: params.accountId, guildId: data.guild_id ?? undefined, peer: { kind: "channel", id: data.channel_id }, + parentPeer: parentId ? { kind: "channel", id: parentId } : undefined, }); enqueueSystemEvent(text, { sessionKey: route.sessionKey, diff --git a/src/discord/monitor/native-command.ts b/src/discord/monitor/native-command.ts index b0d080fa77cb..2d4b892ce8f6 100644 --- a/src/discord/monitor/native-command.ts +++ b/src/discord/monitor/native-command.ts @@ -712,6 +712,7 @@ async function dispatchDiscordCommandInteraction(params: { kind: isDirectMessage ? "dm" : isGroupDm ? "group" : "channel", id: isDirectMessage ? user.id : channelId, }, + parentPeer: threadParentId ? { kind: "channel", id: threadParentId } : undefined, }); const conversationLabel = isDirectMessage ? (user.globalName ?? user.username) : channelId; const ctxPayload = finalizeInboundContext({