pub fn remove_session_state(
session_id: &str,
root: Option<&Path>,
) -> Result<(), HostlibError>Expand description
Remove all persisted staged-fs state for a caller-owned throw-away session.
Normal agent sessions keep their manifest after discard_staged so hosts can
continue reporting session state. Transient dry-run sessions own their ids,
though, and should remove both the in-memory entry and on-disk overlay after
their preview is rendered.