lotherk
80154055f1
lcm: do not grow the conversation when the cut adds as much as it removes
...
/resume compacted N messages to N+1 every time. With keep_tail 6 and a short
history, the cut removed one message, then added the summary and the pinned
question: net +1. The context never shrank and the next /resume repeated it.
A message rewrite now happens only when it removes more messages than it adds
(drop > 1 + pinned). If the cut is that small, the old tool-output trim is kept
and the message list is left alone. test_compactor covers the 8-message case
(no change, no [lcm] row) and the 10-message case (10 -> 9).
make check: all tests passed.
2026-11-18 12:47:30 +00:00
..
2026-11-11 10:25:49 +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-17 23:21:56 +00:00
2026-11-10 08:49:27 +00:00
2026-11-08 20:50:33 +00:00
2026-11-16 14:06:54 +00:00
2026-11-10 06:04:58 +00:00
2026-11-10 08:56:23 +00:00
2026-11-18 06:48:01 +00:00
2026-11-16 17:48:22 +00:00
2026-11-18 06:48:01 +00:00
2026-11-10 08:07:24 +00:00
2026-11-17 21:34:57 +00:00
2026-11-18 06:48:01 +00:00
2026-11-11 23:05:12 +00:00
2026-11-16 16:59:49 +00:00
2026-11-13 19:35:41 +00:00
2026-11-08 20:19:01 +00:00
2026-11-16 09:06:51 +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-17 23:21:56 +00:00
2026-11-18 12:47:30 +00:00
2026-11-17 23:21:56 +00:00
2026-11-13 21:21:55 +00:00
2026-11-07 13:34:26 +00:00
2026-11-11 17:13:20 +00:00
2026-11-17 21:06:55 +00:00
2026-11-18 12:47:30 +00:00
2026-11-17 19:13:59 +00:00
2026-11-16 14:06:54 +00:00
2026-11-18 12:38:29 +00:00
2026-11-13 21:52:16 +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-08 20:50:33 +00:00
2026-11-08 20:50:33 +00:00
2026-11-11 22:12:26 +00:00
2026-11-13 19:35:41 +00:00
2026-11-18 12:22:52 +00:00
2026-11-09 22:46:25 +00:00
2026-11-16 16:59:49 +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-18 06:48:01 +00:00
2026-11-17 23:21:56 +00:00
2026-11-17 19:13:59 +00:00
2026-11-16 18:30:42 +00:00
2026-11-08 13:44:32 +00:00
2026-11-18 06:28:23 +00:00
2026-11-09 22:46:25 +00:00
2026-11-08 13:00:47 +00:00
2026-11-10 19:33:38 +00:00
2026-11-17 10:10:47 +00:00
2026-11-07 08:06:34 +00:00
2026-11-07 13:34:26 +00:00
2026-11-18 12:22:52 +00:00
2026-11-16 17:48:22 +00:00