zeroclaw/src
Edvard cc13fec16d fix: add provider warmup to prevent cold-start timeout on first channel message
The first API request after daemon startup consistently timed out (120s)
when using channels (Telegram, Discord, etc.), requiring a retry before
succeeding. This happened because the reqwest HTTP client's connection
pool was cold — no TLS handshake, DNS resolution, or HTTP/2 negotiation
had occurred yet.

The fix adds a `warmup()` method to the Provider trait that establishes
the connection pool on startup by hitting a lightweight endpoint
(`/api/v1/auth/key` for OpenRouter). The channel server calls this
immediately after creating the provider, before entering the message
processing loop.

Tested on Raspberry Pi 5 (aarch64) with OpenRouter + DeepSeek v3.2 via
Telegram channel. Before: first message took 2-7 minutes (120s timeout +
retries). After: first message responds in <30s with no retries.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-14 18:43:26 -05:00
..
agent feat: enhance agent personality, tool guidance, and memory hygiene 2026-02-14 11:28:39 -05:00
channels fix: add provider warmup to prevent cold-start timeout on first channel message 2026-02-14 18:43:26 -05:00
config feat: add Docker env var support for PORT, HOST, and TEMPERATURE 2026-02-14 16:19:26 -05:00
cron fix: resolve clippy warnings and formatting issues for CI 2026-02-14 15:36:19 -05:00
daemon feat: enhance agent personality, tool guidance, and memory hygiene 2026-02-14 11:28:39 -05:00
doctor fix: resolve clippy warnings and formatting issues for CI 2026-02-14 15:36:19 -05:00
gateway fix: stop leaking LLM error details to HTTP clients and WhatsApp users 2026-02-14 23:53:39 +01:00
health fix: resolve clippy warnings and formatting issues for CI 2026-02-14 15:36:19 -05:00
heartbeat feat: enhance agent personality, tool guidance, and memory hygiene 2026-02-14 11:28:39 -05:00
integrations refactor: simplify CLI commands and update architecture docs 2026-02-14 05:17:16 -05:00
memory feat: enhance agent personality, tool guidance, and memory hygiene 2026-02-14 11:28:39 -05:00
observability fix: resolve all clippy --all-targets warnings across 15 files 2026-02-14 03:52:57 -05:00
onboard feat: add Docker env var support for PORT, HOST, and TEMPERATURE 2026-02-14 16:19:26 -05:00
providers fix: add provider warmup to prevent cold-start timeout on first channel message 2026-02-14 18:43:26 -05:00
runtime feat: enhance agent personality, tool guidance, and memory hygiene 2026-02-14 11:28:39 -05:00
security Merge pull request #69 from fettpl/fix/llm-error-leakage 2026-02-14 18:34:30 -05:00
service fix: resolve clippy warnings and formatting issues for CI 2026-02-14 15:36:19 -05:00
skills fix: resolve clippy warnings and formatting issues for CI 2026-02-14 15:36:19 -05:00
tools fix: stop leaking LLM error details to HTTP clients and WhatsApp users 2026-02-14 23:53:39 +01:00
tunnel fix: resolve all clippy --all-targets warnings across 15 files 2026-02-14 03:52:57 -05:00
lib.rs refactor: remove AIEOS identity support 2026-02-14 14:05:14 -05:00
main.rs fix: add memory config to wizard and fix clippy warnings 2026-02-14 15:50:53 -05:00
migration.rs fix: resolve clippy warnings and formatting issues for CI 2026-02-14 15:36:19 -05:00