Skip to content

[Bug]: Web client fails to start without WebAssembly since 0.1.12 nightly (markdown WASM created at import) #41356

Closed

Description

@grodriguez-fr

Before submitting

  • 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

  1. Run a 0.1.12 nightly server (seen on 0.1.12-nightly.20261122.5098, .5111 and .20261123.5124).
  2. 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.
  3. 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(new WebAssembly.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:

  1. 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.
  2. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions