Skip to content

API calls hang for 5 minutes (default node timeout) without retry #18030

@kevin-ramdass

Description

@kevin-ramdass

What happened?

API requests made through the Gemini CLI can hang indefinitely (or up to the default Node.js/undici timeout of 5 minutes) when the backend or local proxy becomes unresponsive. This results in a poor user experience where the CLI appears frozen.

What did you expect to happen?

The CLI should have a reasonable, explicit client-side timeout (e.g., 60 seconds) for API calls. If this timeout is exceeded, the request should be aborted, and the error should be treated as a retryable ETIMEDOUT error so that the built-in resilience logic (exponential backoff) can attempt the request again.

Client information

Linux

Login information

No response

Anything else we need to know?

No response

Metadata

Metadata

Assignees

Labels

area/coreIssues related to User Interface, OS Support, Core Functionalitypriority/p1Important and should be addressed in the near term.status/possible-duplicate🔒 maintainer only⛔ Do not contribute. Internal roadmap item.

Type

No fields configured for Bug.

Projects

Status

Closed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions