erio
21b6f2d593
fix(antigravity): correctly mark credits exhausted on "Resource has been exhausted" 429
...
shouldMarkCreditsExhausted was blocked by isURLLevelRateLimit check when
credit overages retry returned "Resource has been exhausted (e.g. check quota).",
causing credits to never be marked as exhausted. This led to an infinite loop
where each request injected credits, bypassed model rate limits, and failed again.
- Remove isURLLevelRateLimit guard from shouldMarkCreditsExhausted (only called
for credit retry responses — if credits retry fails, mark exhausted)
- Add "resource has been exhausted" to creditsExhaustedKeywords
- Update tests to match corrected behavior
2026-03-20 00:04:01 +08:00
..
2026-03-07 13:39:47 +08:00
2026-03-08 14:12:17 +08:00
2026-03-14 17:37:34 +08:00
2026-03-19 15:42:21 +08:00
2026-03-11 17:12:57 +08:00
2026-03-08 04:37:20 +08:00
2026-03-19 12:36:40 +08:00
2026-03-16 21:14:52 +08:00
2026-03-19 17:42:59 +08:00
2026-03-14 12:56:34 +08:00
2026-03-16 04:58:12 +08:00
2026-03-18 10:06:35 +08:00
2026-03-18 10:06:35 +08:00
2026-03-12 23:37:36 +08:00
2026-03-18 10:06:35 +08:00
2026-03-12 23:37:36 +08:00
2026-03-16 16:22:31 +08:00
2026-03-16 16:22:31 +08:00
2026-03-07 15:06:13 +08:00
2026-03-07 15:06:13 +08:00
2026-03-20 00:04:01 +08:00
2026-03-20 00:04:01 +08:00
2026-03-12 11:30:53 +08:00
2026-03-17 01:47:08 +08:00
2026-03-18 15:03:24 +08:00
2026-03-16 04:58:23 +08:00
2026-03-16 04:58:23 +08:00
2026-03-16 04:58:58 +08:00
2026-03-16 04:58:12 +08:00
2026-03-17 01:47:08 +08:00
2026-03-17 01:47:08 +08:00
2026-03-16 01:31:54 +08:00
2026-03-16 01:31:54 +08:00
2026-03-07 17:02:19 +08:00
2026-03-07 17:02:19 +08:00
2026-03-15 14:04:13 +08:00
2026-03-11 13:53:19 +08:00
2026-03-11 13:53:19 +08:00
2026-03-15 14:04:13 +08:00
2026-03-09 13:13:39 +08:00
2026-03-09 13:13:39 +08:00
2026-03-09 13:13:39 +08:00
2026-03-12 02:42:57 +03:00
2026-03-16 20:22:10 +08:00
2026-03-16 20:22:10 +08:00
2026-03-13 17:00:16 +08:00
2026-03-13 17:00:16 +08:00
2026-03-13 17:00:16 +08:00
2026-03-13 17:00:16 +08:00
2026-03-13 19:15:27 +08:00
2026-03-13 19:15:27 +08:00
2026-03-07 10:13:51 +08:00
2026-03-09 09:51:26 +08:00
2026-03-09 09:51:26 +08:00
2026-03-18 11:08:58 +08:00
2026-03-16 01:31:54 +08:00
2026-03-09 19:55:18 +08:00
2026-03-09 19:55:18 +08:00
2026-03-12 16:53:18 +08:00
2026-03-12 16:53:18 +08:00
2026-03-12 16:53:18 +08:00
2026-03-18 14:16:50 +08:00
2026-03-18 16:22:19 +08:00
2026-03-14 02:21:22 +08:00
2026-03-19 16:56:18 +08:00
2026-03-10 11:20:10 +08:00
2026-03-19 16:56:18 +08:00
2026-03-19 16:56:18 +08:00
2026-03-18 10:06:35 +08:00
2026-03-15 12:55:37 +08:00
2026-03-18 14:20:00 +08:00
2026-03-18 14:31:57 +08:00
2026-03-13 17:00:16 +08:00
2026-03-13 17:00:16 +08:00
2026-03-19 16:56:18 +08:00
2026-03-12 16:53:18 +08:00
2026-03-15 17:46:58 +08:00
2026-03-18 10:06:35 +08:00
2026-03-12 11:04:14 +08:00
2026-03-16 01:31:54 +08:00
2026-03-16 01:31:54 +08:00
2026-03-18 11:08:58 +08:00
2026-03-18 10:06:35 +08:00
2026-03-18 10:06:35 +08:00
2026-03-18 10:06:35 +08:00
2026-03-19 16:56:18 +08:00
2026-03-19 16:56:18 +08:00
2026-03-18 11:08:58 +08:00
2026-03-18 11:08:58 +08:00
2026-03-16 01:31:54 +08:00
2026-03-16 01:31:54 +08:00
2026-03-07 21:05:37 +08:00
2026-03-15 17:26:18 +08:00
2026-03-16 21:20:46 +08:00
2026-03-16 21:20:46 +08:00
2026-03-19 03:24:31 +08:00
2026-03-19 03:24:31 +08:00
2026-03-19 22:02:08 +08:00
2026-03-17 19:25:35 +08:00
2026-03-17 19:26:30 +08:00
2026-03-10 03:00:58 +08:00
2026-03-16 10:28:51 +08:00
2026-03-12 16:53:18 +08:00
2026-03-17 19:25:35 +08:00
2026-03-14 10:47:31 +08:00
2026-03-14 10:47:31 +08:00
2026-03-12 17:22:01 +08:00
2026-03-09 21:53:46 +08:00
2026-03-12 21:24:01 +08:00
2026-03-09 15:08:37 +08:00
2026-03-16 01:31:54 +08:00
2026-03-07 21:05:37 +08:00
2026-03-09 09:51:26 +08:00
2026-03-16 10:50:02 +08:00
2026-03-16 10:50:02 +08:00
2026-03-14 13:04:24 +08:00
2026-03-11 13:53:19 +08:00
2026-03-09 09:51:26 +08:00
2026-03-14 18:47:37 +08:00
2026-03-10 11:29:31 +08:00
2026-03-11 17:32:00 +08:00
2026-03-11 17:32:00 +08:00
2026-03-15 17:26:18 +08:00
2026-03-11 17:32:00 +08:00
2026-03-11 17:32:00 +08:00
2026-03-13 17:18:04 +08:00
2026-03-15 17:26:18 +08:00
2026-03-15 17:26:18 +08:00
2026-03-19 11:15:02 +08:00
2026-03-18 16:22:19 +08:00
2026-03-09 09:51:26 +08:00
2026-03-09 09:51:26 +08:00
2026-03-17 08:40:08 +08:00
2026-03-17 08:40:08 +08:00
2026-03-14 02:21:22 +08:00
2026-03-14 02:21:22 +08:00
2026-03-08 06:59:53 +08:00
2026-03-07 21:24:06 +08:00
2026-03-19 17:42:59 +08:00
2026-03-17 10:19:20 +08:00
2026-03-16 01:31:54 +08:00
2026-03-08 06:59:53 +08:00
2026-03-08 06:59:53 +08:00
2026-03-12 02:42:57 +03:00
2026-03-18 16:22:19 +08:00
2026-03-18 16:22:19 +08:00
2026-03-18 10:06:35 +08:00
2026-03-18 11:32:35 +08:00
2026-03-13 10:39:35 +08:00
2026-03-18 09:23:19 +08:00
2026-03-16 01:31:54 +08:00
2026-03-16 01:38:06 +08:00
2026-03-16 01:31:54 +08:00
2026-03-12 16:53:18 +08:00
2026-03-12 16:53:18 +08:00
2026-03-12 18:38:09 +08:00
2026-03-17 19:25:35 +08:00
2026-03-17 19:25:35 +08:00
2026-03-12 23:37:36 +08:00
2026-03-18 09:23:19 +08:00
2026-03-18 10:06:35 +08:00