pub type SharedSandboxRoots = Arc<RwLock<Vec<(PathBuf, AccessTier)>>>;Expand description
Shared, session-scoped sandbox roots. This is the runtime-mutable
companion to the static extra_roots baked into each tool at build
time: the TUI’s /add-dir command (and, in future, an interactive
out-of-scope-read grant) appends entries here, and every structured
filesystem tool consults the snapshot in resolve_within_any on
each call so newly added roots take effect immediately — without
rebuilding the agent runtime.
Uses std::sync::RwLock (not tokio) because tools only take a brief
read snapshot inside execute; no .await is held across the guard.
Aliased Type§
pub struct SharedSandboxRoots { /* private fields */ }