dongliang
c754edd63b
fix: 先await统计基准再监听事件,消除竞态
根因:fetchStatistics(false)和fetchStatistics(checkDots=true)
是两个独立协程竞争,lastStats更新时机不可控。
修复:onViewCreated中用协程顺序执行:
1. 先 await safeApiCall → 设好 lastStats 基准
2. 再 observeEvents 开始监听通知
EventBus buffer=64 暂存期间的通知不丢失
这样当NewTaskArrived触发fetchStatistics(checkDots=true)时,
lastStats一定已有值,preNotificationStats也能正确保存。
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-29 19:50:55 +09:30
..
2026-04-29 19:50:55 +09:30
2026-04-27 11:26:50 +09:30
2026-04-27 15:59:26 +09:30
2026-04-27 11:26:50 +09:30