Sessions should be keyed by projectId, not a generated ID

This commit is contained in:
Alex Gleason committed 2025-09-11 12:42:34 -05:00
1 parent d3550b0fca
commit af6942c04f
4 files changed
+121 -149

No files matched your search

+3 -4
View File
@@ -11,11 +11,10 @@ export function useProjectSessionStatus(projectId: string) {
useEffect(() => {
const updateStatus = () => {
const projectSessions = sessionManager.getProjectSessions(projectId);
const runningSessions = projectSessions.filter(session => session.isLoading);
const projectSession = sessionManager.getProjectSession(projectId);
setHasActiveSessions(projectSessions.length > 0);
setHasRunningSessions(runningSessions.length > 0);
setHasActiveSessions(!!projectSession);
setHasRunningSessions(!!projectSession?.isLoading);
};
// Initial update