fn build_first_index(
index: &SessionIndex,
pending: &AtomicBool,
trigger: &'static str,
)Expand description
Run the index’s first build unless another caller has finished it or is
running it now — never a second full pass right after theirs (Codex P2s on
#3930) — then clear pending.