From 143f9f1f4dcd60d23755422140a7cd85dc96daea Mon Sep 17 00:00:00 2001 From: Henry Li Date: Mon, 9 Feb 2026 00:41:25 +0800 Subject: [PATCH] feat: add mode in welcome --- .../src/app/workspace/chats/[thread_id]/page.tsx | 4 +++- frontend/src/components/workspace/welcome.tsx | 12 ++++++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/frontend/src/app/workspace/chats/[thread_id]/page.tsx b/frontend/src/app/workspace/chats/[thread_id]/page.tsx index 0c3f932..d521b7d 100644 --- a/frontend/src/app/workspace/chats/[thread_id]/page.tsx +++ b/frontend/src/app/workspace/chats/[thread_id]/page.tsx @@ -274,7 +274,9 @@ export default function ChatPage() { autoFocus={isNewThread} status={thread.isLoading ? "streaming" : "ready"} context={settings.context} - extraHeader={isNewThread && } + extraHeader={ + isNewThread && + } disabled={env.NEXT_PUBLIC_STATIC_WEBSITE_ONLY === "true"} onContextChange={(context) => setSettings("context", context) diff --git a/frontend/src/components/workspace/welcome.tsx b/frontend/src/components/workspace/welcome.tsx index ace1a76..29299a6 100644 --- a/frontend/src/components/workspace/welcome.tsx +++ b/frontend/src/components/workspace/welcome.tsx @@ -8,7 +8,13 @@ import { cn } from "@/lib/utils"; let waved = false; -export function Welcome({ className }: { className?: string }) { +export function Welcome({ + className, + mode, +}: { + className?: string; + mode?: "ultra" | "pro" | "thinking" | "flash"; +}) { const { t } = useI18n(); const searchParams = useSearchParams(); useEffect(() => { @@ -29,7 +35,9 @@ export function Welcome({ className }: { className?: string }) {
👋
-
{t.welcome.greeting}
+
+ {t.welcome.greeting} +
)}