fix: refuse resume of a nonexistent preprocessing run

This commit is contained in:
2026-08-11 19:54:21 +02:00
parent da214820b0
commit 79e592894d
@@ -282,7 +282,13 @@ export class PreprocessingStateStore {
} catch (error) { } catch (error) {
if ((error as NodeJS.ErrnoException).code !== "ENOENT") { if ((error as NodeJS.ErrnoException).code !== "ENOENT") {
if (error instanceof PreprocessingStateError) throw error; if (error instanceof PreprocessingStateError) throw error;
if (options.runId) throw error; throw error;
}
if (options.runId) {
throw new PreprocessingStateError(
"preprocessing_resume_mismatch",
"Workspace preprocessing run is unavailable",
);
} }
} }
const job: PreprocessingJobState = { const job: PreprocessingJobState = {