From 54805c2bd669ee868647bdde88ba047789ec5ed4 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 14 Mar 2026 06:35:10 +0000 Subject: [PATCH] chore: plan execution layer status sync system Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com> --- core/broadcast-listener/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/broadcast-listener/index.js b/core/broadcast-listener/index.js index d118e4ab..4e0d3b84 100644 --- a/core/broadcast-listener/index.js +++ b/core/broadcast-listener/index.js @@ -97,9 +97,12 @@ function isDuplicate(broadcastId) { try { const memory = JSON.parse(fs.readFileSync(MEMORY_PATH, 'utf-8')); const events = memory.events || []; + const today = new Date().toISOString().slice(0, 10); + return events.some(e => e.broadcast_id === broadcastId || - (e.type === 'broadcast' && e.description === broadcastId) + (e.type === 'broadcast' && e.description === broadcastId) || + (e.type === 'broadcast' && e.description === broadcastId && (e.date || '').startsWith(today)) ); } catch { return false;