FileDelivery and WatchDelivery memoized the promise that loads the WASM runtime with `??=` and cleared it only on session reset. A rejected load therefore stayed cached for the whole session, and because the data paths swallow that rejection, file transfer and forwarded watch bytes stopped silently until the page reconnected. A failed load is not a runtime. Clear the cached promise when it rejects, checking that it is still the current one, so the next plan update, read or incoming message loads again. This is the rule initializeRuntime in room-host.ts already follows.
0eb4ae0033
·
2026-11-24 21:00:41 +08:00
History