diff --git a/src/app/projects/[projectId]/hooks/useProject.ts b/src/app/projects/[projectId]/hooks/useProject.ts index 5824501..964722b 100644 --- a/src/app/projects/[projectId]/hooks/useProject.ts +++ b/src/app/projects/[projectId]/hooks/useProject.ts @@ -11,5 +11,7 @@ export const useProject = (projectId: string) => { return await response.json(); }, + refetchOnReconnect: true, + refetchInterval: 10 * 1000, }); }; diff --git a/src/app/projects/[projectId]/sessions/[sessionId]/components/SessionPageContent.tsx b/src/app/projects/[projectId]/sessions/[sessionId]/components/SessionPageContent.tsx index c20c962..07c286d 100644 --- a/src/app/projects/[projectId]/sessions/[sessionId]/components/SessionPageContent.tsx +++ b/src/app/projects/[projectId]/sessions/[sessionId]/components/SessionPageContent.tsx @@ -7,6 +7,7 @@ import { Button } from "@/components/ui/button"; import { firstCommandToTitle } from "../../../services/firstCommandToTitle"; import { useSession } from "../hooks/useSession"; import { ConversationList } from "./conversationList/ConversationList"; +import { SessionSidebar } from "./sessionSidebar/SessionSidebar"; export const SessionPageContent: FC<{ projectId: string; @@ -18,37 +19,43 @@ export const SessionPageContent: FC<{ ); return ( -
+ Session ID: {sessionId} +
+- Session ID: {sessionId} -
- - -