fix(report): accept section: job progress phases on read-back
Heartbeat and GET were parsing progress_phase with a pattern that rejects the colon prefix the writer already persists, which aborted generation after the first chapter. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -352,7 +352,7 @@ function recordFromRow(value: unknown): PersonalReportJobRecord {
|
||||
}
|
||||
const status = statusValue as PersonalReportJobStatus;
|
||||
if (attemptCount > maxAttempts) storageInvalid("invalid personal report job retry budget");
|
||||
if (!operationalCodePattern.test(progressPhase)) storageInvalid("invalid progress phase");
|
||||
if (!isValidPersonalReportJobProgressPhase(progressPhase)) storageInvalid("invalid progress phase");
|
||||
if (lastErrorCode !== null && !operationalCodePattern.test(lastErrorCode)) {
|
||||
storageInvalid("invalid last error code");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user