Skip to content

[STABILITY] Global HTTP Fetch Interceptor & Request Retry Mechanism with Exponential Backoff #77

@prakshithamalla-art

Description

@prakshithamalla-art

Problem / Opportunity

External API integrations (such as GitHub fetches or E2B sandbox state queries) can occasionally experience transient network blips. Right now, these network drops fail instantly, displaying an unpolished "Network Error" state to the console user.

Proposed Solution

Build a reliable, fault-tolerant networking wrapper inside lib/utils/httpClient.ts:

  1. Intercept all outgoing console data queries and hook a recursive retry wrapper around them.
  2. Implement an exponential backoff timing engine (delay = initial * (2 ^ attempt)) that gracefully attempts to reconnect up to 3 times for 5xx server faults or socket hangs before throwing an error boundary block.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions