Commit f29f9fdf80ff
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