Skip to content

Business operating system for Claude Code — 57 skills, 21 agents, smart daemon. Unified inbox (WhatsApp/Email/Slack/Telegram), autonomous PR merge, full-AWS monitoring, revenue (Stripe+RevenueCat), e-commerce (Shopify), marketing (Klaviyo/Meta/GA4), voice (Bland/ElevenLabs), APM (Datadog/NewRelic/OTEL), YOLO mode.

fix(ops-inbox-scan): treat WhatsApp as remote-only when no local store (#543)

Aurora Capital918ee67299a5
diff --git a/claude-ops/bin/ops-inbox-scan b/claude-ops/bin/ops-inbox-scan
index 5e5acc7d..598634a1 100755
--- a/claude-ops/bin/ops-inbox-scan
+++ b/claude-ops/bin/ops-inbox-scan
@@ -234,7 +234,20 @@ def ro(path):
def scan_whatsapp():
out = {"needs_reply": [], "waiting": [], "groups": [], "fyi": []}
if not os.path.exists(MSGDB):
- notes.append(f"whatsapp: store not found ({MSGDB}) — bridge not installed?")
+ # No local WhatsApp store. Treat WhatsApp as REMOTE-ONLY: the canonical
+ # bridge may run on a remote host, reached via the live MCP tools
+ # (mcp__whatsapp__*). An absent local sqlite store must NOT be read as
+ # "no messages" — signal the orchestrator to scan WhatsApp via live MCP.
+ out["reachable"] = False
+ out["source"] = "remote"
+ out["scan_via"] = "live-mcp"
+ notes.append(
+ "whatsapp: no local store — scan via the LIVE MCP tools "
+ "(mcp__whatsapp__list_chats / list_messages), which read the canonical "
+ "bridge. Do NOT treat these empty buckets as 'no messages'. WA replies are "
+ "DRAFT-ONLY: never auto-send based on store state (the store can lag "
+ "phone-sent messages)."
+ )
return out
con = ro(MSGDB)
con.row_factory = sqlite3.Row