Skip to content

fix(native-sidecar): propagate guest wasm deletions and renames to the VM shadow root#1645

Merged
NathanFlurry merged 1 commit into
mainfrom
fix-wasm-shadow-deletions
Jul 7, 2026
Merged

fix(native-sidecar): propagate guest wasm deletions and renames to the VM shadow root#1645
NathanFlurry merged 1 commit into
mainfrom
fix-wasm-shadow-deletions

Conversation

@NathanFlurry

Copy link
Copy Markdown
Member
  • Guest WASM fs.unlinkSync/fs.rmdirSync/fs.renameSync route kernel-direct, but the deleted/renamed path survived in the VM shadow root, so the exit-time shadow→kernel sync resurrected it (rm exited 0 while the file stayed visible to the same shell, later execs, and vm.exists; gzip left the original behind).
  • Mirror kernel-direct deletions and renames into the process shadow tree in service_javascript_fs_sync_rpc.
  • Un-breaks the rm removes file and gzip compress and decompress cases in packages/core tests/wasm-commands.test.ts, and adds a cross-exec deletion visibility regression test.

🤖 Generated with Claude Code

@railway-app railway-app Bot temporarily deployed to agentos / agentos-pr-1645 July 7, 2026 03:07 Destroyed
@NathanFlurry NathanFlurry merged commit c811392 into main Jul 7, 2026
1 of 4 checks passed
@NathanFlurry NathanFlurry deleted the fix-wasm-shadow-deletions branch July 7, 2026 03:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant