Skip to main content

find_active_sessions

Function find_active_sessions 

Source
pub fn find_active_sessions(
    project_dir: &Path,
    worktree: &Path,
    threshold: Duration,
) -> Vec<ActiveSession>
Expand description

Return all sessions in project_dir whose newest event timestamp is within threshold of now AND whose newest event cwd (if present) matches worktree. Missing/unreadable directories return an empty vec — the caller treats this as “Claude not in use here.”