bug fixes, and performance improvements, and drawer

This commit is contained in:
Zoe
2026-09-27 18:44:51 -05:00
parent d48d8163a7
commit 2b9f8d64d7
52 changed files with 4913 additions and 778 deletions
+9
View File
@@ -0,0 +1,9 @@
export const provisionalTopicTitle = (message?: {
content: string;
files?: { name: string }[];
fileIds?: string[];
}): string => {
const line = message?.content.split(/\r?\n/).map(line => line.trim()).find(Boolean);
const title = line || message?.files?.[0]?.name || (message?.fileIds?.length ? "Attached files" : "New Topic");
return title.replace(/\s+/g, " ").slice(0, 100);
};