Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

chore: drop log DB (#16433)

jif-oaic846a57d032b
diff --git a/codex-rs/state/migrations/0023_drop_logs.sql b/codex-rs/state/migrations/0023_drop_logs.sql
new file mode 100644
index 0000000000..dce1ffc20d
--- /dev/null
+++ b/codex-rs/state/migrations/0023_drop_logs.sql
@@ -0,0 +1,3 @@
+PRAGMA auto_vacuum = INCREMENTAL;
+
+DROP TABLE IF EXISTS logs;
diff --git a/codex-rs/state/src/runtime/logs.rs b/codex-rs/state/src/runtime/logs.rs
index 8cf3fe16df..3e3239c3f2 100644
--- a/codex-rs/state/src/runtime/logs.rs
+++ b/codex-rs/state/src/runtime/logs.rs
@@ -590,10 +590,8 @@ mod tests {
.await
.expect("insert test logs");
- let state_count = log_row_count(state_db_path(codex_home.as_path()).as_path()).await;
let logs_count = log_row_count(logs_db_path(codex_home.as_path()).as_path()).await;
- assert_eq!(state_count, 0);
assert_eq!(logs_count, 1);
let _ = tokio::fs::remove_dir_all(codex_home).await;