summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/commands/chatCommand.ts
diff options
context:
space:
mode:
authorKamal Raj Sekar <[email protected]>2025-08-14 22:00:30 +0530
committerGitHub <[email protected]>2025-08-14 16:30:30 +0000
commit4973e7e1e04004547021986a0e2dc5eeb4a8bf9d (patch)
tree493d9abb4ad0ae6eb69b5ebc8c5bc812ef05abcf /packages/cli/src/ui/commands/chatCommand.ts
parent8bebaedad4c82c50f570dc65c13feabcbb8444ef (diff)
/chat save command saves empty conversations with only system context (#6121)
Co-authored-by: Jacob Richman <[email protected]>
Diffstat (limited to 'packages/cli/src/ui/commands/chatCommand.ts')
-rw-r--r--packages/cli/src/ui/commands/chatCommand.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/cli/src/ui/commands/chatCommand.ts b/packages/cli/src/ui/commands/chatCommand.ts
index 56eebe1a..14714df3 100644
--- a/packages/cli/src/ui/commands/chatCommand.ts
+++ b/packages/cli/src/ui/commands/chatCommand.ts
@@ -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',