Skip to main content

select_snapshot

Function select_snapshot 

Source
fn select_snapshot(
    candidates: Vec<ProcessEntry>,
    claude_pid: u32,
    extra_commands: &[String],
) -> Vec<ProcessEntry>
Expand description

Select the processes that belong in the snapshot: the descendants of claude_pid, plus any candidate whose cmdline matches one of extra_commands together with ITS descendants (a backgrounded local_bash living outside claude’s tree). Pure over candidates so the adoption logic is unit-testable without a live process table.