• erio's avatar
    feat: smart retry max 1 attempt + clear sticky session on failure · 3077fd27
    erio authored
    - Change antigravitySmartRetryMaxAttempts from 3 to 1 to prevent
      repeated rate limiting and long waits
    - Clear sticky session binding (DeleteSessionAccountID) after smart
      retry exhaustion, so subsequent requests don't hit the same
      rate-limited account
    - Add flow diagrams to Forward/ForwardGemini doc comments
    - Add comprehensive unit tests covering:
      - Sticky session cleared on retry failure (429, 503, network error)
      - Sticky session NOT cleared on retry success
      - Sticky session NOT cleared for non-sticky requests (empty hash)
      - Sticky session NOT cleared on long delay path (handled by handler)
      - Nil cache safety (no panic)
      - MaxAttempts constant verification
      - End-to-end retryLoop → switchError propagation with session clear
    3077fd27
antigravity_gateway_service.go 111 KB