Update core/util/history.ts

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
This commit is contained in:
Nate Sesti 2025-08-27 16:02:49 -07:00 • committed by GitHub
parent 6a6a0b388e
commit ec592c7229
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -34,7 +34,7 @@ export class HistoryManager {
.filter((session: any) => {
// Filter out old format
return typeof session.session_id !== "string";
// We apply reverse() because they are in reverse chronological order
// Reverse to show newest first; sessions.json is chronological by creation
})
.reverse();