rhan-oai and GitHub
f1c18df9ae
[codex-analytics] report compaction analytics details ( #26680 )
...
## Why
Compaction analytics adds retained image count and compaction summary
output tokens for v1.5 specifically.
## What changed
- Add nullable `retained_image_count` and `compaction_summary_tokens`
fields to `codex_compaction_event`.
- Populate them only for `responses_compaction_v2`: retained images come
from the retained v2 compacted history, and summary tokens come from
`response.completed.token_usage.output_tokens`.
- Leave local and legacy remote compaction events as `null` for these
detail fields.
## Verification
- `just fmt`
- `just fix -p codex-core`
- `just test -p codex-core
build_v2_compacted_history_counts_retained_input_images`
- `git diff --check`
2026-06-08 10:52:31 -07:00
..
2026-06-08 11:39:08 +02:00
2026-05-19 17:54:41 -07:00
2026-05-26 20:59:47 -07:00
2026-06-08 10:52:31 -07:00
2026-06-08 10:20:54 -07:00
2026-06-02 13:18:59 -07:00
2026-05-25 09:41:12 -07:00
2026-06-07 20:12:05 -07:00
2026-05-28 14:54:39 -07:00
2026-06-05 22:54:57 -07:00
2026-06-01 18:45:07 +00:00
2026-06-03 19:08:19 -07:00
2026-06-05 14:43:44 +00:00
2026-06-05 17:36:18 -07:00
2026-06-07 17:34:35 -04:00
2026-06-02 16:41:48 -07:00
2026-06-04 09:39:20 -07:00
2026-06-07 23:18:23 -07:00
2026-06-01 21:25:42 -07:00
2026-05-26 20:59:47 -07:00
2026-06-02 17:04:11 +02:00
2026-06-05 18:06:29 -07:00
2026-05-28 22:08:05 -07:00
2026-06-03 13:32:55 +02:00
2026-06-08 10:52:31 -07:00
2026-06-04 12:43:07 -07:00
2026-06-06 14:03:00 -07:00
2026-06-04 15:28:06 +02:00
2026-06-05 15:41:13 -07:00
2026-06-05 11:36:53 -07:00
2026-06-04 22:36:25 -07:00
2026-06-07 17:35:33 -07:00
2026-06-07 17:35:33 -07:00
2026-06-08 16:53:04 +00:00
2026-06-04 14:16:03 -04:00
2026-06-04 13:13:05 -04:00
2026-06-05 17:23:45 -07:00
2026-05-26 15:59:25 -07:00
2026-06-01 11:53:31 -07:00
2026-05-28 23:09:55 -07:00
2026-05-18 10:53:49 -07:00
2026-06-02 13:18:59 -07:00
2026-06-03 19:08:19 -07:00
2026-06-05 09:34:36 -07:00
2026-06-05 17:36:18 -07:00
2026-06-05 02:41:06 -07:00
2026-06-04 13:36:24 -07:00
2026-06-04 09:53:08 -04:00
2026-06-05 17:36:18 -07:00
2026-06-05 17:36:18 -07:00
2026-06-05 17:36:18 -07:00
2026-06-01 23:23:59 +00:00
2026-06-04 09:53:08 -04:00
2026-06-05 17:36:18 -07:00
2026-05-21 16:11:59 -07:00
2026-05-25 17:26:10 -03:00
2026-06-03 13:32:55 +02:00
2026-06-05 15:41:13 -07:00
2026-06-05 02:31:06 +00:00
2026-06-05 02:41:06 -07:00
2026-06-05 02:41:06 -07:00
2026-06-03 10:41:41 -07:00
2026-05-26 20:59:47 -07:00
2026-06-05 09:38:26 -07:00
2026-05-28 15:11:11 +00:00
2026-06-04 13:36:24 -07:00
2026-05-13 21:23:19 +00:00
2026-06-04 18:40:18 +00:00
2026-06-04 13:36:24 -07:00
2026-06-08 16:53:04 +00:00
2026-06-07 20:12:05 -07:00
2026-06-04 13:36:24 -07:00
2026-05-18 21:33:05 -07:00
2026-06-04 16:52:10 -07:00
2026-06-07 17:35:33 -07:00
2026-06-08 17:16:36 +00:00
2026-06-08 11:39:08 +02:00
2026-06-04 09:16:03 -07:00
2026-05-26 20:59:47 -07:00