Auto: refactor/simplify-daily-limits #18
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "refactor/simplify-daily-limits"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Automated PR for branch
refactor/simplify-daily-limits.Approved
Clean, well-executed refactoring that replaces a complex quota-based rate limiting system (reserve/refund per-subscription translation counts + monthly token budgets) with a simpler daily output message count model. The changes are consistent across all layers: constants, database, handlers, strings, and tests. No bugs or critical issues found. All format string placeholders match their call sites. Removed code paths (decrement/increment/refund, TokenBudgetManager, ensure_free_user_subscription) are fully cleaned up with no dangling references. Tests are updated to match the new model including a new multi-message output counting test.
Suggestions