From f7c62b6424dc932b373bb35f2b5c52fe26590a85 Mon Sep 17 00:00:00 2001 From: mawkone Date: Mon, 15 Jun 2026 15:04:58 -0700 Subject: [PATCH] Re-remove TimelineThought component --- .../components/vibn-chat/chat-panel.tsx | 86 +------------------ 1 file changed, 1 insertion(+), 85 deletions(-) diff --git a/vibn-frontend/components/vibn-chat/chat-panel.tsx b/vibn-frontend/components/vibn-chat/chat-panel.tsx index e10b2862..65b06f5a 100644 --- a/vibn-frontend/components/vibn-chat/chat-panel.tsx +++ b/vibn-frontend/components/vibn-chat/chat-panel.tsx @@ -640,7 +640,7 @@ function Timeline({ entries, isActiveStream }: { entries: TimelineEntry[], isAct {items.map((item, i) => { const isLast = i === items.length - 1; if (item.kind === "thought") { - return ; + return ; } if (item.kind === "text") { return ; @@ -666,90 +666,6 @@ function Timeline({ entries, isActiveStream }: { entries: TimelineEntry[], isAct * step instead of concatenating into a wall of text. */ -function TimelineThought({ text, isStreaming }: { text: string; isStreaming?: boolean }) { - const [expanded, setExpanded] = React.useState(true); - const textLenRef = React.useRef(text.length); - - React.useEffect(() => { - // If not streaming, auto-collapse after a short delay so the user isn't stuck with huge thinking blocks - if (!isStreaming) { - const t = setTimeout(() => setExpanded(false), 500); - return () => clearTimeout(t); - } - }, [isStreaming]); - - const proseWrap: React.CSSProperties = { - overflowWrap: "anywhere", - wordBreak: "break-word", - minWidth: 0, - }; - - return ( -
- - {expanded && ( -
- ` : ""), - }} - /> -
- )} -
- ); -} function TimelineText({ text, isStreaming }: { text: string; isStreaming?: boolean }) { const proseWrap: React.CSSProperties = {