Repository navigation
Commit 19801d2
fix(cursor): classify failed_precondition as a non-retryable invalid request
A plan-gated model invoked on a plan without it (live: cursor/claude-fable-5)
is rejected with "Cursor Connect error failed_precondition", which fell through
to "Cursor upstream error" (502) — a transient status the Claude inbound then
surfaced as a retryable 529 overloaded_error. gRPC FAILED_PRECONDITION is
deterministic and non-retryable by definition, so classify it as "Cursor
invalid request" (400) and let the client see the real verdict immediately.
Co-authored-by: Cursor <[email protected]>1 parent 88d1da6 commit 19801d2
2 files changed
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
251 | 259 | | |
252 | 260 | | |
253 | 261 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
62 | 72 | | |
63 | 73 | | |
64 | 74 | | |
| |||
0 commit comments