DashboardCodeAlways remove all Bun-specific code and…

Always remove all Bun-specific code and build targets

Category: preference
Confidence: 1.00
ID: 019e9f06-597e-75c0-8f6a-2d2b4c144bc8
Project ID: ffa98226-3908-4f0c-936b-969018c62abf
Cross-project: No
Recalled in other projects: 2
Source session: (none)
Created: 2026-06-10 08:50:39
Updated: 2026-06-12 00:15:06

Cross-Project Recalls

ProjectHitsLast recalled
opencode-lore 7 2026-07-24
cli 1 2026-06-25

Content

Always remove all Bun-specific code: delete dist/bun directories, replace Bun APIs (Bun.mmap, Bun.file, Bun.zstdDecompressSync, DecompressionStream('zstd'), @sentry/bun) with Node.js equivalents, remove Bun-specific mocks/test assertions/build targets. Enforce Node.js >= 22.15 + pnpm + Vitest stack. Use node:worker_threads, node:fs, node:zlib, node:https, vitest run, npx tsx. Bun bugs (#18145, #25677, #31158) cause model-init OOM in WASM paths — numThreads=1 avoids pthread paths. Load workers via new URL('./worker.ts', import.meta.url); use Float32Array structured clone; worker.unref() for clean exit. Never add new Bun-specific code.

Move to: