From 49423da081d6fdffb0bd7275e070a2edeb28e3b5 Mon Sep 17 00:00:00 2001
From: adamdottv <2363879+adamdottv@users.noreply.github.com>
Date: Fri, 2 May 2025 09:24:24 -0500
Subject: feat: compact command with auto-compact

---
 internal/db/sql/sessions.sql | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

(limited to 'internal/db/sql/sessions.sql')

diff --git a/internal/db/sql/sessions.sql b/internal/db/sql/sessions.sql
index f065b5f56..81abebd3c 100644
--- a/internal/db/sql/sessions.sql
+++ b/internal/db/sql/sessions.sql
@@ -7,6 +7,8 @@ INSERT INTO sessions (
     prompt_tokens,
     completion_tokens,
     cost,
+    summary,
+    summarized_at,
     updated_at,
     created_at
 ) VALUES (
@@ -17,6 +19,8 @@ INSERT INTO sessions (
     ?,
     ?,
     ?,
+    ?,
+    ?,
     strftime('%s', 'now'),
     strftime('%s', 'now')
 ) RETURNING *;
@@ -38,7 +42,9 @@ SET
     title = ?,
     prompt_tokens = ?,
     completion_tokens = ?,
-    cost = ?
+    cost = ?,
+    summary = ?,
+    summarized_at = ?
 WHERE id = ?
 RETURNING *;
 
-- 
cgit v1.2.3

