[Bug] weixin quota: default window (24h) caps the bot at 4 messages/day, and burst_limit=0 does not disable it
cc-connect Version
v1.5.0 (Homebrew, macOS)
Operating System
macOS (Darwin 24.6.0, Apple Silicon)
Agent Type
Claude Code
Platform
WeChat / ilink
Installation Method
Homebrew
Bug Description
Two problems with the weixin send quota added in v1.5.0.
1. The default window is wrong. Defaults are burst_limit = 4 + burst_window_secs = 86400, i.e. 4 outbound messages per 24 hours. But cc-connect's own config comment describes the upstream rule as a short-window burst throttle:
the gateway throttles the bot after roughly 5-6 separate messages within a short window (multi-chunk sends are fine)
Implementing a burst guard with a 24h window turns "don't send 5-6 back to back" into a hard daily cap of 4. The bot goes silent for the rest of the day after four replies.
2. burst_limit = 0 does not disable the quota. The config comment says 0 disables the quota. Setting it to 0 and restarting still produces send budget exhausted (4 messages in the last 24h0m0s) — the value appears to be treated as unset and falls back to the default. Only an explicit large value works.
Also worth noting: the message is dropped, not queued. Nothing is visible on the messaging side; the only trace is level=ERROR in the local log. Conversations die mid-thread and neither side can tell why.
Steps to Reproduce
- v1.5.0 with a weixin platform, no quota keys set.
- Send 4 outbound messages; the 5th is dropped with
send budget exhausted. - Set
burst_limit = 0, restart — still dropped with the same error.
Expected Behavior
- Default
burst_window_secsshould match ilink's actual short window (~600-1800s), not 86400. burst_limit = 0should disable the quota as documented.- Ideally queue and pace instead of dropping, so no message is silently lost.
Actual Behavior
4 messages per 24h, silently discarded afterwards, and the documented escape hatch (0) has no effect.
Configuration (config.toml)
[projects.platforms.options]
allow_from = "*"
token = "${WEIXIN_BOT_TOKEN}"
base_url = "https://ilinkai.weixin.qq.com"Logs / Error Output
level=ERROR msg="platform send failed" platform=weixin error="weixin: send budget exhausted (4 messages in the last 24h0m0s); ilink throttles the bot after roughly 5-6 sends per window — reduce messages or re-login later"Note: in three weeks of use before v1.5.0, ilink's real ret=-2 throttle was never triggered at this traffic level — the guard fires long before the thing it guards against.
Additional Context
Working workaround (0 does not work):
burst_limit = 100
burst_window_secs = 600Related: #1712 — same symptom on Windows WSL + Codex, so it is not OS- or agent-specific.
Source: chenhg5/cc-connect