fix: session ordering (#1474)

This commit is contained in:
Aiden Cline
2025-07-31 14:17:47 -05:00
committed by GitHub
parent 360194e219
commit f5f55062f1

View File

@@ -577,6 +577,10 @@ export namespace Session {
await updatePart(part)
}
// mark session as updated
// used for session list sorting (indicates when session was most recently interacted with)
await update(input.sessionID, (_draft) => {})
if (isLocked(input.sessionID)) {
return new Promise((resolve) => {
const queue = state().queued.get(input.sessionID) ?? []