chat sessions in project view

This commit is contained in:
Storme-bit
2026-04-15 02:23:38 -07:00
parent 3f79cd4a41
commit e8b81554c7
3 changed files with 4 additions and 2 deletions

View File

@@ -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,

View File

@@ -159,7 +159,7 @@ export default function Sidebar({
{projects.slice(0, 6).map(project => (
<button
key={project.id}
onClick={() => {onSelectProject(project); onNavigate('all-projects')}}
onClick={() => {onSelectProject(project); onNavigate('project')}}
className="btn-reset text-xs"
style={{
padding: '4px 8px',

View File

@@ -1,5 +1,5 @@
import { useState, useCallback, useRef } from 'react';
import { streamMessage } from '../api/orchestration';
import { streamMessage, updateSession } from '../api/orchestration';
export function useChat({ activeSession, appendMessage, updateLastMessage, refreshSessions }) {
const [streaming, setStreaming] = useState(false);