mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-14 15:46:42 +02:00
Fixes duplicate message processing in Slack DMs where both message.im and app_mention events fire for the same message, causing: - 2x token/credit usage per message - 2x API calls - Duplicate agent invocations with same runId Root cause: app_mention events should only fire for channel mentions, not DMs. Added channel_type check to skip im/mpim in app_mention handler. Evidence of bug (from production logs): - Same runId firing twice within 200-300ms - Example: runId 13cd482c... at 20:32:42.699Z and 20:32:42.954Z After fix: - One message = one runId = one processing run - 50% reduction in duplicate processing