fix: thread replyToId and threadId through message tool send action (#14948)

* fix: thread replyToId and threadId through message tool send action

* fix: omit replyToId/threadId from gateway send params

* fix: add threading seam regression coverage (#14948) (thanks @mcaxtr)

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
This commit is contained in:
Marcus Castro
2026-02-13 00:55:20 -03:00
committed by GitHub
parent 8c920b9a18
commit 13bfd9da83
6 changed files with 127 additions and 0 deletions

View File

@@ -68,6 +68,8 @@ export async function executeSendAction(params: {
mediaUrls?: string[];
gifPlayback?: boolean;
bestEffort?: boolean;
replyToId?: string;
threadId?: string | number;
}): Promise<{
handledBy: "plugin" | "core";
payload: unknown;
@@ -117,6 +119,8 @@ export async function executeSendAction(params: {
mediaUrls: params.mediaUrls,
channel: params.ctx.channel || undefined,
accountId: params.ctx.accountId ?? undefined,
replyToId: params.replyToId,
threadId: params.threadId,
gifPlayback: params.gifPlayback,
dryRun: params.ctx.dryRun,
bestEffort: params.bestEffort ?? undefined,