kshitijk4poor
80ab7d2b1c
fix(compression): dedupe current-turn rows when rotation splits the session mid-turn
...
When context-compression rotation fires mid-turn, the current user
message was persisted twice into the child session. Root cause: dedup
used id()-seeded sets of copies instead of markers on the live objects.
Replace with _DB_PERSISTED_MARKER-based dedup as the sole authority:
- _ensure_compressed_has_user_turn returns CompressedUserTurnOutcome
- After publish_compression_child succeeds, stamp the live anchor-source
row (not a drifted index) with _DB_PERSISTED_MARKER
- _sync_persisted_markers mirrors stamps from result to live lists by
scoped identity (handles direct-path, adoption divergence, _session_messages)
- Remove _flushed_db_message_ids from rotation commit path (markers replace it)
- Unconditional (loud) imports — no silent fallback
Salvage of #94996 by @fedosis, rebased on top of #95433 (stall-fallback,
already merged). Both conversation_compression.py and run_agent.py are
built from origin/main + #94996 's diff applied on top, preserving the
force_terminal refactor and _publish_new_fence from #95433 .
Credit: @fedosis original PR #94996 .
2026-08-28 02:47:34 +05:30
..
2026-08-25 01:48:43 +05:30
2026-08-23 02:14:35 -07:00
2026-08-26 10:10:11 -07:00
2026-08-26 10:10:11 -07:00
2026-08-13 02:03:40 -07:00
2026-08-14 21:54:56 -07:00
2026-08-12 23:47:28 -07:00
2026-08-14 21:27:05 -07:00
2026-08-15 00:34:29 -07:00
2026-08-18 20:34:46 -04:00
2026-08-20 12:29:11 -05:00
2026-08-23 02:54:30 -07:00
2026-08-16 19:53:07 -07:00
2026-08-13 11:41:59 -07:00
2026-08-27 04:37:36 -07:00
2026-08-24 20:11:18 -07:00
2026-08-13 11:45:27 -07:00
2026-08-26 10:10:11 -07:00
2026-08-16 10:27:52 -07:00
2026-08-22 19:30:10 -07:00
2026-08-22 19:30:10 -07:00
2026-08-16 01:55:00 -07:00
2026-08-14 21:54:56 -07:00
2026-08-14 13:56:58 -07:00
2026-08-20 20:20:23 -07:00
2026-08-15 01:04:19 -07:00
2026-08-15 01:04:19 -07:00
2026-08-24 11:25:04 -07:00
2026-08-24 21:46:05 -07:00
2026-08-26 12:58:35 +05:30
2026-08-23 19:02:30 -07:00
2026-08-24 11:25:04 -07:00
2026-08-15 03:16:21 -07:00
2026-08-23 18:27:07 -07:00
2026-08-26 21:38:20 -07:00
2026-08-23 18:27:07 -07:00
2026-08-27 12:42:38 +05:30
2026-08-28 02:47:34 +05:30
2026-08-26 07:16:04 -07:00
2026-08-28 02:29:27 +05:30
2026-08-23 15:03:29 +05:30
2026-08-23 18:27:07 -07:00
2026-08-26 07:16:04 -07:00
2026-08-14 01:08:13 -07:00
2026-08-26 07:16:04 -07:00
2026-08-24 04:14:26 +05:30
2026-08-16 06:31:46 -07:00
2026-08-23 20:01:18 -07:00
2026-08-12 23:47:28 -07:00
2026-08-14 21:54:56 -07:00
2026-08-22 04:20:48 +05:30
2026-08-16 22:06:41 -07:00
2026-08-25 00:31:14 -07:00
2026-08-23 20:01:18 -07:00
2026-08-14 16:37:36 -07:00
2026-08-27 17:22:02 +05:30
2026-08-16 22:06:08 -07:00
2026-08-15 01:04:19 -07:00
2026-08-23 20:02:07 -07:00
2026-08-23 18:43:12 -07:00
2026-08-13 15:24:47 +05:30
2026-08-27 21:07:21 +05:30
2026-08-16 02:01:41 -07:00
2026-08-23 17:47:50 -07:00
2026-08-14 02:04:24 +05:30
2026-08-23 18:25:19 -07:00
2026-08-23 13:34:32 +05:30
2026-08-19 22:41:05 -07:00
2026-08-13 23:15:25 +05:30
2026-08-24 21:45:30 -07:00
2026-08-13 23:15:25 +05:30
2026-08-15 01:04:19 -07:00
2026-08-20 00:03:50 +05:30
2026-08-17 12:58:51 -07:00
2026-08-17 12:58:51 -07:00
2026-08-14 22:04:16 -07:00
2026-08-13 23:10:16 +05:30
2026-08-14 21:36:41 -07:00
2026-08-13 15:24:47 +05:30
2026-08-13 15:24:47 +05:30
2026-08-19 13:56:11 -05:00
2026-08-24 03:20:57 -07:00
2026-08-23 02:14:35 -07:00
2026-08-14 03:31:22 +05:30
2026-08-21 00:24:32 -07:00
2026-08-15 00:33:01 -07:00
2026-08-24 20:25:10 -07:00
2026-08-25 12:59:29 -07:00
2026-08-18 02:12:30 -07:00
2026-08-25 03:55:55 -07:00
2026-08-23 17:47:50 -07:00
2026-08-25 12:59:29 -07:00
2026-08-17 14:06:16 -07:00
2026-08-25 12:59:29 -07:00
2026-08-15 11:09:56 +05:30
2026-08-13 15:24:47 +05:30
2026-08-21 12:23:47 +05:30
2026-08-26 10:10:11 -07:00
2026-08-19 22:56:04 -07:00
2026-08-19 16:04:22 -07:00
2026-08-27 03:24:20 -07:00
2026-08-22 16:47:39 +02:00
2026-08-19 22:11:13 -04:00
2026-08-13 12:23:36 -07:00
2026-08-19 08:52:03 -07:00
2026-08-19 08:52:03 -07:00
2026-08-15 00:33:01 -07:00
2026-08-19 09:14:12 -07:00
2026-08-19 08:52:01 -07:00
2026-08-16 01:55:51 -07:00
2026-08-23 19:04:37 -07:00
2026-08-19 16:32:17 -07:00
2026-08-20 11:36:54 +05:30
2026-08-23 20:00:30 -07:00
2026-08-21 13:21:46 +10:00
2026-08-16 11:32:02 -07:00
2026-08-23 13:34:32 +05:30
2026-08-15 23:03:52 -07:00
2026-08-19 19:41:42 -07:00
2026-08-15 02:45:50 -07:00
2026-08-16 06:24:56 -07:00
2026-08-14 21:54:56 -07:00
2026-08-21 13:24:43 +05:30
2026-08-14 14:15:42 -07:00
2026-08-25 02:45:10 -07:00
2026-08-18 20:34:46 -04:00
2026-08-23 18:25:19 -07:00
2026-08-27 16:13:45 +05:30
2026-08-16 22:07:43 -07:00
2026-08-25 12:59:29 -07:00
2026-08-24 20:10:44 -07:00
2026-08-15 00:33:01 -07:00
2026-08-16 22:10:02 -07:00
2026-08-23 18:24:43 -07:00
2026-08-14 21:41:26 -07:00
2026-08-25 01:34:56 +05:30
2026-08-15 01:04:19 -07:00
2026-08-15 01:04:19 -07:00
2026-08-16 01:56:18 -07:00
2026-08-20 12:35:20 +05:30
2026-08-24 03:23:07 -07:00
2026-08-16 00:14:58 -07:00
2026-08-22 16:07:12 +05:30