#Bug: Session repair after Slack socket drop sends empty context to Anthropic, triggering permanent c

1 messages ยท Page 1 of 1 (latest)

covert crest
#

When the Slack WebSocket drops mid-response, OpenClaw repairs the session file (rewrites the last assistant message). On the next inbound message, the LLM call fails with: messages: at least one message is required (HTTP 400 from Anthropic). This puts Anthropic into a cooldown state that persists until the gateway is restarted โ€” subsequent messages silently fail.

Steps to reproduce:

  1. Send a message that produces a long response
  2. Drop the network or let Mac sleep during generation
  3. Reconnect and send another message
  4. Agent fails silently โ€” no reply

Logs: session file repaired: rewrote 1 assistant message(s) followed immediately by LLM request rejected: messages: at least one message is required

Fix needed: After session repair, validate the context before sending to the LLM. If context is empty, surface an error or reset gracefully instead of entering cooldown.

Version: 2026.4.27 | Slack socket mode | Anthropic/claude-sonnet-4-6