You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 8f4df2a
Browse filesBrowse the repository at this point in the historyBrowse files
fix(codex): preserve valid pending usage across invalid records
Keep the latest valid response ID when an invalid or already-accounted
record is ignored. Clearing it before validation prevented cumulative
snapshots from consuming the pending compaction usage and counted it twice.
Add exact-total regressions for missing IDs, timestamps, empty usage, and
duplicate completed responses. This addresses Pullfrog's review on #1821.
let old_record = r#"{"timestamp":"2026-09-01T00:00:01Z","type":"token_usage_record","payload":{"response_id":"old-response","usage":{"input_tokens":100,"output_tokens":20}}}"#;
0 commit comments