Skip to content

Comments

Fix: Mark offline WhatsApp messages as read#193

Merged
steipete merged 4 commits intoopenclaw:mainfrom
mcinteerj:fix/whatsapp-offline-read-receipts
Jan 5, 2026
Merged

Fix: Mark offline WhatsApp messages as read#193
steipete merged 4 commits intoopenclaw:mainfrom
mcinteerj:fix/whatsapp-offline-read-receipts

Conversation

@mcinteerj
Copy link
Contributor

Fixes an issue where WhatsApp messages received while the gateway was offline (history sync) were never marked as read.

Changes:

  • Modified handleMessagesUpsert in src/web/inbound.ts to process append events (used by Baileys for history/offline messages).
  • The new logic marks these messages as read (sending blue ticks) but explicitly skips the auto-reply (onMessage) loop to prevent the bot from replying to old history.
  • Added a regression test in src/web/monitor-inbox.test.ts to confirm append messages are marked as read but ignored by the auto-reply handler.

Motivation:
Improves UX by clearing unread badges for history sync. This also helps account health, as leaving earlier history "unread" while replying to new messages can look like bot behavior to anti-abuse systems.

@mcinteerj mcinteerj force-pushed the fix/whatsapp-offline-read-receipts branch from 6dfcc2f to a6f7ab4 Compare January 4, 2026 22:25
@steipete steipete merged commit 3fc9acc into openclaw:main Jan 5, 2026
11 of 13 checks passed
dgarson added a commit to dgarson/clawdbot that referenced this pull request Feb 7, 2026
…ion (openclaw#193)

Restructure the command palette with drill-down sub-menus:

- Navigate to... — Full list of all pages (Home, Conversations, Agents,
  Goals, Memories, Rituals, Automations, Workstreams, Settings, Dashboard)
- Agents — Chat with or view any agent (shows all, not just top 5)
- Appearance — Theme toggle, dark/light selection, power user mode,
  sidebar toggle
- Settings & Config — Profile, Gateway config, Nodes, Keyboard shortcuts,
  Power user mode

Navigation UX:
- Breadcrumb header shows current sub-menu with back button
- Backspace on empty search returns to root menu
- Escape from sub-menu returns to root (doesn't close dialog)
- ChevronRight indicator on category items signals drill-down
- Root page still shows quick-access items (top 5 nav, top 3 agents)
  for power users who know what they want

Also marks goal templates as complete in BACKLOG.md (PR openclaw#184).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants