/chat save command saves empty conversations with only system context (#6121)

Co-authored-by: Jacob Richman <jacob314@gmail.com>
This commit is contained in:
Kamal Raj Sekar
2025-08-14 22:00:30 +05:30
committed by GitHub
parent a5a5571495
commit 2b0a1a1ae4
2 changed files with 24 additions and 22 deletions
+1 -1
View File
@@ -142,7 +142,7 @@ const saveCommand: SlashCommand = {
}
const history = chat.getHistory();
if (history.length > 0) {
if (history.length > 2) {
await logger.saveCheckpoint(history, tag);
return {
type: 'message',