zeroclaw/tests
simianastronaut ea6abc9f42 feat(provider): make HTTP request timeout configurable (#2926)
The provider HTTP request timeout was hardcoded at 120 seconds in
`OpenAiCompatibleProvider::http_client()`. This makes it configurable
via the `provider_timeout_secs` config key and the
`ZEROCLAW_PROVIDER_TIMEOUT_SECS` environment variable, defaulting
to 120s for backward compatibility.

Changes:
- Add `provider_timeout_secs` field to Config with serde default
- Add `ZEROCLAW_PROVIDER_TIMEOUT_SECS` env var override
- Add `timeout_secs` field and `with_timeout_secs()` builder on
  `OpenAiCompatibleProvider`
- Add `provider_timeout_secs` to `ProviderRuntimeOptions`
- Thread config value through agent loop, channels, gateway, and tools
- Use `compat()` closure in provider factory to apply timeout to all
  compatible providers

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 10:40:18 -04:00
..
component feat: Add Opencode-go provider (#3113) 2026-03-11 19:35:43 -04:00
fixtures test: restructure test suite into five-level taxonomy 2026-03-11 11:03:33 -04:00
integration test: restructure test suite into five-level taxonomy 2026-03-11 11:03:33 -04:00
live feat(provider): make HTTP request timeout configurable (#2926) 2026-03-12 10:40:18 -04:00
manual test: restructure test suite into five-level taxonomy 2026-03-11 11:03:33 -04:00
support test: restructure test suite into five-level taxonomy 2026-03-11 11:03:33 -04:00
system test: restructure test suite into five-level taxonomy 2026-03-11 11:03:33 -04:00
test_component.rs test: restructure test suite into five-level taxonomy 2026-03-11 11:03:33 -04:00
test_integration.rs test: restructure test suite into five-level taxonomy 2026-03-11 11:03:33 -04:00
test_live.rs test: restructure test suite into five-level taxonomy 2026-03-11 11:03:33 -04:00
test_system.rs test: restructure test suite into five-level taxonomy 2026-03-11 11:03:33 -04:00