nesquena-hermes
1165bd9ca2
fix( #5626 ): ignore inactive compacted state-db rows in context replay
...
get_state_db_session_messages() returned archived (active=0) rows that in-place
compaction had marked inactive. WebUI reconciliation feeds this reader straight
into the next model-facing context (reconciled_state_db_messages_for_session,
prefer_context=True), so those archived rows got pulled back in — resurrecting
pre-compaction history and making every later turn re-trigger compression. Now,
WHEN the messages table exposes an `active` column, inactive rows are excluded by
default (`AND (active IS NULL OR active != 0)` — NULL/legacy rows preserved), with
an `include_inactive=True` escape hatch for explicit recovery/audit callers.
Schemas without the column are unaffected (guarded by `'active' in available`).
Contributor stage; ungated on arrival. Co-authored-by: ai-ag2026 <ai-ag2026@users.noreply.github.com >
2026-07-05 08:59:21 +00:00
..
2026-07-05 08:35:14 +00:00
2026-06-30 16:06:39 -04:00
2026-07-03 19:46:56 +00:00
2026-07-02 05:44:48 +00:00
2026-07-05 07:10:23 +00:00
2026-06-30 18:06:11 +00:00
2026-06-30 19:49:07 +00:00
2026-07-01 16:30:34 -04:00
2026-06-30 14:31:28 -04:00
2026-07-02 05:44:48 +00:00
2026-07-02 05:44:48 +00:00
2026-07-02 05:44:48 +00:00
2026-07-02 05:44:48 +00:00
2026-07-01 06:36:02 +00:00
2026-07-03 23:05:44 -04:00
2026-07-04 01:15:26 +00:00
2026-07-05 01:49:08 +00:00
2026-07-02 07:15:53 +00:00
2026-06-30 17:13:45 +00:00
2026-07-02 16:24:39 +00:00
2026-07-01 17:46:03 +00:00
2026-07-05 01:15:09 +00:00
2026-07-02 02:24:55 +00:00
2026-07-01 23:26:15 +00:00
2026-07-01 17:17:11 +00:00
2026-07-05 01:15:09 +00:00
2026-07-03 23:05:44 -04:00
2026-07-05 06:50:34 +00:00
2026-07-04 22:46:56 +00:00
2026-07-01 07:01:51 -05:00
2026-07-05 02:35:10 +00:00
2026-07-02 01:15:57 +00:00
2026-07-01 23:24:38 +00:00
2026-07-02 08:17:44 +00:00
2026-07-01 00:40:25 +00:00
2026-07-01 14:21:09 +08:00
2026-07-01 00:40:25 +00:00
2026-07-01 17:46:03 +00:00
2026-07-01 00:40:25 +00:00
2026-07-02 00:23:10 +00:00
2026-07-01 23:49:25 +00:00
2026-07-01 23:49:25 +00:00
2026-07-03 20:49:51 +00:00
2026-07-05 01:25:50 +00:00
2026-07-01 17:46:03 +00:00
2026-07-02 05:44:48 +00:00
2026-07-01 17:46:03 +00:00
2026-07-01 17:46:03 +00:00
2026-07-02 01:15:57 +00:00
2026-07-02 01:15:57 +00:00
2026-07-03 19:45:37 +00:00
2026-07-05 08:35:14 +00:00
2026-07-02 08:17:44 +00:00
2026-07-04 22:46:56 +00:00
2026-07-03 19:55:29 +02:00
2026-07-04 18:32:43 +00:00
2026-07-03 20:49:51 +00:00
2026-07-03 20:49:51 +00:00
2026-07-01 15:00:04 +00:00
2026-07-05 06:50:34 +00:00
2026-07-02 15:40:58 -04:00
2026-07-04 00:42:07 -04:00
2026-07-02 01:15:57 +00:00
2026-07-02 04:36:45 +00:00
2026-07-04 21:24:17 +00:00
2026-07-02 08:17:44 +00:00
2026-07-01 20:24:57 +00:00
2026-07-02 15:43:42 -04:00
2026-07-03 20:49:51 +00:00
2026-07-02 13:38:43 +00:00
2026-07-01 23:26:15 +00:00
2026-07-04 13:46:59 -04:00
2026-06-30 20:59:19 -04:00
2026-07-04 22:34:28 +00:00
2026-07-05 00:35:26 +00:00
2026-07-02 04:36:45 +00:00
2026-07-02 00:44:24 +00:00
2026-07-01 20:33:09 +00:00
2026-07-02 00:44:24 +00:00
2026-07-04 22:34:28 +00:00
2026-07-01 16:19:53 -04:00
2026-07-03 19:44:32 +00:00
2026-07-02 04:36:45 +00:00
2026-07-04 18:56:58 +00:00
2026-07-01 23:26:15 +00:00
2026-06-30 21:11:54 -05:00
2026-07-01 18:01:39 +00:00
2026-07-03 20:49:51 +00:00
2026-07-02 05:14:00 +00:00
2026-07-02 01:40:19 +00:00
2026-07-03 20:26:18 +00:00
2026-07-03 08:57:44 -04:00
2026-07-01 18:14:39 +00:00
2026-07-03 19:55:37 +02:00
2026-07-02 00:44:24 +00:00
2026-07-02 07:15:53 +00:00
2026-06-30 17:13:45 +00:00
2026-07-04 18:42:22 +00:00
2026-07-02 22:19:13 -04:00
2026-07-02 04:01:38 +00:00
2026-06-30 14:31:28 -04:00
2026-07-02 18:04:28 +00:00
2026-07-01 23:24:38 +00:00
2026-07-04 08:51:13 +00:00
2026-07-05 01:15:09 +00:00
2026-07-01 20:12:38 +00:00
2026-07-03 22:04:54 +00:00
2026-06-30 16:06:39 -04:00
2026-07-01 20:24:57 +00:00
2026-07-05 05:05:30 +00:00
2026-07-01 17:41:31 +08:00
2026-07-01 18:00:28 +00:00
2026-07-01 18:45:18 +00:00
2026-07-01 17:17:11 +00:00
2026-07-02 10:09:55 +00:00
2026-07-01 22:12:30 +00:00
2026-07-04 13:23:37 +10:00
2026-07-02 04:36:45 +00:00
2026-07-02 16:34:37 +00:00
2026-07-03 09:22:50 -04:00
2026-07-03 20:04:41 +02:00
2026-07-04 08:06:33 +00:00
2026-07-05 04:48:50 +00:00
2026-07-04 06:15:42 +00:00
2026-07-05 00:53:42 +00:00
2026-07-04 20:15:20 +00:00
2026-07-05 02:10:30 +00:00
2026-07-05 04:04:02 +00:00
2026-07-04 21:40:21 +00:00
2026-07-04 23:40:10 +00:00
2026-07-05 02:10:30 +00:00
2026-07-05 00:12:19 +00:00
2026-07-04 20:55:06 +00:00
2026-07-04 15:50:05 +08:00
2026-06-30 16:06:39 -04:00
2026-07-01 15:22:59 -04:00
2026-07-04 22:09:50 +00:00
2026-07-02 08:48:47 +10:00
2026-07-04 05:32:51 +00:00
2026-07-01 07:54:48 -05:00
2026-06-30 18:54:36 +00:00
2026-07-05 06:40:26 +00:00
2026-07-04 07:28:44 +00:00
2026-06-30 23:07:53 +00:00
2026-07-01 17:46:03 +00:00
2026-07-02 05:13:59 +00:00
2026-07-02 08:17:44 +00:00
2026-07-01 07:01:51 -05:00
2026-07-02 18:27:27 +00:00
2026-07-03 20:49:51 +00:00
2026-07-01 23:26:15 +00:00
2026-07-05 07:10:23 +00:00
2026-07-02 22:10:05 -04:00
2026-07-01 10:02:45 -05:00
2026-07-03 21:24:08 +00:00
2026-07-02 16:34:37 +00:00
2026-07-02 03:34:36 +00:00
2026-07-04 05:38:49 +00:00
2026-07-01 08:49:37 +00:00
2026-07-02 02:36:09 +00:00
2026-07-03 20:49:51 +00:00
2026-07-05 08:07:38 +00:00
2026-07-02 05:13:59 +00:00
2026-07-04 03:39:18 +00:00
2026-06-30 18:04:29 +00:00
2026-07-01 15:50:24 +00:00
2026-06-30 18:04:29 +00:00
2026-07-01 23:26:15 +00:00
2026-07-01 17:17:11 +00:00
2026-07-04 21:51:38 +00:00
2026-06-30 23:18:00 +00:00
2026-07-01 15:00:04 +00:00
2026-07-05 08:59:21 +00:00
2026-07-04 21:24:17 +00:00
2026-07-02 20:46:33 +00:00
2026-07-01 15:00:04 +00:00
2026-07-04 22:34:28 +00:00
2026-07-01 18:06:21 +00:00