From c571628d891f0d038115de05af8207ca25b916f9 Mon Sep 17 00:00:00 2001 From: Maik Date: Mon, 26 Jan 2026 17:11:49 +0000 Subject: [PATCH] fix(mattermost): ensure replies create threads in channels (except DMs) --- extensions/mattermost/src/mattermost/monitor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/mattermost/src/mattermost/monitor.ts b/extensions/mattermost/src/mattermost/monitor.ts index 96c5971a5..7ee16f755 100644 --- a/extensions/mattermost/src/mattermost/monitor.ts +++ b/extensions/mattermost/src/mattermost/monitor.ts @@ -516,7 +516,7 @@ export async function monitorMattermostProvider(opts: MonitorMattermostOpts = {} }); const baseSessionKey = route.sessionKey; - const threadRootId = post.root_id?.trim() || undefined; + const threadRootId = post.root_id?.trim() || (kind !== "dm" ? post.id : undefined); const threadKeys = resolveThreadSessionKeys({ baseSessionKey, threadId: threadRootId,