From 6ed96c9bd3cb2cd7afb980cf023a0f969651acbe Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Sun, 8 Mar 2026 09:42:07 +0300 Subject: Fix (ctrl+w): avoid msg duplication --- bot.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bot.go') diff --git a/bot.go b/bot.go index d01ebb9..cb75a7b 100644 --- a/bot.go +++ b/bot.go @@ -887,7 +887,9 @@ out: fmt.Fprint(textView, chunk) respText.WriteString(chunk) // Update the message in chatBody.Messages so it persists during Alt+T - chatBody.Messages[msgIdx].Content = respText.String() + if !r.Resume { + chatBody.Messages[msgIdx].Content += respText.String() + } if cfg.AutoScrollEnabled { textView.ScrollToEnd() } -- cgit v1.2.3