fix(webui): name temporary chats from first message

This commit is contained in:
chengyongru authored and Xubin Ren committed 2026-08-08 23:20:59 +08:00
1 parent 516ae11c33
commit 8e04f12720
5 files changed
+20 -6

No files matched your search

+2 -1
View File
@@ -64,6 +64,7 @@ import {
import { projectNameFromPath, scopeWithAccessMode } from "@/lib/workspace";
import {
createTemporaryChatSession,
deriveTemporaryChatTitle,
} from "@/lib/temporary-chat";
type BootState =
@@ -2069,7 +2070,7 @@ function Shell({
}, []);
const headerTitle = temporaryChatActive
? t("temporaryChat.title")
? deriveTemporaryChatTitle(activeSession?.preview, t("temporaryChat.title"))
: activeSession
? sidebarState.title_overrides[activeSession.key] ||
activeSession.title ||