fix: preserve off-mode semantics in auto reply threading (#14976) (thanks @Diaspar4u)

This commit is contained in:
Peter Steinberger
2026-02-13 05:20:47 +01:00
parent 3d89f0f14a
commit 79a38858ae
5 changed files with 44 additions and 9 deletions

View File

@@ -376,9 +376,11 @@ export async function runAgentTurnWithFallback(params: {
text,
mediaUrls: payload.mediaUrls,
mediaUrl: payload.mediaUrls?.[0],
replyToId: payload.replyToId,
replyToId:
payload.replyToId ??
(payload.replyToCurrent === false ? undefined : currentMessageId),
replyToTag: payload.replyToTag,
replyToCurrent: true,
replyToCurrent: payload.replyToCurrent,
},
currentMessageId,
);