You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Web client fails to start without WebAssembly since 0.1.12 nightly (markdown WASM created at import) #41356
I searched existing issues and did not find a duplicate.
I included enough detail to reproduce or investigate the problem.
Area
apps/web
Steps to reproduce
Run a 0.1.12 nightly server (seen on 0.1.12-nightly.20261122.5098, .5111 and .20261123.5124).
Open the web client in a Chromium browser where WebAssembly is not exposed. This is the case on managed corporate machines (JIT disabled by policy), and can be reproduced with chrome --js-flags=--jitless.
Sign in / pair and load the app.
Expected behavior
The app starts. Features that need WebAssembly degrade gracefully (the markdown renderer already has a plain-text fallback in its caller).
Actual behavior
The app shows "T3 Code failed to start" and never loads.
pullRequestDetail.logic-*.js instantiates the WASM markdown renderer at module evaluation time:
Be(newWebAssembly.Module(Ue));
Without WebAssembly, this throws a ReferenceError while the chunk is being imported, which takes down the whole app. 0.1.7 nightly and 0.1.11 stable start fine in the same browser: their markdown renderer is not created at import time.
Impact
Blocks work completely
Version or commit
0.1.12-nightly.20261122.5111 (also .5098 and 0.1.12-nightly.20261123.5124)
Environment
Server on Linux x64. Client: Chrome 154 on Windows 10, managed machine where typeof WebAssembly === "undefined". Surface: web.
Logs or stack traces
ReferenceError: WebAssembly is not defined
at /assets/pullRequestDetail.logic-COTQiA9N.js:3:143645
Version: 0.1.12-nightly.20261122.5111
Channel: nightly
Surface: web
Platform: Win32
Workaround
Downgrading to 0.1.11 is refused once the 0.1.12 migrations have run (103 to 107), so I patched the served asset locally:
Only create the renderer when WebAssembly exists: typeof WebAssembly<"u"&&Be(new WebAssembly.Module(Ue));. The existing try/catch around the render call then falls back to escaped plain text and the app starts.
Plain text makes chat messages hard to read, so I also made that fallback render with a pure-JS markdown parser (marked) before falling back to plain text.
Suggested fix: create the WASM renderer lazily, or guard it, and keep a JS markdown fallback for browsers without WebAssembly.
Activity