diff --git a/core/util/history.ts b/core/util/history.ts index a15b4f284..372fed88b 100644 --- a/core/util/history.ts +++ b/core/util/history.ts @@ -33,7 +33,8 @@ export class HistoryManager { sessions = sessions.filter((session: any) => { // Filter out old format return typeof session.session_id !== "string"; - }); + // We apply reverse() because they are in reverse chronological order + }).reverse(); // Apply limit and offset if (options.limit) {