fix: session ordering (#1474)

pull/1360/head
Aiden Cline 2025-07-31 14:17:47 -05:00 committed by GitHub
parent 360194e219
commit f5f55062f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

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) ?? []