kyssta-exe
7eb9716ad7
fix(agent): apply persist override to the DB row only, never the live list ( #48677 )
...
The persist user-message override was applied in place to the live messages
list. On the early crash-resilience persist (which runs BEFORE api_messages is
built), that stripped observed group-chat context off the live user message and
silently dropped it when observe_unmentioned_group_messages was enabled.
Fix at the single chokepoint: _flush_messages_to_session_db resolves the
override (idx/content/timestamp) locally and applies it ONLY to the row written
to the DB — the live dict is never mutated, so EVERY persist caller (early
persist, mid tool-loop flush, /resume, /branch) is protected uniformly. This
supersedes the earlier shallow-copy approach, which broke the intrinsic
_DB_PERSISTED_MARKER idempotency (copies never propagated the marker back to
the live dicts → duplicate rows) and closes the sibling class tracked in #56303 .
Trailing empty-response scaffolding is still dropped from the live list in
_persist_session (unchanged behavior).
Salvaged from #48817 ; chokepoint reworked to coexist with the marker-based
dedup (#50372 ).
Co-authored-by: kyssta-exe <kyssta-exe@users.noreply.github.com >
2026-07-01 17:28:04 +05:30
..
2026-04-07 17:19:07 -07:00
2026-05-19 17:27:24 -07:00
2026-06-19 11:37:51 -07:00
2026-07-01 03:18:41 -07:00
2026-06-07 02:15:23 -07:00
2026-05-28 22:26:25 -07:00
2026-06-28 01:15:21 -07:00
2026-06-27 21:07:53 -07:00
2026-06-27 19:37:33 -07:00
2026-05-24 15:14:13 -07:00
2026-06-28 00:57:42 -07:00
2026-06-30 01:43:40 -07:00
2026-07-01 00:20:32 -07:00
2026-04-19 22:43:09 -07:00
2026-05-17 02:29:41 -07:00
2026-05-28 22:26:25 -07:00
2026-06-16 06:23:24 -07:00
2026-06-20 11:38:01 -07:00
2026-05-21 12:49:21 +05:30
2026-06-22 14:54:53 -07:00
2026-04-24 03:10:19 -07:00
2026-06-30 15:30:06 -07:00
2026-06-21 11:35:09 -07:00
2026-06-08 09:41:34 -07:00
2026-06-21 16:39:02 -07:00
2026-05-09 21:06:19 -07:00
2026-05-28 22:26:25 -07:00
2026-05-27 01:52:34 -07:00
2026-06-18 21:37:52 -07:00
2026-05-09 12:28:42 -07:00
2026-05-28 22:26:25 -07:00
2026-06-25 12:56:05 -07:00
2026-05-28 22:26:25 -07:00
2026-06-25 13:08:18 -07:00
2026-06-27 03:04:26 -07:00
2026-05-28 22:26:25 -07:00
2026-04-07 17:19:07 -07:00
2026-05-28 22:26:25 -07:00
2026-05-20 11:44:10 -07:00
2026-04-27 08:35:50 -07:00
2026-06-27 19:23:15 -07:00
2026-04-17 12:32:03 -07:00
2026-06-21 11:29:49 -07:00
2026-05-28 22:26:25 -07:00
2026-05-28 22:26:25 -07:00
2026-06-12 01:06:46 -07:00
2026-06-21 18:05:07 -07:00
2026-04-30 11:18:39 -07:00
2026-05-29 19:23:05 -07:00
2026-07-01 01:08:27 -07:00
2026-05-28 22:26:25 -07:00
2026-06-27 04:39:26 -07:00
2026-06-24 23:02:48 -05:00
2026-07-01 16:17:46 +05:30
2026-06-27 19:07:02 -07:00
2026-06-22 18:23:21 -05:00
2026-06-25 12:56:05 -07:00
2026-06-30 15:57:59 -07:00
2026-05-02 02:09:46 -07:00
2026-05-28 22:26:25 -07:00
2026-05-28 22:26:25 -07:00
2026-05-28 22:26:25 -07:00
2026-05-28 22:26:25 -07:00
2026-05-27 11:30:55 -07:00
2026-05-05 05:00:05 -07:00
2026-05-28 22:26:25 -07:00
2026-05-10 22:28:01 -07:00
2026-06-07 22:17:35 -07:00
2026-06-17 01:04:26 +08:00
2026-06-16 10:37:37 -07:00
2026-06-30 04:22:56 -07:00
2026-07-01 01:59:00 -07:00
2026-06-30 12:07:01 -07:00
2026-06-07 21:50:57 -07:00
2026-06-18 15:46:19 +05:30
2026-06-06 13:18:18 +05:30
2026-06-12 12:21:29 -07:00
2026-05-25 01:47:55 -07:00
2026-06-28 01:15:21 -07:00
2026-07-01 13:36:50 +05:30
2026-05-28 00:28:42 -07:00
2026-05-31 17:46:56 -05:00
2026-06-30 03:27:41 -07:00
2026-07-01 02:18:56 -07:00
2026-06-21 22:43:48 -07:00
2026-05-28 22:26:25 -07:00
2026-04-07 17:19:07 -07:00
2026-05-31 06:14:32 -07:00
2026-06-07 22:22:01 -07:00
2026-05-28 22:26:25 -07:00
2026-05-09 22:51:25 -07:00
2026-06-30 15:57:52 -07:00
2026-04-22 18:34:25 -07:00
2026-07-01 17:28:04 +05:30
2026-04-16 16:36:33 -07:00
2026-05-12 00:16:45 +05:30
2026-05-28 22:26:25 -07:00
2026-05-28 22:26:25 -07:00
2026-06-19 18:06:38 -04:00
2026-06-05 20:59:36 -05:00
2026-05-28 22:26:25 -07:00
2026-04-25 09:51:39 -07:00
2026-05-28 22:26:25 -07:00
2026-06-30 16:41:09 -07:00
2026-05-28 22:26:25 -07:00
2026-05-28 22:26:25 -07:00
2026-06-28 02:05:20 -07:00
2026-05-13 17:32:22 -07:00
2026-04-24 05:35:43 -07:00
2026-06-27 04:39:26 -07:00
2026-05-27 05:43:20 -07:00
2026-06-13 14:35:00 -07:00
2026-06-10 12:39:44 -07:00
2026-05-28 22:26:25 -07:00
2026-05-09 14:36:58 -07:00
2026-05-28 22:26:25 -07:00
2026-05-19 17:27:24 -07:00
2026-05-24 07:38:24 -07:00
2026-06-24 02:15:57 +05:30
2026-05-29 03:44:49 -07:00
2026-05-19 20:49:11 +01:00
2026-06-27 22:03:14 -07:00
2026-04-15 15:03:28 -07:00
2026-05-28 22:26:25 -07:00
2026-06-07 21:50:57 -07:00