fn failure_before_answer(
cancel: &CancelToken,
failure: Option<Error>,
) -> Option<Error>Expand description
The failure a job answers with, decided before its answer is built.
session.run is the only place a cancel token is observed, so a take
cancelled after its last window has no run left to abort: without this
check the worker builds a transcript for a take its caller abandoned, and
a host persists words the user chose not to keep. A cancel outranks
whatever failure the fold already carries, the same rule the take fold
applies. Pulled out of the worker so the decision is tested without a
loaded model, the way window_action is.