Clear recoverable snapshot errors before batched draft prefill

This commit is contained in:
Jeremiah Ritchey authored and Niko1221 committed 2026-09-30 16:31:45 +02:00
1 parent 4ac028522e
commit f3072a95e6
2 files changed
+13 -2

No files matched your search

+2
View File
@@ -3267,6 +3267,7 @@ int main(int argc, char** argv) {
size_t estimate = 0;
if (!strata::core::conversation_snapshot_bytes(view, ss, g, mtp.kv_state(), estimate, err)) {
std::fprintf(stderr, "strata serve: conversation cache: skip parking (%s)\n", err.c_str());
err.clear(); // A recoverable miss must not poison the batched draft prefill's error channel.
return true;
}
if (!conversations.make_room(estimate, held)) {
@@ -3846,6 +3847,7 @@ int main(int argc, char** argv) {
if (incoming && !strata::core::conversation_snapshot_validate(*incoming, ss, g, mtp.kv_state(), err)) {
std::fprintf(stderr, "strata serve: conversation cache: discard invalid snapshot (%s)\n", err.c_str());
incoming.reset();
err.clear();
}
// Preserve the outgoing branch before any checkpoint rewind, reset,
// or incoming restore overwrites the positional state it requires.