diff options
| author | Grail Finder <wohilas@gmail.com> | 2026-02-09 11:29:47 +0300 |
|---|---|---|
| committer | Grail Finder <wohilas@gmail.com> | 2026-02-09 11:29:47 +0300 |
| commit | 3f4d8a946775cfba6fc6d0ac7ade30b310bb883b (patch) | |
| tree | 21ab3e9bbc0518ae9a4e2adf6d61e581cdad036d /bot.go | |
| parent | c04e120ddbec870348b0340e0fbb41556812c3f5 (diff) | |
Fix (f1): load from the card
Diffstat (limited to 'bot.go')
| -rw-r--r-- | bot.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1165,12 +1165,12 @@ func applyCharCard(cc *models.CharCard, loadHistory bool) { chatBody.Messages = history } -func charToStart(agentName string) bool { +func charToStart(agentName string, keepSysP bool) bool { cc, ok := sysMap[agentName] if !ok { return false } - applyCharCard(cc, true) + applyCharCard(cc, keepSysP) return true } @@ -1223,7 +1223,7 @@ func summarizeAndStartNewChat() { return } // Start a new chat - startNewChat() + startNewChat(true) // Inject summary as a tool call response toolMsg := models.RoleMsg{ Role: cfg.ToolRole, |
