Luis Pater
892fc4864c
fix(antigravity): harden SSE JSON reassembly and mid-stream error bookkeeping
...
- Replace ad-hoc pendingJSON buffering in ExecuteStream and executeClaudeNonStream with a bounded SSEJSONAssembler that ignores non-data SSE control lines, resets on genuine empty-line event boundaries, and discards oversized event tails until the next empty line.
- Surface all 400-599 mid-stream JSON error frames in executeClaudeNonStream with replay invalidation, TOS state handling, and 429 bookkeeping instead of letting non-403 errors degrade to synthetic 502 or truncated responses.
- Share 429 bookkeeping across HTTP and mid-stream SSE paths in ExecuteStream and executeClaudeNonStream, and defer clearing prior credits failure state until request success is confirmed.
Closes : #7753
2026-11-21 15:21:19 +08:00
..
2026-11-21 15:21:19 +08:00
2026-11-20 23:14:11 +08:00
2026-11-15 22:00:34 +08:00
2026-11-16 09:58:12 +08:00
2026-11-03 03:05:04 +08:00
2026-11-20 20:56:13 +08:00
2026-11-20 20:56:13 +08:00
2026-11-03 03:05:04 +08:00
2026-11-21 15:10:25 +08:00
2026-11-21 15:21:19 +08:00
2026-11-21 15:21:19 +08:00
2026-11-05 09:51:14 +08:00
2026-11-03 03:05:04 +08:00
2026-11-21 15:21:19 +08:00
2026-11-20 08:30:42 +08:00
2026-11-14 16:33:48 +08:00
2026-11-03 03:05:04 +08:00
2026-11-21 15:21:19 +08:00
2026-11-03 03:05:04 +08:00
2026-11-21 15:11:50 +08:00
2026-11-21 15:11:50 +08:00
2026-11-03 03:05:04 +08:00
2026-11-16 09:58:12 +08:00
2026-11-16 09:58:12 +08:00
2026-11-03 03:05:04 +08:00
2026-11-16 09:58:12 +08:00
2026-11-16 09:58:12 +08:00
2026-11-20 02:15:31 +08:00
2026-11-16 09:58:12 +08:00
2026-11-16 09:58:12 +08:00
2026-11-03 03:05:04 +08:00
2026-11-16 09:58:12 +08:00
2026-11-20 09:00:53 +08:00
2026-11-20 09:00:53 +08:00
2026-11-20 02:32:04 +08:00
2026-11-20 02:32:04 +08:00
2026-11-16 09:58:12 +08:00
2026-11-03 03:05:04 +08:00
2026-11-21 12:30:11 +08:00
2026-11-03 03:05:04 +08:00
2026-11-03 03:05:04 +08:00
2026-11-03 03:05:04 +08:00
2026-11-11 02:51:36 +08:00
2026-11-03 03:05:04 +08:00
2026-11-03 03:05:04 +08:00
2026-11-09 22:44:37 +08:00
2026-11-16 03:02:43 +08:00
2026-11-03 03:05:04 +08:00
2026-11-10 00:03:55 +00:00
2026-11-03 03:05:04 +08:00
2026-11-10 08:28:13 +08:00
2026-11-03 03:05:04 +08:00
2026-11-16 09:58:12 +08:00
2026-11-03 03:05:04 +08:00
2026-11-03 03:05:04 +08:00
2026-11-10 00:03:55 +00:00
2026-11-04 18:14:30 +08:00
2026-11-19 23:08:32 +08:00
2026-11-03 08:17:15 +08:00
2026-11-04 18:26:51 +08:00
2026-11-10 00:03:55 +00:00
2026-11-16 09:58:12 +08:00
2026-11-03 03:05:04 +08:00
2026-11-12 21:07:10 +08:00
2026-11-05 09:51:14 +08:00
2026-11-09 02:46:14 +08:00
2026-11-16 09:58:12 +08:00
2026-11-19 23:08:32 +08:00
2026-11-10 00:03:55 +00:00
2026-11-16 09:58:12 +08:00
2026-11-16 09:58:12 +08:00
2026-11-12 21:07:10 +08:00
2026-11-12 21:07:10 +08:00
2026-11-19 23:08:32 +08:00
2026-11-16 09:58:12 +08:00
2026-11-03 03:05:04 +08:00
2026-11-03 03:05:04 +08:00
2026-11-03 11:21:33 +08:00
2026-11-19 23:08:32 +08:00
2026-11-10 00:03:55 +00:00
2026-11-03 03:05:04 +08:00
2026-11-16 09:58:12 +08:00
2026-11-15 22:32:47 +08:00
2026-11-03 03:05:04 +08:00
2026-11-06 09:24:42 +08:00
2026-11-16 03:02:43 +08:00
2026-11-11 11:37:35 +08:00
2026-11-16 10:31:56 +08:00
2026-11-19 23:08:32 +08:00
2026-11-03 03:05:04 +08:00
2026-11-03 03:05:04 +08:00
2026-11-03 03:05:04 +08:00
2026-11-03 03:05:04 +08:00
2026-11-16 22:06:14 +08:00
2026-11-16 22:06:14 +08:00
2026-11-07 12:19:47 +08:00
2026-11-03 03:05:04 +08:00
2026-11-16 09:58:12 +08:00
2026-11-15 22:32:47 +08:00
2026-11-16 09:58:12 +08:00
2026-11-03 03:05:04 +08:00
2026-11-10 19:33:26 +08:00
2026-11-16 09:58:12 +08:00
2026-11-16 09:58:12 +08:00
2026-11-03 03:05:04 +08:00
2026-11-03 03:05:04 +08:00
2026-11-07 01:57:53 +08:00
2026-11-03 03:05:04 +08:00
2026-11-10 19:22:38 +08:00
2026-11-03 03:05:04 +08:00
2026-11-03 03:05:04 +08:00
2026-11-17 15:13:51 +08:00
2026-11-19 08:23:04 +08:00
2026-11-10 04:00:28 +08:00
2026-11-04 02:58:57 +08:00
2026-11-19 02:53:40 +08:00
2026-11-12 18:09:32 +08:00
2026-11-07 01:57:53 +08:00
2026-11-03 03:05:04 +08:00
2026-11-03 03:05:04 +08:00
2026-11-03 03:05:04 +08:00
2026-11-19 08:23:04 +08:00
2026-11-16 09:58:12 +08:00
2026-11-03 03:05:04 +08:00
2026-11-03 03:05:04 +08:00
2026-11-03 03:05:04 +08:00
2026-11-07 01:23:36 +07:00
2026-11-07 01:23:01 +07:00
2026-11-03 03:05:04 +08:00
2026-11-16 09:58:12 +08:00
2026-11-03 03:05:04 +08:00
2026-11-16 12:28:56 +08:00
2026-11-19 08:23:04 +08:00
2026-11-16 19:21:23 +08:00
2026-11-03 03:05:04 +08:00
2026-11-19 08:23:04 +08:00
2026-11-19 21:10:33 +08:00
2026-11-06 18:38:00 +08:00
2026-11-03 03:05:04 +08:00
2026-11-16 09:58:12 +08:00
2026-11-16 09:58:12 +08:00
2026-11-16 19:21:23 +08:00
2026-11-16 17:14:51 +08:00
2026-11-07 01:44:42 +08:00
2026-11-11 17:49:05 +08:00
2026-11-19 08:23:04 +08:00
2026-11-16 09:58:12 +08:00
2026-11-03 03:05:04 +08:00
2026-11-03 03:05:04 +08:00
2026-11-03 03:05:04 +08:00
2026-11-03 03:05:04 +08:00
2026-11-10 19:22:38 +08:00
2026-11-03 03:05:04 +08:00
2026-11-19 02:53:40 +08:00
2026-11-16 12:28:56 +08:00
2026-11-03 03:05:04 +08:00
2026-11-10 19:22:38 +08:00
2026-11-19 08:23:04 +08:00
2026-11-16 19:21:23 +08:00
2026-11-19 08:23:04 +08:00
2026-11-17 15:13:51 +08:00
2026-11-19 08:23:04 +08:00
2026-11-19 08:23:04 +08:00
2026-11-03 03:05:04 +08:00
2026-11-19 08:23:04 +08:00
2026-11-03 03:05:04 +08:00
2026-11-19 08:23:04 +08:00
2026-11-20 23:14:11 +08:00
2026-11-20 23:14:11 +08:00
2026-11-20 23:14:11 +08:00
2026-11-20 23:14:11 +08:00
2026-11-20 23:14:11 +08:00
2026-11-21 12:14:05 +08:00
2026-11-20 23:14:11 +08:00
2026-11-21 11:38:49 +08:00
2026-11-21 12:14:05 +08:00
2026-11-20 23:14:11 +08:00
2026-11-21 10:58:18 +08:00
2026-11-03 03:05:04 +08:00
2026-11-04 02:47:20 +08:00
2026-11-06 17:49:19 +08:00
2026-11-06 17:49:19 +08:00
2026-11-14 16:33:48 +08:00
2026-11-16 09:58:12 +08:00
2026-11-11 18:02:32 +08:00
2026-11-03 03:05:04 +08:00
2026-11-03 03:05:04 +08:00
2026-11-13 00:33:01 +08:00
2026-11-03 03:05:04 +08:00
2026-11-15 22:00:34 +08:00
2026-11-15 22:00:34 +08:00
2026-11-03 03:05:04 +08:00
2026-11-15 16:30:38 +08:00
2026-11-03 03:05:04 +08:00
2026-11-03 03:05:04 +08:00
2026-11-03 03:05:04 +08:00
2026-11-16 09:58:12 +08:00
2026-11-16 09:58:12 +08:00
2026-11-16 09:58:12 +08:00
2026-11-16 09:58:12 +08:00
2026-11-16 09:58:12 +08:00
2026-11-16 09:58:12 +08:00
2026-11-16 09:58:12 +08:00
2026-11-03 03:05:04 +08:00
2026-11-16 09:58:12 +08:00
2026-11-16 09:58:12 +08:00
2026-11-16 03:02:43 +08:00
2026-11-16 03:02:43 +08:00
2026-11-14 00:50:21 +08:00
2026-11-14 14:30:19 +08:00
2026-11-15 22:00:34 +08:00
2026-11-03 03:05:04 +08:00
2026-11-12 21:07:10 +08:00
2026-11-16 09:58:12 +08:00
2026-11-03 03:05:04 +08:00
2026-11-16 09:58:12 +08:00
2026-11-17 15:34:36 +08:00
2026-11-11 08:46:36 +08:00
2026-11-03 03:05:04 +08:00
2026-11-20 19:19:24 +08:00
2026-11-20 18:20:36 +08:00
2026-11-16 09:58:12 +08:00
2026-11-03 03:05:04 +08:00
2026-11-03 03:05:04 +08:00
2026-11-04 23:33:59 +08:00
2026-11-03 03:05:04 +08:00
2026-11-10 16:39:16 +08:00
2026-11-03 03:05:04 +08:00
2026-11-03 03:05:04 +08:00
2026-11-03 03:05:04 +08:00
2026-11-21 15:11:50 +08:00
2026-11-16 09:58:12 +08:00
2026-11-03 03:05:04 +08:00
2026-11-03 03:05:04 +08:00
2026-11-16 22:06:14 +08:00
2026-11-17 15:09:01 +08:00
2026-11-17 22:44:03 +08:00
2026-11-03 03:05:04 +08:00
2026-11-16 09:58:12 +08:00
2026-11-16 09:58:12 +08:00
2026-11-03 03:05:04 +08:00
2026-11-03 03:05:04 +08:00
2026-11-11 03:31:39 +08:00
2026-11-11 03:31:39 +08:00
2026-11-16 22:06:14 +08:00
2026-11-16 12:28:56 +08:00
2026-11-03 03:05:04 +08:00
2026-11-11 03:31:39 +08:00
2026-11-11 03:31:39 +08:00
2026-11-17 15:13:51 +08:00
2026-11-03 03:05:04 +08:00
2026-11-16 22:06:14 +08:00
2026-11-03 03:05:04 +08:00
2026-11-17 15:13:51 +08:00
2026-11-16 22:06:14 +08:00