Commit f29f9fdf80ff

Vincent Demeester <vincent@sbr.pm>
2026-02-05 22:10:20
feat(session-history): reversed session log order to show most recent events first
Modified /session-log command to display entries in reverse chronological order for better usability.
1 parent b1dcdd8
Changed files (1)
dots
pi
agent
extensions
session-history
dots/pi/agent/extensions/session-history/index.ts
@@ -565,7 +565,7 @@ After generating the summary, use the save_session_to_history tool to save it${c
 
 			try {
 				const content = await readFile(logFile, "utf-8");
-				const lines = content.trim().split("\n");
+				const lines = content.trim().split("\n").reverse(); // Most recent first
 				const theme = ctx.ui.theme;
 
 				// Format each log entry with colors