Bug Report
Summary
I encountered two consecutive issues while installing and running the latest Hyperspace CLI on WSL2 (Linux x64).
The first issue is a missing runtime asset (loro_wasm_bg.wasm) in the published CLI package. After manually restoring the correct file from the upstream loro-crdt@1.10.6 package, the daemon progresses further but immediately fails with a duplicate command registration error.
These issues appear to be independent of my local environment and are reproducible.
Environment
| Component |
Value |
| Hyperspace CLI |
v2 (5.85.32) |
| Runtime |
Node.js v22.18.0 |
| Platform |
Linux x64 |
| Kernel |
6.18.33.1-microsoft-standard-WSL2 |
| Distribution |
Kali Linux (WSL2) |
| GPU |
NVIDIA GeForce RTX 4050 Laptop GPU |
Issue 1: Missing loro_wasm_bg.wasm
Running:
fails with:
Fatal error: Error: ENOENT: no such file or directory,
open '/home/<user>/.local/bin/loro_wasm_bg.wasm'
Stack trace:
../../node_modules/.pnpm/loro-crdt@1.10.6/node_modules/loro-crdt/nodejs/loro_wasm.js
Investigation
The official release archive:
aios-cli-x86_64-unknown-linux-gnu.tar.gz
does not contain:
However, the exact upstream dependency used by the CLI:
does include:
package/nodejs/loro_wasm_bg.wasm
I extracted the matching WASM file and copied it to:
~/.local/bin/loro_wasm_bg.wasm
After doing so, the original ENOENT error disappeared completely.
This suggests the published CLI package is missing a required runtime asset.
Issue 2: Duplicate command registration
After restoring the missing WASM file, running:
now fails with:
Fatal error:
Error: cannot add command 'search' as already have command 'search'
Stack trace:
attachAgentsAppsVerbs()
registerAllCommands()
Commander.js
Reproduction
This issue reproduces consistently with:
- Fresh installation
- Fresh
HYPERSPACE_HOME
- Fresh
$HOME
- Fresh
XDG_CONFIG_HOME
- Fresh
XDG_DATA_HOME
Example:
HOME=$(mktemp -d) hyperspace daemon
Result:
Fatal error:
cannot add command 'search' as already have command 'search'
This indicates the duplicate registration is occurring internally and is not caused by user configuration.
Additional observations
The CLI help works correctly:
However:
always fails with the duplicate search registration after the missing WASM file is restored.
Expected behavior
- The release package should include all required runtime assets.
hyperspace daemon should start successfully without requiring manual intervention.
- Command registration should occur only once.
Actual behavior
- Missing
loro_wasm_bg.wasm
- Manual restoration required
- Daemon then fails due to duplicate
search command registration
Notes
I spent some time debugging this to isolate the issue from local configuration problems.
I verified:
- ✅ GPU configuration
- ✅ WSL configuration
- ✅ Clean user profiles
- ✅ Fresh Hyperspace home
- ✅ Official release package contents
The behavior is reproducible and appears to originate from the distributed CLI itself rather than the local environment.
If this is useful, I'd be happy to investigate further or submit a fix/PR if the relevant source for this component is available.
Bug Report
Summary
I encountered two consecutive issues while installing and running the latest Hyperspace CLI on WSL2 (Linux x64).
The first issue is a missing runtime asset (
loro_wasm_bg.wasm) in the published CLI package. After manually restoring the correct file from the upstreamloro-crdt@1.10.6package, the daemon progresses further but immediately fails with a duplicate command registration error.These issues appear to be independent of my local environment and are reproducible.
Environment
Issue 1: Missing
loro_wasm_bg.wasmRunning:
fails with:
Stack trace:
Investigation
The official release archive:
does not contain:
However, the exact upstream dependency used by the CLI:
does include:
I extracted the matching WASM file and copied it to:
After doing so, the original ENOENT error disappeared completely.
This suggests the published CLI package is missing a required runtime asset.
Issue 2: Duplicate command registration
After restoring the missing WASM file, running:
now fails with:
Stack trace:
Reproduction
This issue reproduces consistently with:
HYPERSPACE_HOME$HOMEXDG_CONFIG_HOMEXDG_DATA_HOMEExample:
HOME=$(mktemp -d) hyperspace daemonResult:
This indicates the duplicate registration is occurring internally and is not caused by user configuration.
Additional observations
The CLI help works correctly:
However:
always fails with the duplicate
searchregistration after the missing WASM file is restored.Expected behavior
hyperspace daemonshould start successfully without requiring manual intervention.Actual behavior
loro_wasm_bg.wasmsearchcommand registrationNotes
I spent some time debugging this to isolate the issue from local configuration problems.
I verified:
The behavior is reproducible and appears to originate from the distributed CLI itself rather than the local environment.
If this is useful, I'd be happy to investigate further or submit a fix/PR if the relevant source for this component is available.