Dashboardopencode-lorebundle.ts ORT pthread path

bundle.ts ORT pthread path

Category: gotcha
Confidence: 1.00
ID: 01a0acd0-7e61-709c-95e7-1cab7bc72a29
Project ID: 6f4be9ff-ed84-4cca-a9e7-732a0b0b8677
Cross-project: No
Recalled in other projects: 0
Source session: 1awq7naDXSYC7XtOs
Created: 2026-09-14 16:57:18
Updated: 2026-09-17 00:42:20

Content

Trap: shipping unpatched ort-wasm-simd-threaded.mjs appears Node-safe, but only because embedding-worker.ts forces numThreads=1. Increasing it makes ONNX Runtime Web reach the pthread path and call new Worker(...), which crashes where no global Worker exists. Fix: keep single-thread execution, or patch the copied module exactly as build-binary-sea does before increasing numThreads.

Move to: