Files
codex/codex-rs/app-server-client/src
Benjamin Carlsson d4014cb19d Keep Cloud reply stream recovery retryable after transient failures (#63058)
## Why

Repeated disconnects could exhaust the active recovery attempt limit. A
shared deadline also let time spent in the worker queue or waiting to
reattach cut into the time available to fetch history and install the
replacement stream.

## What changed

- Replace the active recovery attempt limit with exponential backoff
  capped at 30 seconds.
- Give worker dispatch, reattachment, recovery history reads, and stream
  installation separate timeout budgets. Wait for the caller to release
  the held stream before starting the installation timeout.
- Surface transient failures and timeouts as transport errors so callers
  can retry recovery. Continue to enforce sign-in and network policy
  checks during recovery.

## Testing

Cover dispatch delays and expired queued requests, recovery after
repeated transient attach failures, history read timeouts, and rejection
of a replacement stream that closes before installation.

GitOrigin-RevId: aa1757e01b5cd32b1c4bd38bad97c2650904edd8
2026-11-21 23:39:23 +00:00
..