diff --git a/src/program/generate.cpp b/src/program/generate.cpp index 5e452167..907a23c6 100644 --- a/src/program/generate.cpp +++ b/src/program/generate.cpp @@ -7295,7 +7295,7 @@ int main(int argc, char** argv) { live_ok = o.prompt_cache > 0 && req_ckpt; // ckpt=0: nothing to continue or park (#830) } static const bool state_hash = std::getenv("STRATA_STATE_HASH") != nullptr; - if (state_hash && live_ok) { + if (state_hash && !cancelled && o.prompt_cache > 0) { // every finished request, ckpt=0 too (parity gates) // DEBUG: a fingerprint of every part of the session over the positions it holds ([0, L)), and // separately of what lies past them in the last KV page (stale cells, fine unless something reads them) if (cudaDeviceSynchronize() != cudaSuccess) {