From da12e3e0350acef2e067479f37fe395b21d73947 Mon Sep 17 00:00:00 2001 From: wcqqq1214 Date: Sun, 26 Jul 2026 18:18:24 +0800 Subject: [PATCH] fix: use current provider selection when regenerating chat message Basic retry sent an empty provider, so the backend fell back to the stale persisted provider. Fall back to the current UI selection, matching send behavior. Closes #9400 --- dashboard/src/components/chat/Chat.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dashboard/src/components/chat/Chat.vue b/dashboard/src/components/chat/Chat.vue index 43f9a6c2a1..0810cc929d 100644 --- a/dashboard/src/components/chat/Chat.vue +++ b/dashboard/src/components/chat/Chat.vue @@ -1459,11 +1459,12 @@ async function handleRegenerateMessage( ) { if (!currSessionId.value || isUserMessage(message)) return; message.threads = []; + const effectiveSelection = selection ?? getSelectedProviderSelection(); await regenerateMessage( currSessionId.value, message, - selection?.providerId || "", - selection?.modelName || "", + effectiveSelection?.providerId || "", + effectiveSelection?.modelName || "", enableStreaming.value, ); }