tweak: ensure most recently interacted with session appears at the top (#1239)

This commit is contained in:
Aiden Cline 2025-07-22 22:37:36 -05:00 • committed by GitHub
commit b7b0cdbd7c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -196,6 +196,7 @@ export namespace Server {
}),
async (c) => {
const sessions = await Array.fromAsync(Session.list())
sessions.sort((a, b) => b.time.updated - a.time.updated)
return c.json(sessions)
},
)