amal66 puts a meter on AI chat usage
This fork makes monthly message limits a hard gate before an AI chat request is sent.
amal66 is turning AI usage from a rough cost concern into an enforceable product rule. Before a user can send a message through either ordinary or project-based chat, the system checks and reserves part of that month's allowance in the same step.
That matters because it avoids the familiar billing surprise: users cannot slip past a limit when several requests arrive at once. The accompanying work also tests the awkward edges, including hitting the limit exactly and what happens when a request fails.
This is not a cosmetic guardrail. It adds an entitlement policy and a dependency on the system that records usage, so it is a considered product choice rather than a drop-in fix.
Spotted something wrong? Or know the PR text has fresher detail than the writeup above?