]> git.giacomolli.uk - onechat/commit
Retry the first WhatsApp connection
authorAnderson A. Giacomolli <redacted>
Mon, 9 Nov 2026 17:48:10 +0000 (14:48 -0300)
committerAnderson A. Giacomolli <redacted>
Mon, 9 Nov 2026 17:48:10 +0000 (14:48 -0300)
commit53c6c8a5a17e2dfc8bd3ff02ab99d29d709dda2f
treead7a9ff38df407e65271533c6c7492cb6ddc799c
parentd7a967f43fae27bcabc6072da3b5a2f923d47764
Retry the first WhatsApp connection

Keep failed starting connections in the Run select with a timer. Start
at 2 seconds and double the wait up to 5 minutes, so the inbox and
commands stay active during waits. End retries on a connection, context
end, or link change.

Share outage times, notices, status, and redacted logs with lost
connections. Keep one failure line and one recovery line for an outage.

Disable library startup retries only for linked devices. A returned
ConnectContext error has no Disconnected event, while the library retry
mode emits that event and returns nil. One retry owner prevents parallel
loops and gives the requested delay cap. Pairing and retries after an
open connection keep their library behavior.
README.rst
whatsapp.go
whatsapp_fake_helper_test.go
whatsapp_test.go