Repository navigation
feat(fs): expose live mount/unmount on running Bash instance - #784
Merged
Merged
Conversation
Store an Arc<MountableFs> as the outermost filesystem layer in every Bash instance so that post-build code can call mount()/unmount() directly — no interpreter rebuild needed, shell state fully preserved. - Add `mountable` field to Bash struct - Add Bash::mount() and Bash::unmount() public methods - Wrap all Bash instances in MountableFs (both new() and builder().build()) - Delegate mkfifo through MountableFs to fix FIFO support - Add live_mounts.rs example (tested in CI) - Add rustdoc guide (crates/bashkit/docs/live_mounts.md) - Add integration tests (live_mount_tests.rs) - Update VFS spec (specs/003-vfs.md) Closes #782
This was referenced Mar 22, 2026
yonas
pushed a commit
to yonasBSD/bashkit
that referenced
this pull request
Mar 23, 2026
## Summary Release v0.1.13 — patch release with 5 PRs since v0.1.12. ### Highlights - **First contribution from @achicu!** Fixed `find` with multiple paths silently discarding results when one path is missing (everruns#781) - **Python/Node binding parity** — both bindings now expose the same API surface (everruns#785) - **Live mount/unmount** on running `Bash` instances for dynamic filesystem composition (everruns#784) ### What's Changed * fix(examples): exit langchain example to prevent NAPI event loop hang (everruns#786) by @chaliy * feat(bindings): add Python/Node binding parity (everruns#785) by @chaliy * feat(fs): expose live mount/unmount on running Bash instance (everruns#784) by @chaliy * chore: add cargo-vet exemptions for jni-sys 0.3.1, 0.4.1 and jni-sys-macros 0.4.1 (everruns#783) by @chaliy * fix: find with multiple paths no longer discards results on missing path (everruns#781) by @achicu
This was referenced Apr 5, 2026
chaliy
added a commit
that referenced
this pull request
May 30, 2026
## Summary - Add `Bash::mount()` and `Bash::unmount()` methods for attaching/detaching filesystems on a running interpreter without rebuilding — shell state (env vars, cwd, history) fully preserved - Every `Bash` instance now wraps its filesystem stack in a `MountableFs` as the outermost layer, enabling post-build mount operations - Delegate `mkfifo` through `MountableFs` to fix FIFO support through the new layer - Add rustdoc guide (`crates/bashkit/docs/live_mounts.md`), example (`live_mounts.rs`), integration tests, and VFS spec update Closes #782 ## Test plan - [x] 7 integration tests in `live_mount_tests.rs` covering mount, unmount, state preservation, builder compat, multiple mounts, hot-swap, and error cases - [x] All 2099+ existing tests pass (including mkfifo tests through the new MountableFs layer) - [x] `live_mounts` example runs successfully - [x] `cargo clippy --all-targets --all-features -- -D warnings` clean - [x] `cargo fmt --check` clean - [x] Example added to CI workflow
chaliy
added a commit
that referenced
this pull request
May 30, 2026
## Summary Release v0.1.13 — patch release with 5 PRs since v0.1.12. ### Highlights - **First contribution from @achicu!** Fixed `find` with multiple paths silently discarding results when one path is missing (#781) - **Python/Node binding parity** — both bindings now expose the same API surface (#785) - **Live mount/unmount** on running `Bash` instances for dynamic filesystem composition (#784) ### What's Changed * fix(examples): exit langchain example to prevent NAPI event loop hang (#786) by @chaliy * feat(bindings): add Python/Node binding parity (#785) by @chaliy * feat(fs): expose live mount/unmount on running Bash instance (#784) by @chaliy * chore: add cargo-vet exemptions for jni-sys 0.3.1, 0.4.1 and jni-sys-macros 0.4.1 (#783) by @chaliy * fix: find with multiple paths no longer discards results on missing path (#781) by @achicu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Bash::mount()andBash::unmount()methods for attaching/detaching filesystems on a running interpreter without rebuilding — shell state (env vars, cwd, history) fully preservedBashinstance now wraps its filesystem stack in aMountableFsas the outermost layer, enabling post-build mount operationsmkfifothroughMountableFsto fix FIFO support through the new layercrates/bashkit/docs/live_mounts.md), example (live_mounts.rs), integration tests, and VFS spec updateCloses #782
Test plan
live_mount_tests.rscovering mount, unmount, state preservation, builder compat, multiple mounts, hot-swap, and error caseslive_mountsexample runs successfullycargo clippy --all-targets --all-features -- -D warningscleancargo fmt --checkclean