pub const ACTIVE_STATES: &[&str];
The documented states a task or session can report. idle counts as finished: the agent stopped without more work to do.
idle