profileShare

rasmusjy / voicetask

Read-only snapshot

No repository description.

main default branch 105 files Expires Sep 13, 2026, 9:06 AM

Commit

List sessions newest first

commit 34959e3

1 changed file with +9 and −1

modified server/store/sessionStore.ts +9 −1
@@ -69,8 +69,16 @@export class SessionStore {
69 69 const summaries: SessionSummary[] = []
70 70 for (const id of entries) {
71 71 const session = await this.getSession(id)
72 - if (session) summaries.push({ id: session.id, name: session.name, status: session.status })
72 + if (session) {
73 + summaries.push({
74 + id: session.id,
75 + name: session.name,
76 + status: session.status,
77 + createdAt: session.createdAt,
78 + })
79 + }
73 80 }
81 + summaries.sort((a, b) => b.createdAt.localeCompare(a.createdAt))
74 82 return summaries
75 83 }
76 84