DrSmoothl
f111ba7129
fix(core): resolve self uid instead of shipping an empty one (forward/flash)
阶段 2:修 self-uid 收口暴露的 2 处静默空串 bug。warmup 未完成时 identity.selfUid
为 null,原 `?? ''` 会把空 uid 放进出网包:
- forward.ts:154 responseHead.toUid(转发广播消息坏包)
- flash-transfer.ts:279 fileset uploader.uid(空 uid 会被服务端 drop fileset)
均改为 `await resolveSelfUid(...)`:正常路径(selfUid 有值,几乎总是)命中缓存、取值
完全不变;仅在身份未就绪的极端情况从「静默发坏包」变成「明确报错」(fail-loud)。
两处外层函数本就 async。group-admin.ts:64 的 ?? '' 是合成本地事件、best-effort、
非出网,保留不动。
core 471 全绿、typecheck 干净;对抗性 Agent 确认正常路径不变、无测试回归。
2026-07-01 19:18:10 +08:00
..
2026-06-30 23:29:51 +08:00
2026-07-01 17:29:25 +08:00
2026-07-01 19:18:10 +08:00
2026-07-01 02:27:35 +08:00
2026-07-01 18:37:42 +08:00
2026-07-01 18:30:45 +08:00
2026-07-01 19:12:05 +08:00
2026-06-30 20:38:37 +08:00
2026-06-30 20:38:37 +08:00
2026-06-30 20:38:37 +08:00
2026-06-30 20:38:37 +08:00
2026-06-30 20:38:37 +08:00
2026-07-01 18:58:22 +08:00