openclaw/extensions/mattermost/src
Mathias Nagler e8a162d3d8
fix(mattermost): prevent duplicate messages when block streaming + threading are active (#41362)
* fix(mattermost): prevent duplicate messages when block streaming + threading are active

Remove replyToId from createBlockReplyPayloadKey so identical content is
deduplicated regardless of threading target. Add explicit threading dock
to the Mattermost plugin with resolveReplyToMode reading from config
(default "all"), and add replyToMode to the Mattermost config schema.

Fixes #41219

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix(mattermost): address PR review — per-account replyToMode and test clarity

Read replyToMode from the merged per-account config via
resolveMattermostAccount so account-level overrides are honored in
multi-account setups. Add replyToMode to MattermostAccountConfig type.
Rename misleading test to clarify it exercises shouldDropFinalPayloads
short-circuit, not payload key dedup.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Replies: keep block-pipeline reply targets distinct

* Tests: cover block reply target-aware dedupe

* Update CHANGELOG.md

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
2026-03-12 03:15:17 -04:00
..
mattermost fix(mattermost): prevent duplicate messages when block streaming + threading are active (#41362) 2026-03-12 03:15:17 -04:00
channel.test.ts fix(mattermost): read replyTo param in plugin handleAction send (#41176) 2026-03-10 13:19:54 +05:30
channel.ts fix(mattermost): prevent duplicate messages when block streaming + threading are active (#41362) 2026-03-12 03:15:17 -04:00
config-schema.test.ts
config-schema.ts fix(mattermost): prevent duplicate messages when block streaming + threading are active (#41362) 2026-03-12 03:15:17 -04:00
group-mentions.test.ts
group-mentions.ts
normalize.test.ts CI: restore main detect-secrets scan (#38438) 2026-03-07 10:06:35 -08:00
normalize.ts
onboarding-helpers.ts refactor: share onboarding account id resolution prelude 2026-03-07 21:09:26 +00:00
onboarding.status.test.ts
onboarding.ts refactor: unify onboarding secret-input prompt state wiring 2026-03-07 23:27:51 +00:00
runtime.ts refactor: harden browser runtime profile handling 2026-03-09 00:25:43 +00:00
secret-input.ts refactor(extensions): share secret input schema builder 2026-03-07 17:05:23 +00:00
types.ts fix(mattermost): prevent duplicate messages when block streaming + threading are active (#41362) 2026-03-12 03:15:17 -04:00