update blank session cleanup code for now session store logic

This commit is contained in:
Alexis Purslane
2025-11-27 20:18:22 -05:00
parent 50676416ed
commit 96b88dbcdc
5 changed files with 2044 additions and 631 deletions

View File

@@ -22,6 +22,7 @@ import {
sessions,
loading,
setLoading,
cleanupBlankSessions,
} from "./session-state"
import { DEFAULT_MODEL_OUTPUT_LIMIT, getDefaultModel, isModelValid } from "./session-models"
import { normalizeMessagePart } from "./message-v2/normalizers"
@@ -230,8 +231,6 @@ async function createSession(instanceId: string, agent?: string): Promise<Sessio
return next
})
getSessionIndex(instanceId, session.id)
await cleanupBlankSessions(instanceId, session.id)
return session