lotherk
139f5ae072
compact: judge the local bytes, so a resume can always compact
...
Automatic compaction was keyed only on stats.last_in, the prompt size the
provider reports with usage. A resumed session starts at 0, and a provider
that reports no usage leaves it at 0 - the session outgrows every endpoint's
window, the first request is refused, no usage arrives, and every later
resume fails the same way. Measured on 2026-11-22: a 9,095,724-byte session,
ctx=2,286,261 at junction, 503 no_endpoint_available on every retry.
The conversation bytes are there before anything is sent; the same four bytes
per token the target already uses are the second trigger.
tests/test_compact_resume.sh: a ~300 kB session, one turn after --resume; the
first request must be compacted. Counter-proof with the old agent.c: 302
messages, 321,087 bytes.
2026-11-22 11:34:21 +00:00
..
2026-11-21 21:26:43 +00:00
2026-11-19 00:05:05 +00:00
2026-11-18 23:16:26 +00:00
2026-11-18 23:03:09 +00:00
2026-11-13 19:35:41 +00:00
2026-11-16 14:06:54 +00:00
2026-11-17 12:31:58 +00:00
2026-11-10 06:04:58 +00:00
2026-11-11 22:12:26 +00:00
2026-11-12 03:30:32 +00:00
2026-11-22 08:25:42 +00:00
2026-11-19 15:20:20 +00:00
2026-11-10 08:49:27 +00:00
2026-11-19 00:05:05 +00:00
2026-11-16 14:06:54 +00:00
2026-11-10 06:04:58 +00:00
2026-11-21 21:26:43 +00:00
2026-11-21 21:26:43 +00:00
2026-11-21 21:26:43 +00:00
2026-11-21 21:26:43 +00:00
2026-11-10 08:07:24 +00:00
2026-11-21 21:25:51 +00:00
2026-11-21 21:26:43 +00:00
2026-11-18 23:03:09 +00:00
2026-11-18 23:16:26 +00:00
2026-11-21 21:26:43 +00:00
2026-11-08 20:19:01 +00:00
2026-11-22 10:26:06 +00:00
2026-11-21 21:26:43 +00:00
2026-11-11 10:25:49 +00:00
2026-11-07 08:06:34 +00:00
2026-11-08 20:19:01 +00:00
2026-11-18 23:16:26 +00:00
2026-11-22 11:34:21 +00:00
2026-11-21 21:25:51 +00:00
2026-11-18 23:16:26 +00:00
2026-11-20 16:45:36 +00:00
2026-11-18 23:03:09 +00:00
2026-11-21 21:25:51 +00:00
2026-11-11 17:13:20 +00:00
2026-11-18 23:03:09 +00:00
2026-11-21 21:26:22 +00:00
2026-11-22 08:25:36 +00:00
2026-11-21 21:25:51 +00:00
2026-11-22 10:26:06 +00:00
2026-11-19 07:15:30 +00:00
2026-11-16 14:06:54 +00:00
2026-11-21 21:26:43 +00:00
2026-11-18 23:03:09 +00:00
2026-11-18 06:48:01 +00:00
2026-11-12 03:22:49 +00:00
2026-11-17 19:13:59 +00:00
2026-11-17 10:10:47 +00:00
2026-11-18 23:03:09 +00:00
2026-11-08 20:50:33 +00:00
2026-11-21 21:26:43 +00:00
2026-11-18 23:16:26 +00:00
2026-11-18 12:22:52 +00:00
2026-11-09 22:46:25 +00:00
2026-11-18 23:03:09 +00:00
2026-11-10 08:56:23 +00:00
2026-11-13 20:52:46 +00:00
2026-11-11 22:12:26 +00:00
2026-11-18 12:22:52 +00:00
2026-11-16 16:27:03 +00:00
2026-11-09 22:46:25 +00:00
2026-11-21 21:26:43 +00:00
2026-11-18 23:16:26 +00:00
2026-11-18 23:03:09 +00:00
2026-11-21 21:25:51 +00:00
2026-11-19 14:16:56 +00:00
2026-11-08 13:44:32 +00:00
2026-11-19 09:29:11 +00:00
2026-11-18 23:03:09 +00:00
2026-11-08 13:00:47 +00:00
2026-11-18 23:03:09 +00:00
2026-11-20 16:45:36 +00:00
2026-11-07 08:06:34 +00:00
2026-11-07 13:34:26 +00:00
2026-11-22 10:26:06 +00:00
2026-11-22 08:25:42 +00:00
2026-11-16 17:48:22 +00:00