You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(session/retry): single-pass classify(); policy() no longer double-calls transportMessage
policy() previously called retryable(error) (which internally called
transportMessage) and then called transportMessage(error) again on the
next line to decide whether to apply TRANSPORT_RETRY_CAP. Consolidates
to a single classify() returning { message, isTransport? }; retryable()
becomes a thin wrapper kept to avoid churning the existing retry.test.ts
suite.
Preserves legacy cap behavior for plain-text errors whose message matches
BOTH a rate-limit phrase AND a transport pattern: classify() still picks
the rate-limit message text but sets isTransport so policy() applies
TRANSPORT_RETRY_CAP as before.
Adds retry-classification.test.ts with 7 cases including the mixed
rate-limit + ETIMEDOUT regression test.
Addresses audit finding F5 (Opus diamond review, 2026-04-22).
0 commit comments