feat(channel): make message timeout configurable via channels_config.message_timeout_secs

Add configurable timeout for processing channel messages (LLM + tools).
Default: 300s (optimized for on-device LLMs like Ollama).
Can be overridden in config.toml:

[channels_config]
message_timeout_secs = 600
This commit is contained in:
ZeroClaw Contributor 2026-02-18 20:37:01 +03:00 committed by Chummy
parent 4ecaf6070c
commit 41a6ed30dd
4 changed files with 38 additions and 24 deletions

View file

@ -50,6 +50,10 @@ Notes:
Top-level channel options are configured under `channels_config`.
| Key | Default | Purpose |
|---|---|---|
| `message_timeout_secs` | `300` | Timeout in seconds for processing a single channel message (LLM + tools) |
Examples:
- `[channels_config.telegram]`
@ -57,6 +61,12 @@ Examples:
- `[channels_config.whatsapp]`
- `[channels_config.email]`
Notes:
- Default `300s` is optimized for on-device LLMs (Ollama) which are slower than cloud APIs.
- If using cloud APIs (OpenAI, Anthropic, etc.), you can reduce this to `60` or lower.
- When a timeout occurs, users receive: `⚠️ Request timed out while waiting for the model. Please try again.`
See detailed channel matrix and allowlist behavior in [channels-reference.md](channels-reference.md).
## Security-Relevant Defaults