doctor
Read when: diagnosing store layout, auth state, FTS/search support, locks, or optional live connectivity.
wacli doctor reports local health information and can optionally connect to WhatsApp.
#Command
wacli doctor [--connect]
#Notes
- Without
--connect, doctor avoids live WhatsApp connection. --connectrequires auth and the store lock, and waits for confirmed WhatsApp login before reportingconnected: true. A socket handshake alone is not a successful login.- Output includes local store counts, auth identity when available, FTS/search state, lock details, and
session_revoked. An observed remote logout reportsauthenticated: falseandconnection_state: "logged_out"even when an old device row remains. Rejected or timed-out login attempts retain that state; confirmed login clears it. --jsonincludesstore.last_activity_atwhen aHEARTBEATfile is present, reflecting the last timesync --followrecorded observed activity. It is not a process-liveness marker; quiet healthy sessions may not update it because successful keepalives are silent.store.last_sync_atinstead records a successful connected sync or offline-backlog completion. It stays unknown until this state is recorded after upgrading; message timestamps do not establish freshness. Retrieval returns the same value insource.last_sync_at, withnullfor unknown state.- Use
--jsonfor machine-readable diagnostics.
#Examples
wacli doctor
wacli doctor --json
wacli doctor --connect