MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / load_last_sandbox

Function load_last_sandbox

crates/openshell-bootstrap/src/metadata.rs:290–295  ·  view source on GitHub ↗

Load the last-used sandbox name for a gateway from persistent storage. Returns `None` if no last sandbox has been set.

(gateway: &str)

Source from the content-addressed store, hash-verified

288///
289/// Returns `None` if no last sandbox has been set.
290pub fn load_last_sandbox(gateway: &str) -> Option<String> {
291 last_sandbox_path(gateway)
292 .ok()
293 .as_deref()
294 .and_then(read_nonempty_trimmed)
295}
296
297/// Clear the last-used sandbox record for a gateway if it matches the given name.
298///

Calls 1

last_sandbox_pathFunction · 0.85

Tested by 1