maweibin
b8c7f31894
fix(sessions): prevent delivery-mirror prompt contamination with adjacent dedup and identity fallback (#99470) (#99504)
* fix(sessions): prevent delivery-mirror prompt contamination with adjacent dedup and identity fallback (#99470)
Two-layer defence against delivery-mirror entries leaking into provider
prompts after session rebuild / side-branch merge strips metadata:
Layer 1 (identity fallback): isTranscriptOnlyOpenClawAssistantMessage
gains an openclawDeliveryMirror field check to catch stripped-metadata
survivors that lost provider/model during rebuild.
Layer 2 (adjacent dedup): normalizeAssistantReplayContent collapses
adjacent byte-identical no-tool-call assistant messages, catching
fully-bare {role,content,usage} survivors invisible to any metadata
filter.
P1 fix: added 'tool_use' (native Anthropic snake_case) to
TOOL_CALL_TYPES in extractToolCallsFromAssistant so adjacent dedup
never collapses tool-call-bearing turns.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* fix(sessions): narrow delivery mirror replay filtering
* test(sessions): preserve tool-call replay duplicates
---------
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-07-16 15:19:49 -07:00
..
2026-07-14 09:27:02 -07:00
2026-07-01 01:10:57 -07:00
2026-06-22 14:08:46 +08:00
2026-07-06 12:30:12 +01:00
2026-06-04 20:02:33 -04:00
2026-06-03 15:20:39 -07:00
2026-07-16 00:40:15 -07:00
2026-07-10 13:31:22 +01:00
2026-07-10 13:31:22 +01:00
2026-07-13 00:42:56 -07:00
2026-07-13 00:42:56 -07:00
2026-06-17 15:59:58 +08:00
2026-07-14 03:04:37 -07:00
2026-07-14 03:04:37 -07:00
2026-06-04 20:02:33 -04:00
2026-05-31 22:32:28 -04:00
2026-06-04 20:02:33 -04:00
2026-06-04 20:02:33 -04:00
2026-06-22 10:07:09 -07:00
2026-06-22 10:07:09 -07:00
2026-07-13 15:40:31 -07:00
2026-07-13 15:40:31 -07:00
2026-05-31 22:32:28 -04:00
2026-07-13 00:42:56 -07:00
2026-07-03 19:55:00 -07:00
2026-07-03 19:55:00 -07:00
2026-07-13 15:40:31 -07:00
2026-07-13 15:40:31 -07:00
2026-06-04 20:02:33 -04:00
2026-07-13 02:45:34 -07:00
2026-07-13 02:45:34 -07:00
2026-06-22 18:56:01 +08:00
2026-07-13 00:42:56 -07:00
2026-06-04 20:02:33 -04:00
2026-06-04 20:02:33 -04:00
2026-07-14 06:24:21 +08:00
2026-07-14 06:24:21 +08:00
2026-06-23 08:04:35 +08:00
2026-06-22 09:37:09 +08:00
2026-06-04 20:02:33 -04:00
2026-07-13 00:42:56 -07:00
2026-06-04 20:02:33 -04:00
2026-06-04 20:02:33 -04:00
2026-06-04 20:02:33 -04:00
2026-06-04 20:02:33 -04:00
2026-06-04 20:02:33 -04:00
2026-06-03 15:20:39 -07:00
2026-06-04 20:02:33 -04:00
2026-07-14 00:00:05 -07:00
2026-07-14 00:00:05 -07:00
2026-07-01 06:42:54 -07:00
2026-07-11 20:47:34 -07:00
2026-07-14 12:19:39 -07:00
2026-06-04 20:02:33 -04:00
2026-07-09 09:51:30 +01:00
2026-07-14 09:27:02 -07:00
2026-06-04 20:02:33 -04:00
2026-07-12 22:34:53 -07:00
2026-07-12 22:34:53 -07:00
2026-07-02 17:24:59 -07:00
2026-07-13 00:42:56 -07:00
2026-07-11 20:47:34 -07:00
2026-05-31 22:32:28 -04:00
2026-07-10 10:25:08 +01:00
2026-07-04 08:40:41 -04:00
2026-07-04 08:40:41 -04:00
2026-06-03 15:20:39 -07:00
2026-06-23 07:45:50 +08:00
2026-06-24 15:51:55 +08:00
2026-06-24 15:51:55 +08:00
2026-07-12 14:29:52 +01:00
2026-07-09 22:58:03 +01:00
2026-07-12 10:05:50 +01:00
2026-07-13 15:40:31 -07:00
2026-07-13 15:40:31 -07:00
2026-07-12 10:05:50 +01:00
2026-06-04 20:02:33 -04:00
2026-07-10 23:32:28 +01:00
2026-07-11 10:16:34 -07:00
2026-06-23 03:46:22 +08:00
2026-06-04 20:02:33 -04:00
2026-06-04 20:02:33 -04:00
2026-06-17 16:06:41 +08:00
2026-07-16 11:36:07 -07:00
2026-07-16 11:36:07 -07:00
2026-07-14 01:00:24 -07:00
2026-06-03 15:20:39 -07:00
2026-07-14 05:50:55 +08:00
2026-07-14 05:50:55 +08:00
2026-07-13 15:40:31 -07:00
2026-07-13 15:40:31 -07:00
2026-07-13 03:22:00 -07:00
2026-06-04 20:02:33 -04:00
2026-07-03 16:24:43 -07:00
2026-07-13 00:42:56 -07:00
2026-06-03 15:20:39 -07:00
2026-07-13 15:40:31 -07:00
2026-07-13 15:40:31 -07:00
2026-07-04 14:30:47 -04:00
2026-07-13 00:42:56 -07:00
2026-06-04 20:02:33 -04:00
2026-06-03 15:20:39 -07:00
2026-07-13 15:40:31 -07:00
2026-07-13 15:40:31 -07:00
2026-07-05 07:43:43 -07:00
2026-07-05 07:43:43 -07:00
2026-06-04 20:02:33 -04:00
2026-07-13 03:22:00 -07:00
2026-06-04 20:02:33 -04:00
2026-06-03 15:20:39 -07:00
2026-07-04 08:40:41 -04:00
2026-07-11 17:50:33 +08:00
2026-07-16 15:19:49 -07:00
2026-06-04 20:02:33 -04:00
2026-06-04 20:02:33 -04:00
2026-07-09 15:03:12 +01:00