Skip to main content

session_root_handle

Function session_root_handle 

Source
pub fn session_root_handle() -> Option<Arc<RwLock<Component>>>
Expand description

Public accessor for the runner-installed session root.

Used by integration layers that need to walk the component tree from outside this crate — the TUI’s control-edit handler, the web API’s control endpoints, the dryrun=controls renderer, etc. Returns None when no session is running (pre-bootstrap, after teardown, tests that never called set_session_root).