Skip to content

WASM ripgrep SIMD requirement breaks @ file fuzzy search on CPUs without AVX2 support #22617

@ssizzz

Description

@ssizzz

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

  1. Run opencode on a CPU without AVX2 support (check with cat /proc/cpuinfo | grep avx2)
  2. Try @ file search in TUI or run opencode debug rg files --limit 5
  3. 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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcoreAnything pertaining to core functionality of the application (opencode server stuff)

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions