What happened
After upgrading opencode from v1.4.3 to v1.4.6, the @ file search stopped working entirely. Running opencode debug rg files gives a WASM error.
Error message
WebAssembly.Module doesn't parse at byte 175: wasm-simd is not enabled, in function at index 81
My environment
- opencode v1.4.6 (also tried the
baseline package variant, same error)
- CPU flags show
sse4_1 sse4_2 ssse3 but no AVX2
- System ripgrep is installed and works fine (
rg --version returns 14.1.1)
Steps to reproduce
- Run opencode on a CPU without AVX2 support (check with
cat /proc/cpuinfo | grep avx2)
- Try
@ file search in TUI or run opencode debug rg files --limit 5
- See WASM SIMD error
Workaround
Back to v1.4.3
The older version appears to use external ripgrep instead of WASM, which works on my system.
What happened
After upgrading opencode from v1.4.3 to v1.4.6, the
@file search stopped working entirely. Runningopencode debug rg filesgives a WASM error.Error message
My environment
baselinepackage variant, same error)sse4_1 sse4_2 ssse3but no AVX2rg --versionreturns 14.1.1)Steps to reproduce
cat /proc/cpuinfo | grep avx2)@file search in TUI or runopencode debug rg files --limit 5Workaround
Back to v1.4.3
The older version appears to use external ripgrep instead of WASM, which works on my system.