Commit f286cbd
fix(webapp): preserve 422 wire-contract for past-date reschedules
Hoisting `parseDelay` to the route layer (for the buffer-side patch to
encode an absolute Date into the snapshot) inadvertently shifted the
"past date" / unparseable-delay error from 422 → 400. Pre-PR that
validation lived inside `RescheduleTaskRunService.call` (throws
`ServiceValidationError("Invalid delay: …")` → 422); SDK consumers
keying retry / error-classification logic on 422 would have seen a
silent drift.
Return 422 with the same `Invalid delay: <input>` message shape the
service produced. Validation outcome is unchanged (past dates still
rejected); only the status code aligns back with pre-PR behaviour.
Devin follow-up on PR #3756.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 6d881e7 commit f286cbd
1 file changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
47 | 55 | | |
48 | 56 | | |
49 | | - | |
| 57 | + | |
50 | 58 | | |
51 | 59 | | |
52 | 60 | | |
| |||
0 commit comments