From be1e016ed476ea87a1886fd161c137be693e53c3 Mon Sep 17 00:00:00 2001 From: Henry Li Date: Sat, 17 Jan 2026 15:48:43 +0800 Subject: [PATCH] fix: do not display 'Untitled' --- .../src/app/workspace/chats/[thread_id]/page.tsx | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/frontend/src/app/workspace/chats/[thread_id]/page.tsx b/frontend/src/app/workspace/chats/[thread_id]/page.tsx index 3234a59..7b4b293 100644 --- a/frontend/src/app/workspace/chats/[thread_id]/page.tsx +++ b/frontend/src/app/workspace/chats/[thread_id]/page.tsx @@ -55,10 +55,15 @@ export default function ChatPage() { isNewThread, threadId, }); - const title = useMemo( - () => (isNewThread ? "" : titleOfThread(thread as unknown as AgentThread)), - [thread, isNewThread], - ); + const title = useMemo(() => { + let result = isNewThread + ? "" + : titleOfThread(thread as unknown as AgentThread); + if (result === "Untitled") { + result = ""; + } + return result; + }, [thread, isNewThread]); const handleSubmit = useSubmitThread({ isNewThread,