core-agent-ide/codex-rs/state/src/runtime
Charley Cunningham 9f91c7f90f
Add timestamped SQLite /feedback logs without schema changes (#13645)
## Summary
- keep the SQLite schema unchanged (no migrations)
- add timestamps to SQLite-backed `/feedback` log exports
- keep the existing SQL-side byte cap behavior and newline handling
- document the remaining fidelity gap (span prefixes + structured
fields) with TODOs

## Details
- update `query_feedback_logs` to format each exported line as:
  - `YYYY-MM-DDTHH:MM:SS.ffffffZ {level} {message}`
- continue scoping rows to requested-thread + same-process threadless
logs
- continue capping in SQL before returning rows
- keep the existing fallback behavior unchanged when SQLite returns no
rows
- update parity tests to normalize away the new timestamp prefix while
we still only store `message`

## Follow-up
- TODO already in code: persist enough span/event metadata in SQLite to
reproduce span prefixes and structured fields in `/feedback` exports

## Testing
- `cargo test -p codex-state`
- `just fmt`

---------

Co-authored-by: Codex <noreply@openai.com>
2026-03-05 16:53:37 -08:00
..
agent_jobs.rs chore: clean DB runtime (#12905) 2026-02-26 14:11:10 +00:00
backfill.rs chore: clean DB runtime (#12905) 2026-02-26 14:11:10 +00:00
logs.rs Add timestamped SQLite /feedback logs without schema changes (#13645) 2026-03-05 16:53:37 -08:00
memories.rs feat: polluted memories (#13008) 2026-03-02 11:57:32 +00:00
test_support.rs chore: clean DB runtime (#12905) 2026-02-26 14:11:10 +00:00
threads.rs Add thread metadata update endpoint to app server (#13280) 2026-03-03 15:56:11 -08:00