feat: terminal fullscreen, asyncpg fix, CI improvements #59

Merged
jimmy merged 18 commits from dev into main 2026-05-06 01:30:57 +08:00
Showing only changes of commit 5c7d185953 - Show all commits
+10 -3
View File
@@ -304,10 +304,12 @@ def mock_conversation_db(tmp_path, monkeypatch):
CREATE TABLE conversations (
session_id TEXT PRIMARY KEY,
project_path TEXT,
slug TEXT,
started_at DATETIME,
message_count INTEGER,
total_input_tokens INTEGER DEFAULT 0,
total_output_tokens INTEGER DEFAULT 0
total_output_tokens INTEGER DEFAULT 0,
model TEXT
)
""")
conn.execute("""
@@ -332,14 +334,19 @@ def mock_conversation_db(tmp_path, monkeypatch):
CREATE TABLE daily_summaries (
id INTEGER PRIMARY KEY AUTOINCREMENT,
date TEXT UNIQUE NOT NULL,
summary_content TEXT NOT NULL
summary_content TEXT NOT NULL,
conversation_count INTEGER DEFAULT 0,
total_messages INTEGER DEFAULT 0,
total_tokens INTEGER DEFAULT 0,
created_at DATETIME,
project_path TEXT
)
""")
# Insert test data
conn.execute("""
INSERT INTO conversations VALUES
('test-session-id', '/test/project', '2026-04-19 10:00:00', 10, 1000, 500)
('test-session-id', '/test/project', 'test-slug', '2026-04-19 10:00:00', 10, 1000, 500, 'claude-sonnet-4')
""")
conn.execute("""
INSERT INTO messages VALUES