From e52e8ce2cc44b4e8cc950fe6811810db4142921d Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Mon, 2 Feb 2026 08:18:49 +0300 Subject: Enha: consolidate assistant messages only --- bot.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bot.go') diff --git a/bot.go b/bot.go index f55fc6d..9a991d6 100644 --- a/bot.go +++ b/bot.go @@ -195,8 +195,8 @@ func consolidateAssistantMessages(messages []models.RoleMsg) []models.RoleMsg { isBuildingAssistantMsg := false for i := 0; i < len(messages); i++ { msg := messages[i] - // what about the case with multiplpe assistant roles? - if msg.Role == cfg.AssistantRole || msg.Role == cfg.WriteNextMsgAsCompletionAgent { + // assistant role only + if msg.Role == cfg.AssistantRole { // If this is an assistant message, start or continue building if !isBuildingAssistantMsg { // Start accumulating assistant message -- cgit v1.2.3