From 4353207e349c25c316ef5ab587805df3e9c6e9f6 Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Fri, 6 Mar 2026 00:39:46 -0500 Subject: [PATCH] Auto-reply: preserve explicit deliver routes for internal webchat turns --- src/auto-reply/reply/dispatch-from-config.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/auto-reply/reply/dispatch-from-config.ts b/src/auto-reply/reply/dispatch-from-config.ts index f60d357ee3d..003a8f37435 100644 --- a/src/auto-reply/reply/dispatch-from-config.ts +++ b/src/auto-reply/reply/dispatch-from-config.ts @@ -217,7 +217,8 @@ export async function dispatchReplyFromConfig(params: { const currentSurface = providerChannel ?? surfaceChannel; const isInternalWebchatTurn = currentSurface === INTERNAL_MESSAGE_CHANNEL && - (surfaceChannel === INTERNAL_MESSAGE_CHANNEL || !surfaceChannel); + (surfaceChannel === INTERNAL_MESSAGE_CHANNEL || !surfaceChannel) && + ctx.ExplicitDeliverRoute !== true; const shouldRouteToOriginating = Boolean( !isInternalWebchatTurn && isRoutableChannel(originatingChannel) &&