diff --git a/frontend/src/app/workspace/chats/[thread_id]/page.tsx b/frontend/src/app/workspace/chats/[thread_id]/page.tsx index 1cc8245..346da57 100644 --- a/frontend/src/app/workspace/chats/[thread_id]/page.tsx +++ b/frontend/src/app/workspace/chats/[thread_id]/page.tsx @@ -17,9 +17,9 @@ import { ArtifactFileList, useArtifacts, } from "@/components/workspace/artifacts"; -import { FlipDisplay } from "@/components/workspace/flip-display"; import { InputBox } from "@/components/workspace/input-box"; import { MessageList } from "@/components/workspace/messages"; +import { ThreadTitle } from "@/components/workspace/thread-title"; import { Tooltip } from "@/components/workspace/tooltip"; import { useLocalSettings } from "@/core/settings"; import { type AgentThread } from "@/core/threads"; @@ -95,12 +95,9 @@ export default function ChatPage() {
- - {title} - + {threadId && title !== "Untitled" && ( + + )}
{artifacts?.length && !artifactsOpen && ( diff --git a/frontend/src/components/workspace/thread-title.tsx b/frontend/src/components/workspace/thread-title.tsx new file mode 100644 index 0000000..2541ffe --- /dev/null +++ b/frontend/src/components/workspace/thread-title.tsx @@ -0,0 +1,11 @@ +import { FlipDisplay } from "./flip-display"; + +export function ThreadTitle({ + threadTitle, +}: { + className?: string; + threadId: string; + threadTitle: string; +}) { + return {threadTitle}; +}