zocomputer
e1befe5077
feat(agent): add jittered retry backoff
Adds agent/retry_utils.py with jittered_backoff() — exponential backoff
with additive jitter to prevent thundering-herd retry spikes when
multiple gateway sessions hit the same rate-limited provider.
Replaces fixed exponential backoff at 4 call sites:
- run_agent.py: None-choices retry path (5s base, 120s cap)
- run_agent.py: API error retry path (2s base, 60s cap)
- trajectory_compressor.py: sync + async summarization retries
Thread-safe jitter counter with overflow guards ensures unique seeds
across concurrent retries.
Trimmed from original PR to keep only wired-in functionality.
Co-authored-by: martinp09 <martinp09@users.noreply.github.com>
2026-04-08 00:41:36 -07:00
..
2026-04-05 12:05:13 -07:00
2026-04-07 22:23:28 -07:00
2026-04-07 17:19:07 -07:00
2026-04-07 22:49:01 -07:00
2026-04-01 15:23:52 -07:00
2026-04-07 17:28:37 -07:00
2026-03-14 14:27:20 +03:00
2026-04-07 22:45:14 -07:00
2026-04-07 18:00:01 -07:00
2026-04-05 12:34:11 -07:00
2026-03-24 07:30:25 -07:00
2026-04-07 14:03:46 -07:00
2026-04-07 17:29:41 -07:00
2026-04-03 17:49:18 -07:00
2026-04-07 18:00:01 -07:00
2025-10-01 23:29:25 +00:00
2026-03-17 02:02:33 -07:00
2026-03-17 02:53:33 -07:00
2026-03-13 23:59:12 -07:00
2026-04-07 17:59:42 -07:00
2026-03-15 21:59:53 -07:00
2026-04-07 09:58:45 -07:00
2026-04-02 00:49:11 -07:00
2026-04-02 15:33:51 -07:00
2026-03-29 15:47:19 -07:00
2026-03-24 08:19:23 -07:00
2026-04-07 17:59:42 -07:00
2026-03-20 15:41:06 -04:00
2026-04-05 23:31:29 -07:00
2026-04-07 22:23:28 -07:00
2026-03-30 17:34:43 -07:00
2026-04-02 09:21:37 -07:00
2026-04-08 00:41:36 -07:00
2026-03-19 15:16:35 +01:00
2026-04-07 09:58:45 -07:00
2026-02-26 13:54:20 +03:00
2026-03-09 23:27:19 -07:00
2026-03-30 13:16:16 -07:00
2026-03-30 20:36:56 -07:00
2026-03-30 13:28:10 +09:00