From e8b81554c776e70848af169e8a9c439c78b816e2 Mon Sep 17 00:00:00 2001 From: Storme-bit Date: Wed, 15 Apr 2026 02:23:38 -0700 Subject: [PATCH] chat sessions in project view --- packages/chat-client/src/App.jsx | 2 ++ packages/chat-client/src/components/Sidebar.jsx | 2 +- packages/chat-client/src/hooks/useChat.js | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/chat-client/src/App.jsx b/packages/chat-client/src/App.jsx index 982dbd2..c47ebf7 100644 --- a/packages/chat-client/src/App.jsx +++ b/packages/chat-client/src/App.jsx @@ -2,6 +2,7 @@ import React, { useState } from 'react'; import ChatWindow from './components/ChatWindow'; import InfoPanel from './components/InfoPanel'; import Sidebar from './components/Sidebar'; +import {v4 as uuidv4} from 'uuid'; /*** View Panels*** */ import AllChatsView from './components/AllChatsView'; @@ -25,6 +26,7 @@ export default function App() { const { sessions, + setSessions, activeSession, messages, loadingHistory, diff --git a/packages/chat-client/src/components/Sidebar.jsx b/packages/chat-client/src/components/Sidebar.jsx index 3b1c41b..6d5396f 100644 --- a/packages/chat-client/src/components/Sidebar.jsx +++ b/packages/chat-client/src/components/Sidebar.jsx @@ -159,7 +159,7 @@ export default function Sidebar({ {projects.slice(0, 6).map(project => (