diff --git a/web/hwlab-cloud-web/src/stores/workbench.ts b/web/hwlab-cloud-web/src/stores/workbench.ts index 9e143936..34b8b948 100644 --- a/web/hwlab-cloud-web/src/stores/workbench.ts +++ b/web/hwlab-cloud-web/src/stores/workbench.ts @@ -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;