mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-11-24 06:37:07 +08:00
- When a Cloud reservation reaches ceil(limit * 0.8), claim the day's usage row (new nullable quota_warning_at, Alembic 0056) with a compare-and-set and email every owner once per UTC day from a background task. Failed deliveries release the claim so the next message retries; unlimited plans and OSS never reach this path. - Reuse the alert email shell: extract render_layout() from alerts/render.py (alert output byte-identical) and add a zh/en quota template with usage meter, remaining count, reset time and a "View plans" button. - WebUI: /home/...?workspace=<uuid> selects that Workspace and ?open=plans opens the Cloud plans dialog (link target of the email). - Hide the Cloud-only daily-message-quota-exceeded output notice from Community pipeline forms (show_if __system.is_cloud). Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: multica-agent <github@multica.ai>