Skip to content

Glob tool fails with WebAssembly parsing error in WSL2 #22862

@MaoMao-Kun

Description

@MaoMao-Kun

Description

The glob tool fails with WebAssembly parsing error for ANY pattern. Other tools (read, edit, bash) work normally.
Error message:
WebAssembly.Module doesn't parse at byte 175: wasm-simd is not enabled, in function at index 81
This error mentions wasm-simd which suggests WebAssembly SIMD instructions are not enabled in the Node.js runtime under WSL2.

Plugins

No response

OpenCode version

1.4.6

Steps to reproduce

  1. Run opencode in WSL2 environment
  2. AI uses glob command:
    • glob pattern: "*.json"
    • glob pattern: "*"
    • glob pattern: "**/*"

Screenshot and/or share link

Image

Operating System

WSL2 (Ubuntu/Linux) / Kernel: Linux 6.6.87.2-microsoft-standard-WSL2 / Architecture: x86_64

Terminal

bash (xterm-256color)

Metadata

Metadata

Assignees

Labels

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

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