Commit 8761f60
fix: reset retry counter only on forward progress, not unconditionally
The previous fix (attempt + 1 unconditionally) broke legitimate
multi-reconnection scenarios where the server checkpoints progress
between disconnections. Now we check whether new SSE events were
delivered (last_event_id changed) — if so, reset the counter; if not,
increment it toward MAX_RECONNECTION_ATTEMPTS.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 9630947 commit 8761f60
2 files changed
+16
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
423 | 423 | | |
424 | 424 | | |
425 | 425 | | |
426 | | - | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
427 | 433 | | |
428 | 434 | | |
429 | 435 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2329 | 2329 | | |
2330 | 2330 | | |
2331 | 2331 | | |
2332 | | - | |
| 2332 | + | |
2333 | 2333 | | |
2334 | 2334 | | |
2335 | 2335 | | |
2336 | 2336 | | |
2337 | 2337 | | |
2338 | 2338 | | |
2339 | | - | |
2340 | | - | |
| 2339 | + | |
| 2340 | + | |
| 2341 | + | |
2341 | 2342 | | |
2342 | 2343 | | |
2343 | 2344 | | |
| |||
2354 | 2355 | | |
2355 | 2356 | | |
2356 | 2357 | | |
2357 | | - | |
2358 | | - | |
| 2358 | + | |
| 2359 | + | |
| 2360 | + | |
| 2361 | + | |
2359 | 2362 | | |
2360 | 2363 | | |
2361 | 2364 | | |
2362 | 2365 | | |
2363 | | - | |
| 2366 | + | |
2364 | 2367 | | |
2365 | 2368 | | |
2366 | 2369 | | |
| |||
0 commit comments