mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-01 09:10:22 +00:00
Auto-reply: preserve explicit deliver routes for internal webchat turns
This commit is contained in:
@@ -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) &&
|
||||
|
||||
Reference in New Issue
Block a user