Commit aeec080
Jack (OpenClaw)
fix(mattermost): restore threadRootId priority in resolveMattermostEffectiveReplyToId
Commit aaba1ae ("honor replyToMode off for threaded messages") added a
replyToMode !== "off" guard to the threadRootId branch in
resolveMattermostEffectiveReplyToId(). This conflates two concerns:
1. Session routing (should DM threads fork their own session?)
2. Reply delivery (should the bot reply inside the existing thread?)
replyToMode controls (1), but the guard also kills (2): when replyToMode
is "off" (the default for DMs), effectiveReplyToId becomes undefined,
so all downstream call sites (typing indicators, reply delivery via
resolveMattermostReplyRootId) lose the thread root. The bot then either
posts to the main channel or gets a 400 Invalid RootId error.
Fix: remove the replyToMode guard so threadRootId always flows through.
replyToMode still controls session forking via
resolveMattermostThreadSessionContext.
Fixes #309771 parent cc7f18d commit aeec080
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
| 178 | + | |
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
| |||
0 commit comments