fix(discord): replyToMode first behaviour

This commit is contained in:
CHISEN Kaoru
2026-02-07 08:10:58 +00:00
committed by Shadow
parent 4b3c9c9c5a
commit e25ae55879
4 changed files with 46 additions and 9 deletions

View File

@@ -89,8 +89,11 @@ function createSlackReplyReferencePlanner(params: {
messageTs: string | undefined;
hasReplied?: boolean;
}) {
// When already inside a Slack thread, always stay in it regardless of
// replyToMode — thread_ts is required to keep messages in the thread.
const effectiveMode = params.incomingThreadTs ? "all" : params.replyToMode;
return createReplyReferencePlanner({
replyToMode: params.replyToMode,
replyToMode: effectiveMode,
existingId: params.incomingThreadTs,
startId: params.messageTs,
hasReplied: params.hasReplied,