mirror of
https://ghproxy.cflmy.top/https://github.com/deepseek-ai/deepseek-harness.git
synced 2026-11-30 00:59:36 +08:00
* feat(session): archive idle SQLite Sessions and add on-demand store compaction * fix(session): preserve derived views on v2-to-v3 upgrade and harden cold restore races * feat(session): default coldAfterDays to 30 and skip set-aside unreadable segments * fix(session): clear cancelled warm entries and recheck cold state under write lease * refactor(session): keep compactStorage internal to dsh-session-persistence-sqlite
3 lines
188 B
SQL
3 lines
188 B
SQL
-- Advance the idle watermark when unset or older than the supplied threshold.
|
|
UPDATE sessions SET last_opened_at = ? WHERE session_id = ? AND (last_opened_at = 0 OR last_opened_at <= ?);
|