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-02-21 22:31:43 -08:00
2026-04-07 11:41:26 -07:00
2026-04-07 22:23:28 -07:00
2026-04-07 13:36:38 -07:00
2026-04-06 16:49:57 -07:00
2026-04-07 10:40:34 -07:00
2026-04-06 01:47:57 -07:00
2026-04-07 10:25:31 -07:00
2026-04-07 11:41:26 -07:00
2026-04-01 03:06:47 -07:00
2026-04-07 13:36:38 -07:00
2026-04-07 10:25:31 -07:00
2026-04-07 22:23:28 -07:00
2026-04-07 10:40:34 -07:00
2026-04-07 08:40:22 -04:00
2026-03-21 16:54:43 -07:00
2026-04-05 22:43:33 -07:00
2026-04-08 00:41:36 -07:00
2026-04-06 13:49:13 -07:00
2026-04-07 10:25:31 -07:00
2026-04-02 11:00:35 +11:00
2026-04-07 10:25:31 -07:00
2026-03-28 14:35:28 -07:00
2026-02-21 22:31:43 -08:00
2026-03-25 12:45:58 -07:00