Opus finding
sendReaction does not record outbound channel activity
- src/web/inbound/send-api.ts:71-89
sendMessage and sendPoll both call recordChannelActivity to update the outbound activity heartbeat, but sendReaction (which also sends a message via the same socket) does not. This causes channel-activity observability/heartbeats to under-count outbound traffic, which can produce false 'idle channel' signals when the bot only reacts. Since the comment on getWebAuthAgeMs explicitly mentions observability for heartbeats, the omission is likely unintentional.
Recommendation
Call recordChannelActivity({channel:'whatsapp', accountId: params.defaultAccountId, direction:'outbound'}) after sendReaction (and consider sendComposingTo).