teknium1
8899aeff53
fix(oneshot): --usage-file ledger reports auxiliary LLM spend
...
`hermes -z --usage-file` copied only the main-loop result, so title generation,
vision, compression, web_extract and background-review calls — recorded per task
in session_model_usage — never reached the pipeline ledger the flag advertises
as "so pipelines can always account for spend". The Insights page already folds
those rows in (#23270 ); the ledger is now consistent with it.
- SessionDB.auxiliary_usage_by_task(session_id): per-task sums over the
session's compression lineage (aux calls bill to the id the turn started with
while compression mints child ids mid-turn).
- oneshot snapshots aux usage before the turn and attaches the delta after it,
so a resumed session's earlier runs are not re-billed.
- The report gains `auxiliary` (totals + `by_task`) and
`total_including_auxiliary`; every existing key keeps its main-loop meaning.
- The auto-title upgrade runs on a daemon thread and can still be writing when
the turn returns: title_generator tracks in-flight upgrade threads and
oneshot joins them (bounded) before reading — no sleep, no eager read.
Fixes #112848 . Direction shared with #112852 (@KoNit-K), which folded aux into
the headline counters; this keeps them backward compatible instead.
Co-authored-by: KoNit-K <124019182+KoNit-K@users.noreply.github.com >
2026-09-16 17:03:25 -07:00
..
2026-09-15 20:44:42 +05:30
2026-09-16 06:39:15 -05:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-16 16:48:42 -07:00
2026-09-15 03:58:44 -07:00
2026-09-13 05:19:48 -07:00
2026-09-15 20:44:42 +05:30
2026-09-16 23:22:49 +05:30
2026-09-15 20:44:42 +05:30
2026-09-15 20:44:42 +05:30
2026-09-13 21:07:35 -07:00
2026-09-13 21:07:35 -07:00
2026-09-15 04:12:13 -07:00
2026-09-13 05:21:02 -07:00
2026-09-16 16:48:42 -07:00
2026-09-15 04:57:29 -07:00
2026-09-13 05:07:11 -07:00
2026-09-13 09:18:02 -07:00
2026-09-15 04:53:38 -07:00
2026-09-12 22:07:41 -07:00
2026-09-15 04:12:13 -07:00
2026-09-16 14:34:59 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 19:19:32 -07:00
2026-09-12 20:43:42 -07:00
2026-09-12 08:25:49 -07:00
2026-09-13 09:18:02 -07:00
2026-09-11 15:30:09 +05:30
2026-09-12 08:23:58 -07:00
2026-09-11 01:40:43 -04:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-16 16:53:40 -07:00
2026-09-13 09:18:02 -07:00
2026-09-11 01:40:43 -04:00
2026-09-15 21:46:41 -07:00
2026-09-15 18:24:22 -07:00
2026-09-15 18:24:22 -07:00
2026-09-12 08:24:52 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-15 06:16:38 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-15 04:12:13 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-15 04:08:53 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 20:41:41 -07:00
2026-09-15 12:51:27 +05:30
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-15 20:47:06 +05:30
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-15 03:34:20 -07:00
2026-09-16 16:54:57 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 20:50:10 -07:00
2026-09-13 05:07:11 -07:00
2026-09-13 09:18:02 -07:00
2026-09-12 08:25:36 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-15 04:12:13 -07:00
2026-09-15 06:29:50 -07:00
2026-09-15 18:28:49 -07:00
2026-09-13 05:09:06 -07:00
2026-09-15 04:12:13 -07:00
2026-09-15 04:12:13 -07:00
2026-09-15 00:41:13 +05:30
2026-09-15 21:47:48 -07:00
2026-09-15 03:40:26 -07:00
2026-09-15 18:28:49 -07:00
2026-09-15 18:26:15 -07:00
2026-09-16 08:57:18 -07:00
2026-09-15 04:12:13 -07:00
2026-09-13 20:54:50 -07:00
2026-09-11 01:40:43 -04:00
2026-09-12 08:24:29 -07:00
2026-09-15 04:47:37 -07:00
2026-09-13 19:30:48 +05:30
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-15 04:12:13 -07:00
2026-09-13 09:18:02 -07:00
2026-09-12 05:10:51 -07:00
2026-09-13 09:18:02 -07:00
2026-09-16 16:48:42 -07:00
2026-09-16 17:03:16 -07:00
2026-09-15 18:28:26 -07:00
2026-09-15 18:29:16 -07:00
2026-09-11 11:54:49 -07:00
2026-09-15 04:08:00 -07:00
2026-09-16 17:02:02 -07:00
2026-09-16 16:48:42 -07:00
2026-09-13 06:50:57 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-16 17:02:34 -07:00
2026-09-13 05:09:06 -07:00
2026-09-11 06:37:27 -07:00
2026-09-15 04:12:13 -07:00
2026-09-16 23:19:45 +05:30
2026-09-11 06:21:48 -07:00
2026-09-13 20:56:26 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-12 08:25:54 -07:00
2026-09-13 21:13:23 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 05:07:50 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 20:51:06 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-15 04:06:08 -07:00
2026-09-13 09:18:02 -07:00
2026-09-12 21:39:10 -07:00
2026-09-12 08:23:44 -07:00
2026-09-16 00:33:03 -07:00
2026-09-16 08:57:18 -07:00
2026-09-16 16:48:42 -07:00
2026-09-16 16:48:42 -07:00
2026-09-15 04:07:13 -07:00
2026-09-15 18:30:05 -07:00
2026-09-16 16:55:18 -07:00
2026-09-14 20:51:37 +05:30
2026-09-15 04:13:44 -07:00
2026-09-16 16:52:59 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-15 03:59:50 -07:00
2026-09-11 15:26:09 -07:00
2026-09-15 03:59:10 -07:00
2026-09-15 18:29:37 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-15 05:25:39 -07:00
2026-09-11 15:44:00 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 05:07:11 -07:00
2026-09-13 09:18:02 -07:00
2026-09-15 06:36:55 -07:00
2026-09-13 09:18:02 -07:00
2026-09-15 18:33:43 -07:00
2026-09-12 21:27:21 -07:00
2026-09-15 06:25:42 -07:00
2026-09-15 18:34:40 -07:00
2026-09-15 22:47:03 -07:00
2026-09-16 16:58:43 -07:00
2026-09-13 05:09:06 -07:00
2026-09-15 03:33:53 -07:00
2026-09-15 18:35:09 -07:00
2026-09-15 04:12:13 -07:00
2026-09-15 03:47:15 -07:00
2026-09-16 16:48:42 -07:00
2026-09-15 18:34:40 -07:00
2026-09-16 16:48:42 -07:00
2026-09-15 18:35:32 -07:00
2026-09-16 00:35:00 -07:00
2026-09-15 06:08:20 -07:00
2026-09-13 14:43:19 -07:00
2026-09-16 16:51:45 -07:00
2026-09-13 09:18:02 -07:00
2026-09-12 08:23:44 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-16 16:56:22 -07:00
2026-09-13 09:18:02 -07:00
2026-09-14 12:56:59 -04:00
2026-09-11 01:40:43 -04:00
2026-09-13 05:09:06 -07:00
2026-09-15 05:31:16 -07:00
2026-09-15 05:26:25 -07:00
2026-09-11 12:43:21 -04:00
2026-09-11 12:43:21 -04:00
2026-09-14 21:49:13 -04:00
2026-09-14 21:49:13 -04:00
2026-09-14 12:56:59 -04:00
2026-09-14 13:16:07 -04:00
2026-09-14 21:49:13 -04:00
2026-09-15 05:32:58 -07:00
2026-09-14 12:56:59 -04:00
2026-09-12 08:41:00 -07:00
2026-09-15 18:55:47 -07:00
2026-09-13 09:18:02 -07:00
2026-09-16 15:16:09 -05:00
2026-09-16 15:54:47 -05:00
2026-09-16 15:16:09 -05:00
2026-09-12 08:34:43 -07:00
2026-09-15 13:00:12 +05:30
2026-09-11 19:50:46 -07:00
2026-09-15 04:12:13 -07:00
2026-09-15 19:06:54 -07:00
2026-09-12 08:34:43 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-15 05:34:29 -07:00
2026-09-14 05:56:29 -07:00
2026-09-13 09:18:02 -07:00
2026-09-15 03:39:45 -07:00
2026-09-13 16:43:50 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 14:44:06 -07:00
2026-09-13 09:18:02 -07:00
2026-09-16 16:59:23 -07:00
2026-09-16 17:00:28 -07:00
2026-09-13 16:43:50 -07:00
2026-09-16 17:02:56 -07:00
2026-09-12 14:05:36 -07:00
2026-09-12 08:24:42 -07:00
2026-09-16 16:54:57 -07:00
2026-09-13 09:18:02 -07:00
2026-09-15 20:44:42 +05:30
2026-09-15 18:35:59 -07:00
2026-09-15 04:12:13 -07:00
2026-09-11 19:01:47 -07:00
2026-09-15 16:55:43 +05:30
2026-09-15 12:51:27 +05:30
2026-09-13 09:18:02 -07:00
2026-09-16 17:03:25 -07:00
2026-09-15 18:23:29 -07:00
2026-09-13 21:06:39 -07:00
2026-09-12 14:05:36 -07:00
2026-09-16 17:00:07 -07:00
2026-09-13 09:18:02 -07:00
2026-09-10 18:15:54 -07:00
2026-09-13 09:18:02 -07:00
2026-09-12 08:24:26 -07:00
2026-09-16 14:18:39 -07:00
2026-09-13 09:18:02 -07:00
2026-09-15 15:11:33 -07:00
2026-09-16 15:47:44 -07:00
2026-09-15 18:48:59 -07:00
2026-09-16 15:47:44 -07:00
2026-09-15 10:48:49 +05:30
2026-09-16 16:48:42 -07:00
2026-09-12 12:03:39 +05:30
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 05:21:02 -07:00
2026-09-12 08:27:53 -07:00
2026-09-13 14:35:32 -07:00
2026-09-14 16:16:06 -07:00
2026-09-16 14:34:22 -07:00
2026-09-15 04:12:41 -07:00
2026-09-16 16:44:53 -07:00
2026-09-15 06:22:15 -07:00
2026-09-15 12:45:29 +05:30
2026-09-16 14:21:14 -07:00
2026-09-16 14:34:22 -07:00
2026-09-16 17:02:38 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 05:07:11 -07:00
2026-09-13 09:18:02 -07:00
2026-09-15 06:36:19 -07:00
2026-09-13 09:18:02 -07:00
2026-09-14 21:18:47 +05:30
2026-09-13 09:18:02 -07:00
2026-09-13 09:40:44 -07:00
2026-09-13 09:18:02 -07:00
2026-09-14 19:49:12 +05:30
2026-09-15 03:44:36 -07:00
2026-09-15 21:46:37 -07:00
2026-09-14 08:10:36 -07:00
2026-09-15 04:52:00 -07:00
2026-09-15 18:24:48 -07:00
2026-09-16 16:55:42 -07:00
2026-09-15 04:12:13 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-16 16:54:57 -07:00
2026-09-15 18:28:03 -07:00
2026-09-13 09:18:02 -07:00
2026-09-15 11:03:39 +05:30
2026-09-13 05:09:06 -07:00
2026-09-11 19:50:46 -07:00
2026-09-11 13:03:40 +05:30
2026-09-16 10:27:34 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-15 03:51:07 -07:00
2026-09-15 12:51:27 +05:30
2026-09-11 13:08:19 +05:30
2026-09-16 17:02:13 -07:00
2026-09-11 06:37:27 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-16 06:39:15 -05:00
2026-09-13 09:18:02 -07:00
2026-09-15 12:51:27 +05:30
2026-09-15 04:12:13 -07:00
2026-09-15 12:51:27 +05:30
2026-09-15 12:51:27 +05:30
2026-09-15 18:25:46 -07:00
2026-09-15 04:12:13 -07:00
2026-09-11 06:37:27 -07:00
2026-09-15 18:28:49 -07:00
2026-09-11 11:54:49 -07:00
2026-09-12 15:00:37 +05:30
2026-09-11 02:06:32 -07:00
2026-09-15 04:12:13 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-15 22:05:38 -07:00
2026-09-15 21:46:41 -07:00
2026-09-15 04:12:13 -07:00
2026-09-15 14:15:59 +05:30
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 05:08:29 -07:00
2026-09-13 14:46:38 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 05:21:02 -07:00
2026-09-14 08:10:36 -07:00
2026-09-16 17:58:25 +00:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-15 03:53:13 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-15 18:55:47 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-15 14:52:26 +05:30
2026-09-13 09:18:02 -07:00
2026-09-15 04:12:13 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-16 16:42:47 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-14 08:10:36 -07:00
2026-09-13 09:18:02 -07:00
2026-09-15 19:04:00 -07:00
2026-09-15 21:49:33 -07:00
2026-09-10 18:15:54 -07:00
2026-09-13 20:57:03 -07:00
2026-09-15 05:26:25 -07:00
2026-09-13 09:18:02 -07:00
2026-09-15 04:13:44 -07:00
2026-09-15 03:39:45 -07:00
2026-09-15 04:10:27 -07:00
2026-09-15 21:57:59 +05:30
2026-09-13 05:08:20 -07:00
2026-09-11 02:06:32 -07:00
2026-09-16 17:00:50 -07:00
2026-09-15 18:48:35 -07:00
2026-09-15 18:30:32 -07:00
2026-09-15 15:10:41 -07:00
2026-09-13 14:44:38 -07:00
2026-09-15 04:11:11 -07:00
2026-09-13 15:41:01 -07:00
2026-09-15 18:48:35 -07:00
2026-09-15 04:12:13 -07:00
2026-09-12 08:47:21 -07:00
2026-09-12 01:49:28 -07:00
2026-09-15 19:28:39 -07:00
2026-09-15 19:28:39 -07:00
2026-09-13 21:13:23 -07:00
2026-09-16 11:06:52 -07:00
2026-09-15 04:11:11 -07:00
2026-09-15 18:30:32 -07:00
2026-09-15 04:12:13 -07:00
2026-09-16 11:06:52 -07:00
2026-09-16 11:06:52 -07:00
2026-09-13 05:08:20 -07:00
2026-09-13 21:07:35 -07:00
2026-09-15 04:12:13 -07:00
2026-09-15 04:12:13 -07:00
2026-09-15 04:12:13 -07:00
2026-09-15 04:12:13 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-11 06:37:27 -07:00
2026-09-15 03:36:22 -07:00
2026-09-13 19:05:28 +05:30
2026-09-15 03:46:29 -07:00
2026-09-16 16:48:42 -07:00
2026-09-16 14:21:14 -07:00
2026-09-16 16:48:42 -07:00
2026-09-16 16:48:42 -07:00
2026-09-16 16:58:22 -07:00
2026-09-13 23:20:01 -04:00
2026-09-15 18:54:51 -07:00
2026-09-11 15:28:37 -07:00
2026-09-12 08:49:16 -07:00
2026-09-16 14:34:22 -07:00
2026-09-16 14:34:22 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-16 16:48:42 -07:00
2026-09-16 16:48:42 -07:00
2026-09-15 04:13:44 -07:00
2026-09-13 09:18:02 -07:00
2026-09-15 18:27:06 -07:00
2026-09-13 09:18:02 -07:00
2026-09-13 09:18:02 -07:00
2026-09-16 16:43:08 -07:00
2026-09-13 09:18:02 -07:00
2026-09-15 18:27:06 -07:00
2026-09-16 14:34:59 -07:00