fix(webui): polish session titles and status

This commit is contained in:
Xubin Ren committed 2026-05-17 23:52:50 +08:00
1 parent 361f31c0e4
commit 2f323e24c1
10 files changed
+134 -27

No files matched your search

+2 -2
View File
@@ -17,6 +17,7 @@ import {
loadSavedSecret,
saveSecret,
} from "@/lib/bootstrap";
import { deriveTitle } from "@/lib/format";
import { NanobotClient } from "@/lib/nanobot-client";
import { ClientProvider, useClient } from "@/providers/ClientProvider";
import type { ChatSummary } from "@/lib/types";
@@ -391,8 +392,7 @@ function Shell({
const headerTitle = activeSession
? activeSession.title ||
activeSession.preview ||
t("chat.fallbackTitle", { id: activeSession.chatId.slice(0, 6) })
deriveTitle(activeSession.preview, t("chat.newChat"))
: t("app.brand");
useEffect(() => {