From 0a1187e223da46e222e8174437eeaaea17e8737c Mon Sep 17 00:00:00 2001 From: Nate Date: Wed, 27 Aug 2025 11:22:57 -0700 Subject: [PATCH] fix: show /resume sessions in correct chronological order --- core/util/history.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) {