Skip to content

feat(fs): expose live mount/unmount on running Bash instance - #784

Merged
chaliy merged 1 commit into
mainfrom
claude/fix-issue-782-5Dqhc
Mar 22, 2026
Merged

chaliy merged 1 commit into
mainfrom
claude/fix-issue-782-5Dqhc

Conversation

@chaliy

@chaliy chaliy commented Mar 22, 2026

Copy link
Copy Markdown
Contributor

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

  • 7 integration tests in live_mount_tests.rs covering mount, unmount, state preservation, builder compat, multiple mounts, hot-swap, and error cases
  • All 2099+ existing tests pass (including mkfifo tests through the new MountableFs layer)
  • live_mounts example runs successfully
  • cargo clippy --all-targets --all-features -- -D warnings clean
  • cargo fmt --check clean
  • Example added to CI workflow

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
@chaliy
chaliy merged commit bb283f7 into main Mar 22, 2026
23 checks passed
@chaliy
chaliy deleted the claude/fix-issue-782-5Dqhc branch March 22, 2026 18:40
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
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
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.

feat: expose MountableFs for live mount/unmount without interpreter rebuild

1 participant