Skip to main content

clear_runtime_identity

Function clear_runtime_identity 

Source
fn clear_runtime_identity(domain: &mut DomainSession)
Expand description

Drop every fact that describes one run of a session: the hook’s mode and effort, the model it resolved, the two bridge snapshots that describe a subprocess tree, and the monitor set that run started.

This mirrors the view’s own reset on the same events, so what it holds is what a view draws. Two facts are deliberately not here, because the view’s reset does not touch them either: the sub-agent attribution outlives the run it came from, and the process walk is cleared on the death alone - where the tree it describes goes with the subprocess - rather than on every identity this clears.