Fix HTML entity decoding and broaden OSINT dedup window
- Replace single ' handler with generic numeric/hex entity decoder so ' and other unpadded entities are properly converted - Dedup urgent OSINT posts against all hot memory runs (last 3 sweeps) instead of only the previous sweep, preventing posts that drop out of one sweep from reappearing as "new" in the next Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -74,7 +74,9 @@ export class MemoryManager {
|
||||
// Add a new run to hot memory
|
||||
addRun(synthesizedData) {
|
||||
const previous = this.getLastRun();
|
||||
const delta = computeDelta(synthesizedData, previous);
|
||||
// Collect urgent post hashes from all hot runs for broader dedup window
|
||||
const priorRuns = this.hot.runs.map(r => r.data);
|
||||
const delta = computeDelta(synthesizedData, previous, {}, priorRuns);
|
||||
|
||||
// Compact the data for storage (strip large arrays)
|
||||
const compact = this._compactForStorage(synthesizedData);
|
||||
|
||||
Reference in New Issue
Block a user