Merge PR #1381
This commit is contained in:
commit
330fb33e62
1 changed files with 2 additions and 0 deletions
|
|
@ -1636,6 +1636,8 @@ func (al *AgentLoop) summarizeSession(agent *AgentInstance, sessionKey string) {
|
|||
}
|
||||
|
||||
if len(validMessages) == 0 {
|
||||
agent.Sessions.TruncateHistory(sessionKey, 4)
|
||||
agent.Sessions.Save(sessionKey)
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue