/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 8bebaedad4
commit 4973e7e1e0
2 changed files with 24 additions and 22 deletions

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',