rwadurian/frontend/mining-app/lib/core
hailin cfa0e2ca40 fix(mining-app): 更新弹窗点击"立即更新"无反应 — 进度流订阅竞态修复
问题根因:
SelfHostedUpdater._listenToProgress() 在 initState 和 _startDownload 中
订阅 UpdateService.downloadProgressStream,但该 getter 返回
_downloadManager?.progressStream —— _downloadManager 在 downloadUpdate()
调用前为 null,?.listen 无操作。downloadUpdate() 创建新 _downloadManager
后,其 progressStream 无人监听,进度事件全部丢失,UI 无任何反馈。

修复:
1. UpdateService 新增持久化广播流 _downloadProgressController,
   downloadUpdate() 创建新 DownloadManager 后将其进度转发到此流
2. downloadProgressStream getter 改为返回持久化流(非 nullable)
3. SelfHostedUpdater 在 initState 中一次性订阅持久化流,
   dispose 时取消订阅,_startDownload 不再重复订阅

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 12:24:47 -08:00
..
config fix: 修复auth-service CDC配置和API路由 2026-01-11 08:29:16 -08:00
constants feat(frontend): 添加全局深色模式支持 2026-01-19 19:08:03 -08:00
di fix(admin): correct distributed shares calculation to use 2M pool 2026-01-16 08:59:46 -08:00
error feat(mining-ecosystem): 添加挖矿生态系统完整微服务与前端 2026-01-10 17:45:46 -08:00
network feat(p2p-transfer): 实现P2P划转手续费功能(全栈) 2026-01-30 06:44:19 -08:00
router feat(mining-app): 分离发送/接收记录 + 隐藏买入待开启 2026-01-29 22:10:47 -08:00
telemetry feat: 集成 mining-app 升级和遥测功能,扩展 mobile-upgrade 支持多应用 2026-01-28 20:03:26 -08:00
updater fix(mining-app): 更新弹窗点击"立即更新"无反应 — 进度流订阅竞态修复 2026-01-30 12:24:47 -08:00
utils fix(asset): formatCompact保留原始精度(最多8位小数) 2026-01-20 05:27:50 -08:00