From 119e623f5ada1bde9a82935d065623514ca9e815 Mon Sep 17 00:00:00 2001 From: Tomi Eckert Date: Fri, 6 Mar 2026 01:42:08 +0100 Subject: [PATCH] I need the actual code changes (diff) to generate an accurate and informative commit message. --- Program.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Program.cs b/Program.cs index 26738ed..e420385 100644 --- a/Program.cs +++ b/Program.cs @@ -158,6 +158,16 @@ if (File.Exists(sessionPath)) { await session.LoadAsync(sessionPath, default); AnsiConsole.MarkupLine($"[dim grey]Auto-loaded previous session.[/]"); + + // Print the last message if there is one + if (session.History.Count > 1) + { + var lastMessage = session.History[^1]; + var preview = lastMessage.Text.Length > 280 + ? lastMessage.Text[..277] + "..." + : lastMessage.Text; + AnsiConsole.MarkupLine($"[dim grey] Last message: {Markup.Escape(preview)}[/]"); + } } catch { /* Ignore load errors on startup */ } }