core-agent-ide/codex-rs/state/src
jif-oai 4922b3e571
feat: add phase 1 mem db (#10634)
- Schema: thread_id (PK, FK to threads.id with cascade delete),
trace_summary, memory_summary, updated_at.
- Migration: creates the table and an index on (updated_at DESC,
thread_id DESC) for efficient recent-first reads.
  - Runtime API (DB-only):
      - `get_thread_memory(thread_id)`: fetch one memory row.
- `upsert_thread_memory(thread_id, trace_summary, memory_summary)`:
insert/update by thread id and always advance updated_at.
- `get_last_n_thread_memories_for_cwd(cwd, n)`: join thread_memory with
threads and return newest n rows for an exact cwd match.
- Model layer: introduced ThreadMemory and row conversion types to keep
query decoding typed and consistent with existing state models.
2026-02-04 21:38:39 +00:00
..
bin Migrate state DB path helpers to versioned filename (#10623) 2026-02-04 14:31:12 +00:00
model feat: add phase 1 mem db (#10634) 2026-02-04 21:38:39 +00:00
extract.rs nit: cleaning (#10619) 2026-02-04 13:01:24 +00:00
lib.rs feat: add phase 1 mem db (#10634) 2026-02-04 21:38:39 +00:00
log_db.rs feat: add log retention and delete them after 90 days (#10151) 2026-01-29 16:55:01 +01:00
migrations.rs feat: sqlite 1 (#10004) 2026-01-28 15:29:14 +01:00
paths.rs feat: sqlite 1 (#10004) 2026-01-28 15:29:14 +01:00
runtime.rs feat: add phase 1 mem db (#10634) 2026-02-04 21:38:39 +00:00