Commit a071872
jet
fix: clear cross-run messaging-tool sent-text state after every compaction
When a run completes and the session compacts, the arrays tracking
texts sent via messaging tools (message(action=send), sessions_send,
etc.) were only cleared on compaction retries (willRetry=true).
On normal compaction (willRetry=false), stale entries survived into
the next run, where isMessagingToolDuplicateNormalized() could
false-positive on the new run's final reply text — silently dropping
legitimate block replies.
Clear messagingToolSentTexts, messagingToolSentTextsNormalized,
messagingToolSentTargets, and messagingToolSentMediaUrls
unconditionally at every compaction_end so the next run always
starts with a clean slate.
Co-Authored-By: Cha <[email protected]> via OpenClaw1 parent 800a0d3 commit a071872
2 files changed
Lines changed: 14 additions & 0 deletions
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
39 | 43 | | |
40 | 44 | | |
41 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
84 | 94 | | |
85 | 95 | | |
86 | 96 | | |
| |||
0 commit comments