From 8276e5050a36dcbff1f73ddd983b56bf831566c1 Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Sun, 12 Apr 2026 11:33:53 -0400 Subject: [PATCH] fix(chat): let backend auto-generate conversation titles MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit KnowledgeView and WorkspaceView were passing explicit titles ("Knowledge chat", "Project — Workspace") to createConversation(), which prevented the backend's auto-title generation from firing (condition: `not conv_title`). Pass no title so the background title generator names conversations after their first message. Co-Authored-By: Claude Opus 4.6 --- frontend/src/views/KnowledgeView.vue | 2 +- frontend/src/views/WorkspaceView.vue | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/src/views/KnowledgeView.vue b/frontend/src/views/KnowledgeView.vue index 2c0319c..a92e243 100644 --- a/frontend/src/views/KnowledgeView.vue +++ b/frontend/src/views/KnowledgeView.vue @@ -247,7 +247,7 @@ const chatCollapsed = ref(false); const chatConvId = ref(null); async function onMinichatSubmit(payload: { content: string; contextNoteId?: number }) { if (!chatConvId.value) { - const conv = await chatStore.createConversation("Knowledge chat"); + const conv = await chatStore.createConversation(); chatConvId.value = conv.id; await chatStore.fetchConversation(conv.id); } else if (chatStore.currentConversation?.id !== chatConvId.value) { diff --git a/frontend/src/views/WorkspaceView.vue b/frontend/src/views/WorkspaceView.vue index 9df875b..a8fb69b 100644 --- a/frontend/src/views/WorkspaceView.vue +++ b/frontend/src/views/WorkspaceView.vue @@ -135,8 +135,7 @@ onMounted(async () => { if (workspaceConvId === null) { // Create a new workspace conversation and persist its ID - const title = project.value ? `${project.value.title} — Workspace` : "Workspace"; - const conv = await chatStore.createConversation(title); + const conv = await chatStore.createConversation(); workspaceConvId = conv.id; isNewConv = true; await chatStore.fetchConversation(conv.id);