diff --git a/vibn-frontend/app/[workspace]/project/[projectId]/(home)/sessions/[sessionId]/page.tsx b/vibn-frontend/app/[workspace]/project/[projectId]/(home)/sessions/[sessionId]/page.tsx index 79b8de8b..19c196e4 100644 --- a/vibn-frontend/app/[workspace]/project/[projectId]/(home)/sessions/[sessionId]/page.tsx +++ b/vibn-frontend/app/[workspace]/project/[projectId]/(home)/sessions/[sessionId]/page.tsx @@ -2,7 +2,15 @@ import { useEffect, useState } from "react"; import { useParams, useRouter } from "next/navigation"; -import { Loader2, ArrowLeft, Bot, User, Code2, Wrench } from "lucide-react"; +import { + Loader2, + ArrowLeft, + Bot, + User, + Code2, + Wrench, + Download, +} from "lucide-react"; import ReactMarkdown from "react-markdown"; interface ToolCall { @@ -33,8 +41,8 @@ export default function SessionViewer() { useEffect(() => { fetch(`/api/chat/threads/${sessionId}`) - .then(r => r.json()) - .then(d => { + .then((r) => r.json()) + .then((d) => { setThread(d.thread); setMessages(d.messages || []); }) @@ -54,7 +62,7 @@ export default function SessionViewer() { return (
Session not found.
-