feat(webui): polish chat layout and titles

Align the WebUI sidebar and chat chrome with the updated design, and generate WebUI session titles asynchronously without blocking turns.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Xubin RenandCursor authored and Xubin Ren committed 2026-05-06 22:20:35 +08:00
1 parent d8fd4c80bf
commit 790a03ec28
33 files changed
+1270 -312

No files matched your search

+2 -1
View File
@@ -61,6 +61,7 @@ export function useSessions(): {
chatId,
createdAt: new Date().toISOString(),
updatedAt: new Date().toISOString(),
title: "",
preview: "",
},
...prev.filter((s) => s.key !== key),
@@ -221,7 +222,7 @@ export function sessionTitle(
firstUserMessage?: string,
): string {
return deriveTitle(
firstUserMessage || session.preview,
session.title || firstUserMessage || session.preview,
i18n.t("chat.newChat"),
);
}