Files
gemini-cli/packages
Yuna Seol f9006c4eff feat(core): use experiment flags for default fetch timeouts
Replaces hardcoded fetch timeouts in `undici`'s Agent and ProxyAgent with
newly defined experiment flags `DEFAULT_REQUEST_TIMEOUT` and
`DEFAULT_TOTAL_REQUEST_TIMEOUT`. This allows for remote configuration
of request timeouts.

- Added `DEFAULT_REQUEST_TIMEOUT` and `DEFAULT_TOTAL_REQUEST_TIMEOUT` to `ExperimentFlags`.
- Updated `fetch.ts` to use `DEFAULT_REQUEST_TIMEOUT` for headers and body timeouts.
- Added unit tests to verify `setGlobalProxy` correctly applies the timeout flags.
2026-04-08 11:11:54 -04:00
..