Files
SenMeshNet/electron/bridges/inspection/reportScheduler.cjs
zhaolei 1c3c8c4b20
Some checks failed
AI automation / Route event (push) Has been cancelled
AI automation / Hand reopened issue to maintainers (push) Has been cancelled
AI automation / Clean source issue state (push) Has been cancelled
AI automation / Reconcile handoffs (push) Has been cancelled
AI automation / Classify issue (push) Has been cancelled
AI automation / Claude Code smoke (push) Has been cancelled
AI automation / Review issue follow-up (push) Has been cancelled
AI automation / Publish issue follow-up (push) Has been cancelled
AI automation / Implement with Claude Code (push) Has been cancelled
AI automation / Publish implement PR (push) Has been cancelled
AI automation / Continue queued issue comments (push) Has been cancelled
AI automation / Codex review loop (push) Has been cancelled
AI automation / Publish Codex fix (push) Has been cancelled
AI automation / Clear Codex dispatch marker (push) Has been cancelled
AI automation / Own PR re-request Codex (push) Has been cancelled
AI automation / External PR re-request Codex (push) Has been cancelled
AI automation / Poll Codex reaction / retry (push) Has been cancelled
fix: 巡检报告快照 3 层防重复锁
修复巡检报告快照可能多次生成的竞态:

1. reportScheduler._inProgress —— 快照执行 >60s 时,
   下一个 tick 进来直接跳过,防止定时 tick 重入
2. index.cjs._isSnapshotRunning 双向互斥 ——
   reportScheduler.tick 和 IPC 手动触发路径互相感知,
   谁先进来谁锁,另一条路径跳过
3. IPC inspection:runReportSnapshot 入口拦截 ——
   用户连点"立即巡检"按钮被拒绝

之前已修:renderer scheduler:start 不再触发 scanAllNow。
2026-10-21 17:13:21 +08:00

6.5 KiB