Skip to content

feat(gateway): webhook delivery for WeCom cron scheduled messages#23

Open
Ariznawlll wants to merge 2 commits into
matrixorigin:mainfrom
Ariznawlll:feat/gateway-wecom-webhook-cron
Open

feat(gateway): webhook delivery for WeCom cron scheduled messages#23
Ariznawlll wants to merge 2 commits into
matrixorigin:mainfrom
Ariznawlll:feat/gateway-wecom-webhook-cron

Conversation

@Ariznawlll
Copy link
Copy Markdown
Contributor

Summary

  • WeCom AI Bot cannot send proactive messages to group chats (requires reply_token from inbound @mention)
  • Cron-triggered task results were silently dropped in WeCom groups because no reply_token is available
  • Added optional webhook_url field to WeComConfig — when configured, the cron scheduler delivers results via WeCom webhook bot API
  • Enables scheduled reports (e.g. nightly regression summaries) to be posted in group chats

Changes

  • config.rs: add webhook_url: Option to WeComConfig
  • scheduler.rs: route cron output through webhook when platform is wecom and webhook is configured
  • commands.rs: fix pre-existing rustfmt diffs

Test plan

  • Create a cron job via @BisectBot in WeCom group
  • Verify cron result appears in group via webhook bot (not AI Bot)
  • Verify non-wecom platforms still use normal outbound path

Generated with Claude Code

Ariznawlll and others added 2 commits May 12, 2026 16:57
WeCom AI Bot can only respond to messages in group chats (requires
reply_token from an inbound @mention). Cron-triggered tasks have no
reply_token, so their results are silently dropped in groups.

Add optional `webhook_url` to WeComConfig. When set, the cron scheduler
sends results to the group via the WeCom webhook bot API instead of the
AI Bot respond path. This enables proactive scheduled reports (nightly
regression summaries, alerts) in group chats.

Also fixes pre-existing rustfmt diffs in commands.rs.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

1 participant