Skip to main content

check_agent_capture_thread

Function check_agent_capture_thread 

Source
pub fn check_agent_capture_thread(
    reserved_thread: &str,
    current_lane: Option<&str>,
) -> AgentCaptureThreadCheck
Expand description

Pure thread-ownership check for session-guarded capture.

When current_lane is None (detached), capture is allowed — matching the historical CLI: only an attached mismatched lane fails closed.