






















@@ -147,6 +147,7 @@ OpenClaw recommends running WhatsApp on a separate number when possible. (The ch
147147148148- Gateway owns the WhatsApp socket and reconnect loop.
149149- The reconnect watchdog uses WhatsApp Web transport activity, not only inbound app-message volume, so a quiet linked-device session is not restarted solely because nobody has sent a message recently. A longer application-silence cap still forces a reconnect if transport frames keep arriving but no application messages are handled for the watchdog window.
150+- Baileys socket timings are explicit under `web.whatsapp.*`: `keepAliveIntervalMs` controls WhatsApp Web application pings, `connectTimeoutMs` controls the opening handshake timeout, and `defaultQueryTimeoutMs` controls Baileys query timeouts.
150151- Outbound sends require an active WhatsApp listener for the target account.
151152- Status and broadcast chats are ignored (`@status`, `@broadcast`).
152153- Direct chats use DM session rules (`session.dmScope`; default `main` collapses DMs to the agent main session).
@@ -520,6 +521,23 @@ Behavior notes:
520521restarts when WhatsApp Web transport activity stops, the socket closes, or
521522application-level activity stays silent beyond the longer safety window.
522523524+If logs show repeated `status=408 Request Time-out Connection was lost`, tune
525+Baileys socket timings under `web.whatsapp`. Start by shortening
526+`keepAliveIntervalMs` below your network's idle timeout and increasing
527+`connectTimeoutMs` on slow or lossy links:
528+529+```json5
530+{
531+ web: {
532+ whatsapp: {
533+ keepAliveIntervalMs: 15000,
534+ connectTimeoutMs: 60000,
535+ defaultQueryTimeoutMs: 60000,
536+ },
537+ },
538+}
539+```
540+523541Fix:
524542525543```bash
@@ -643,7 +661,7 @@ High-signal WhatsApp fields:
643661- access: `dmPolicy`, `allowFrom`, `groupPolicy`, `groupAllowFrom`, `groups`
644662- delivery: `textChunkLimit`, `chunkMode`, `mediaMaxMb`, `sendReadReceipts`, `ackReaction`, `reactionLevel`
645663- multi-account: `accounts.<id>.enabled`, `accounts.<id>.authDir`, account-level overrides
646-- operations: `configWrites`, `debounceMs`, `web.enabled`, `web.heartbeatSeconds`, `web.reconnect.*`
664+- operations: `configWrites`, `debounceMs`, `web.enabled`, `web.heartbeatSeconds`, `web.reconnect.*`, `web.whatsapp.*`
647665- session behavior: `session.dmScope`, `historyLimit`, `dmHistoryLimit`, `dms.<id>.historyLimit`
648666- prompts: `groups.<id>.systemPrompt`, `groups["*"].systemPrompt`, `direct.<id>.systemPrompt`, `direct["*"].systemPrompt`
649667此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。