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
{{ message }}
Repository navigation
feat: expose MountableFs for live mount/unmount without interpreter rebuild #782
Currently mount operations are only available on BashBuilder (pre-build). After builder.build(), there's no way to add or remove mounts on a live Bash instance.
PR #768 (Python FS bindings) worked around this by accumulating mount configs and calling reset(), which rebuilds the entire interpreter — losing env vars, cwd, and all in-flight state. That's surprising semantics for callers expecting a "live mount."
Proposal
Store an Arc<MountableFs> reference inside the Bash struct so that post-build code can call mount() / unmount() directly — no rebuild needed.
Rust-side changes
Keep Arc<MountableFs> accessible post-build
BashBuilder::build() already creates a MountableFs when real mounts are configured (lib.rs ~L1481-1495)
Store the Arc<MountableFs> as a field on Bash (alongside the existing Arc<dyn FileSystem>)
If no real mounts are configured, lazily wrap the root FS in a MountableFs on first mount() call, or always use MountableFs as the root
Activity
feat(fs): expose live mount/unmount on running Bash instance
feat(fs): expose live mount/unmount on running Bash instance (everrun…
feat(fs): expose live mount/unmount on running Bash instance (#784)