diff --git a/packages/server/src/utils/buildAgentflow.ts b/packages/server/src/utils/buildAgentflow.ts index d9267519f..9c7e8fc32 100644 --- a/packages/server/src/utils/buildAgentflow.ts +++ b/packages/server/src/utils/buildAgentflow.ts @@ -1297,7 +1297,7 @@ export const executeAgentFlow = async ({ const uploads = incomingInput.uploads const userMessageDateTime = new Date() const chatflowid = chatflow.id - const sessionId = incomingInput.sessionId ?? chatId + const sessionId = overrideConfig.sessionId || chatId const humanInput: IHumanInput | undefined = incomingInput.humanInput // Validate history schema if provided