From 8b162ef34f0755e2224c43499218def16d4b6845 Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Sat, 17 Jan 2026 11:42:35 +0300 Subject: Enha: change textview chat history based on current user persona --- tools.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools.go') diff --git a/tools.go b/tools.go index fddbffe..2eafaf5 100644 --- a/tools.go +++ b/tools.go @@ -24,7 +24,7 @@ var ( starRE = regexp.MustCompile(`(\*.*?\*)`) thinkRE = regexp.MustCompile(`(\s*([\s\S]*?))`) codeBlockRE = regexp.MustCompile(`(?s)\x60{3}(?:.*?)\n(.*?)\n\s*\x60{3}\s*`) - singleBacktickRE = regexp.MustCompile(`\x60([^\x60]*)\x60`) + singleBacktickRE = regexp.MustCompile(`\x60([^\x60]*)\x60`) roleRE = regexp.MustCompile(`^(\w+):`) rpDefenitionSysMsg = ` For this roleplay immersion is at most importance. @@ -945,7 +945,7 @@ func summarizeChat(args map[string]string) []byte { return []byte("No chat history to summarize.") } // Format chat history for the agent - chatText := chatToText(true) // include system and tool messages + chatText := chatToText(chatBody.Messages, true) // include system and tool messages return []byte(chatText) } -- cgit v1.2.3