From 0ad8536d463f32b90047eee14c2eb47ec2351a36 Mon Sep 17 00:00:00 2001 From: HAL Date: Sat, 14 Feb 2026 06:02:42 -0600 Subject: [PATCH] fix(reply): honour explicit [[reply_to_*]] tags when replyToMode is off When replyToMode is 'off', explicit [[reply_to_current]] / [[reply_to:]] tags from the LLM were being stripped along with auto-injected reply threading. Change the default for allowTagsWhenOff from false to true so explicit tags are honoured on all channels, not just Slack. Channels can still opt out by setting threading.allowTagsWhenOff to false in their dock definition. Fixes #16155 --- src/auto-reply/reply/reply-threading.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/auto-reply/reply/reply-threading.ts b/src/auto-reply/reply/reply-threading.ts index e745f165617..cfc6f3a7334 100644 --- a/src/auto-reply/reply/reply-threading.ts +++ b/src/auto-reply/reply/reply-threading.ts @@ -54,9 +54,11 @@ export function createReplyToModeFilterForChannel( channel?: OriginatingChannelType, ) { const provider = normalizeChannelId(channel); + // Always honour explicit [[reply_to_*]] tags even when replyToMode is "off". + // Per-channel opt-out is possible but the safe default is to allow them. const allowTagsWhenOff = provider - ? Boolean(getChannelDock(provider)?.threading?.allowTagsWhenOff) - : false; + ? (getChannelDock(provider)?.threading?.allowTagsWhenOff ?? true) + : true; return createReplyToModeFilter(mode, { allowTagsWhenOff, });