From d31640a7a27ea1c1ddca28b99e5e42702b8a48bc Mon Sep 17 00:00:00 2001 From: Hz_ Date: Thu, 2 Jul 2026 17:42:33 +0800 Subject: [PATCH] fix(go): shared chatbot session id length (#16559) ## Summary - use the project-standard 32-character ID generator when creating shared chatbot sessions - fix MySQL insert failures caused by writing 36-character UUID strings into `api_4_conversation.id` --- internal/service/bot_completion.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/service/bot_completion.go b/internal/service/bot_completion.go index 3677eb39c6..e61172ec66 100644 --- a/internal/service/bot_completion.go +++ b/internal/service/bot_completion.go @@ -40,7 +40,6 @@ import ( "net/http" "time" - "github.com/google/uuid" "go.uber.org/zap" "ragflow/internal/agent/canvas" @@ -284,7 +283,7 @@ func (s *BotService) ChatbotCompletion( }, }) session = &entity.API4Conversation{ - ID: uuid.NewString(), + ID: common.GenerateUUID(), DialogID: dialogID, UserID: tenantID, Message: seedMsg,