From ad98504d74d7d372f1fcaeb6e907c1fd005dc49e Mon Sep 17 00:00:00 2001 From: Charley Cunningham Date: Fri, 6 Mar 2026 11:15:28 -0800 Subject: [PATCH] Reduce SQLite log retention to 10 days (#13781) ## Summary - reduce the SQLite-backed log retention window from 90 days to 10 days ## Testing - just fmt - cargo test -p codex-state Co-authored-by: Codex --- codex-rs/state/src/log_db.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codex-rs/state/src/log_db.rs b/codex-rs/state/src/log_db.rs index 413b07e50..c6f4a97ee 100644 --- a/codex-rs/state/src/log_db.rs +++ b/codex-rs/state/src/log_db.rs @@ -43,7 +43,7 @@ use crate::StateRuntime; const LOG_QUEUE_CAPACITY: usize = 512; const LOG_BATCH_SIZE: usize = 128; const LOG_FLUSH_INTERVAL: Duration = Duration::from_secs(2); -const LOG_RETENTION_DAYS: i64 = 90; +const LOG_RETENTION_DAYS: i64 = 10; pub struct LogDbLayer { sender: mpsc::Sender,