fix: fetch routed workbench session details (#1322)

This commit is contained in:
Lyon
2026-06-16 09:45:10 +08:00
committed by GitHub
parent 40067e0957
commit fdb11c2ef0
+1 -1
View File
@@ -133,7 +133,7 @@ export const useWorkbenchStore = defineStore("workbench", () => {
const current = await ensureWorkspace();
if (!current) return false;
const existing = visibleConversations.value.find((conversation) => conversation.conversationId === normalized) ?? null;
if (existing) {
if (existing && (existing.messages?.length ?? 0) > 0) {
if (activeConversationId.value === normalized && messages.value.length > 0) return true;
await selectConversation(existing);
return activeConversationId.value === normalized;