Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

Reduce SQLite log retention to 10 days (#13781)

Charley Cunninghamad98504d74d7
diff --git a/codex-rs/state/src/log_db.rs b/codex-rs/state/src/log_db.rs
index 413b07e50a..c6f4a97ee1 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<LogDbCommand>,