bekkilove
d44901f91c
fix(devin): classify high-demand errors as rate limits
...
Devin upstream occasionally encodes transient capacity failures using
Connect code permission_denied with message containing 'high demand'.
CPA's ParseDevinTrailerError currently maps every permission_denied to
HTTP 403. The auth cooldown manager interprets 403 as a 30-minute model
permission cooldown, keeping a recovered model locally unavailable.
This fix narrowly reclassifies the observed high-demand variant as
HTTP 429 (Too Many Requests), so it enters the quota/retry cooldown
path instead of the long permission denial path. Genuine
permission_denied errors (model access denied, plan entitlement denied,
etc.) remain HTTP 403.
Tests: 4 new cases in TestParseDevinTrailerError covering transient
high-demand (429), genuine permission error (403), resource_exhausted
unchanged (429), and case-insensitive matching. All existing tests
pass with no regressions.
2026-09-16 19:24:08 +08:00
..
2026-09-06 21:51:47 +08:00
2026-09-06 21:51:47 +08:00
2026-06-13 10:07:48 +08:00
2026-06-13 10:07:48 +08:00
2026-06-14 21:11:35 +08:00
2026-06-14 21:11:35 +08:00
2026-08-29 01:22:21 +08:00
2026-08-14 22:45:09 +08:00
2026-08-19 22:29:51 +08:00
2026-08-19 22:29:51 +08:00
2026-08-18 17:29:26 +08:00
2026-08-20 00:15:31 +08:00
2026-09-08 10:34:05 +08:00
2026-09-08 10:34:05 +08:00
2026-07-18 02:18:09 +08:00
2026-09-04 15:23:31 +08:00
2026-08-03 14:47:26 +08:00
2026-08-03 14:47:26 +08:00
2026-09-11 16:59:57 +08:00
2026-09-03 10:21:13 +08:00
2026-09-03 10:21:13 +08:00
2026-09-11 16:59:57 +08:00
2026-09-11 16:59:57 +08:00
2026-07-22 05:21:14 +08:00
2026-08-15 15:00:19 +08:00
2026-08-14 22:45:09 +08:00
2026-08-14 22:45:09 +08:00
2026-08-14 22:45:09 +08:00
2026-08-27 17:32:07 +08:00
2026-08-27 17:32:07 +08:00
2026-08-29 01:22:21 +08:00
2026-08-03 14:47:26 +08:00
2026-08-03 14:47:26 +08:00
2026-09-13 23:34:43 +08:00
2026-08-03 14:47:26 +08:00
2026-08-12 01:04:22 +08:00
2026-08-12 01:04:22 +08:00
2026-08-11 16:07:42 +08:00
2026-09-03 20:21:24 +08:00
2026-09-13 15:05:03 +08:00
2026-08-24 17:15:37 +08:00
2026-08-24 17:15:37 +08:00
2026-09-07 20:09:29 +08:00
2026-09-07 20:09:29 +08:00
2026-09-09 18:03:39 +08:00
2026-09-09 18:03:39 +08:00
2026-09-10 01:43:37 +08:00
2026-07-26 03:07:21 +08:00
2026-07-26 03:07:21 +08:00
2026-09-13 23:34:43 +08:00
2026-09-13 23:34:43 +08:00
2026-09-16 19:24:08 +08:00
2026-09-16 19:24:08 +08:00
2026-09-06 23:41:12 +08:00
2026-09-06 23:41:12 +08:00
2026-08-30 14:51:08 +08:00
2026-08-29 12:50:45 +08:00
2026-08-29 12:50:45 +08:00
2026-06-18 13:33:10 +08:00
2026-09-08 10:52:27 +08:00
2026-09-08 10:52:27 +08:00
2026-08-29 12:50:46 +08:00
2026-08-29 12:50:45 +08:00
2026-07-31 13:28:14 +08:00
2026-09-03 13:10:30 +08:00
2026-08-03 03:37:24 +08:00
2026-08-03 03:37:24 +08:00
2026-06-18 13:33:10 +08:00
2026-09-04 15:23:31 +08:00
2026-09-13 22:12:28 +08:00
2026-07-20 15:37:55 +08:00
2026-08-30 14:51:08 +08:00
2026-09-13 23:34:43 +08:00
2026-09-13 23:34:43 +08:00
2026-08-31 08:41:08 +08:00
2026-08-29 01:22:21 +08:00
2026-08-15 15:00:19 +08:00
2026-08-15 15:00:19 +08:00
2026-06-14 21:11:35 +08:00
2026-06-14 21:11:35 +08:00
2026-07-07 02:39:13 +08:00
2026-07-31 12:45:13 +08:00
2026-07-31 12:45:13 +08:00
2026-04-01 03:08:20 +08:00
2026-09-07 19:15:39 +08:00
2026-09-07 19:15:39 +08:00
2026-09-11 12:15:57 +08:00
2026-09-11 00:25:17 +08:00
2026-07-11 02:42:42 +08:00
2026-08-03 14:47:26 +08:00
2026-08-03 14:47:26 +08:00
2026-08-03 14:47:26 +08:00
2026-08-11 00:58:13 +08:00
2026-08-11 00:58:13 +08:00
2026-07-20 13:57:14 +08:00
2026-07-20 15:37:55 +08:00
2026-08-27 05:30:19 +08:00
2026-08-27 05:30:19 +08:00