fix: align slack thread footer metadata with reply semantics (#14625) (thanks @bennewton999)

This commit is contained in:
Peter Steinberger
2026-02-13 05:16:24 +01:00
parent 2b9d5e6e30
commit a43136c85e
3 changed files with 78 additions and 4 deletions

View File

@@ -399,9 +399,10 @@ export async function prepareSlackMessage(params: {
GroupSubject: isRoomish ? roomLabel : undefined,
From: slackFrom,
}) ?? (isDirectMessage ? senderName : roomLabel);
const threadInfo = message.thread_ts
? ` thread_ts: ${message.thread_ts}${message.parent_user_id ? ` parent_user: ${message.parent_user_id}` : ""}`
: "";
const threadInfo =
isThreadReply && threadTs
? ` thread_ts: ${threadTs}${message.parent_user_id ? ` parent_user_id: ${message.parent_user_id}` : ""}`
: "";
const textWithId = `${rawBody}\n[slack message id: ${message.ts} channel: ${message.channel}${threadInfo}]`;
const storePath = resolveStorePath(ctx.cfg.session?.store, {
agentId: route.agentId,