Dashboard › opencode-lore › Distillation
805828e8-b046-4dc4-9e12-fc70539d275d["lore_tm_v1_XJ2EYgou4UC2yVdEoZvPGfPf-dS90WVboN3-l3fVfy0","lore_tm_v1_VuZgNDtbNxH0HXME60Jabl8e00TOhTZDvxZmave--cs"]
Date: Sep 16, 2026
/home/byk/Code/opencode-lore-embedding-runtime/packages/core/src/embedding-worker.ts lines 110–314 showed isCorruptModelError(msg: string): boolean excludes network/auth/HTTP errors, recognizes protobuf/model parsing, deserialization, and corruption signatures, and must remain synchronized with embedding-worker-types.ts.isNativeOrtLoadError(msg: string): boolean first requires a native-runtime signature such as onnxruntime_binding.node, an ONNX Runtime shared library, or OrtGetApiBase, then recognizes loader failures including ERR_DLOPEN_FAILED, invalid ELF/Mach-O/Win32 binaries, truncated files, missing shared objects/images/modules, undefined or missing symbols, and dlopen.ensurePipeline() in /home/byk/Code/opencode-lore-embedding-runtime/packages/core/src/embedding-worker.ts attempts loadPipeline() lazily. For non-vendored models using the native binding, a native ONNX loader error posts { type: "init-needs-wasm", error: msg }, sets wasmRespawnRequested = true, and returns without posting init-error.ensurePipeline() checks cachedModelLooksIntact() before destructive deletion. If files are intact and usedNativeBinding is true, it treats parsing failure as native-runtime incompatibility, requests a fresh WASM worker via init-needs-wasm, and avoids init-error; if already on WASM, it retries loadPipeline() once without purging. If files are not intact, it calls purgeCachedModel() before a redownload retry. Vendored models skip purge/redownload because their model is bundled and read-only.stderrSilenced and emitted with console.debug rather than console.warn; the stated escalation rule reserves warnings for actionable/Sentry-warning-worthy events and avoids corrupting host TUI output.