Skip to content

fix(wechat): /l 清积压只投各 workspace 最新 - #42

Merged
tuchg merged 1 commit into
mainfrom
fix/wechat-latest-clear-backlog-only-newest
Jul 12, 2026
Merged

tuchg merged 1 commit into
mainfrom
fix/wechat-latest-clear-backlog-only-newest

Conversation

@tuchg

@tuchg tuchg commented Jul 12, 2026

Copy link
Copy Markdown
Owner

Summary

  • /latest / /l 不再把 pending_notifications 全量刷到微信:按 workspace 只保留「最后一条 text + 其后 attachments」,其余丢弃;发送失败也不回补队列。
  • /l 不再 retry completed pending replies(周期 tick 仍处理 replies)。
  • 限流解除后的周期 tick:对 notification 积压 整队丢弃、不发送(避免后台洪水)。
  • 同步 docs/commands.md、README、WeChat help 文案。

Closes #41
Related: #40

Test plan

  • cargo +nightly test -Zbuild-dir-new-layout -p lucarne-wechat --lib
  • 新增:多 workspace 只发最新 text;text+attachment 折叠;失败不 requeue;/l 不动 pending replies;tick 丢弃不重放
  • 手工:限流积压后发 /l,微信只收到各工作区最新一轮,无历史刷屏

Previously /latest and /l drained the full pending-notification queue and
sent every item to WeChat. They now collapse to the latest text (plus
following attachments) per workspace and drop the rest, including on send
failure. The periodic tick discards the queue after rate limit lifts
instead of replaying it. Docs and help copy match the new semantics.
@tuchg
tuchg merged commit 160656a into main Jul 12, 2026
6 checks passed
@tuchg
tuchg deleted the fix/wechat-latest-clear-backlog-only-newest branch July 12, 2026 03:59
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.

实现 /l 按 workspace 只投最新 + tick 丢弃积压

1 participant