You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Converted `cd /tmp` + `pwd` test from `.todo()` to a passing test (was blocked by WASI hang, now works)
1291
+
- Added VFS lazy directory entry population in kernel-worker.ts (populateDirEntries, inoToPath, populatedDirs)
1292
+
- Updated `ls` `.todo()` comment with better root cause analysis
1293
+
- Files changed:
1294
+
- packages/runtime/wasmvm/src/kernel-worker.ts — added lazy directory population in createKernelVfs()
1295
+
- packages/runtime/wasmvm/test/shell-terminal.test.ts — converted cd test from .todo() to real test, updated ls comment
1296
+
- Status: 4/5 tests pass, `ls /` remains .todo() due to child process WASI VFS access issue
1297
+
- The `ls` blocker: child processes spawned via proc_spawn have their own Worker and WASI polyfill, but ls fails with "ls-error-cannot-access-no-such-file" — the child's WASI path_open/fd_readdir cannot access directories despite VFS being available via RPC. brush-shell also reports "WARN could not retrieve pid for child process" suggesting proc_spawn PID tracking has issues.
1298
+
- **Learnings for future iterations:**
1299
+
- cd builtin no longer hangs — the prior WASI path_filestat_get blocking issue was fixed in an earlier iteration
1300
+
- brush-shell glob expansion (`echo /tmp/*`) does NOT work — outputs literal glob pattern
1301
+
- Child process WASI VFS requires getInodeByIno to lazy-populate directory entries, but the root ls failure is in child Worker WASI initialization, not VFS population
1302
+
- Pre-existing failures in driver.test.ts: cat /dev/null exits 1 (not 0), writeStdin to cat times out — not related to terminal tests
0 commit comments