Skip to content

feat(chat): plan limits (free 10/month, Lite 150, Pro 600), paid chat features, auto-open unlock panel - #225

Merged
Kumar2421 merged 3 commits into
mainfrom
feat/assistant-plan-limits
Oct 23, 2026
Merged

Kumar2421 merged 3 commits into
mainfrom
feat/assistant-plan-limits

Conversation

@Kumar2421

Copy link
Copy Markdown
Owner

Chat entitlements built behind the EXISTING plan enforcement switch (app_config.billing_enabled): when not enforced nothing is limited or locked, so beta behaviour is unchanged. Matrix: chat_messages_per_month free 10 / lite 150 / pro 600 / selfhost unlimited; new feature ids chat_start_audit and chat_deep_tools (lite+). Counting: usage_events agent_type='chat_message' status='ok' per UTC month (BYOK writes no row = exempt). chatEntitlements.checkChatAllowance runs only in the platform-credential branch before the credit charge; fails open on lookup errors; denial = HTTP 402 {error, code:'chat_limit', used, limit, resetsAt, plan}. GET /api/chat/allowance for the meter. Deep tools (get_geo_status, get_audit_summary) removed from the model's tool list on free when enforced, with a 'needs a paid plan, do not guess' system note. Client: chat_limit -> calm message + lib/ui/unlockTrigger force-shows the unlock panel (clears dismissal) and opens the plans slide-over once; ChatUsageMeter 'N of 10 chats left' only when enforced on free. Pricing: 'Chat messages per month' row + two paid chat features. 19 new tests, 1938 total pass. Not verified live: Supabase count query, allowance route, meter, panel auto-open. Note: model-policy PR must not fall back on chat_limit (told that agent).

🤖 Generated with Claude Code

@vercel

vercel Bot commented Oct 23, 2026

Copy link
Copy Markdown

Deployment failed for project okara-alternative with the following error:

Resource is limited - try again in 24 hours (more than 100, code: "api-deployments-free-per-day").

Learn More: https://vercel.com/kumar2421s-projects?upgradeToPro=build-rate-limit

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-10-23T12:06:39.048472Z
We couldn’t complete this review. Comment @codex review to try again.
009a4e3 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@vercel

vercel Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
okara-alternative Ready Ready Preview Oct 23, 2026 12:32pm UTC

@Kumar2421
Kumar2421 merged commit 0bd5229 into main Oct 23, 2026
4 checks passed
@Kumar2421
Kumar2421 deleted the feat/assistant-plan-limits branch October 23, 2026 12:32

This branch was successfully deployed

1 active deployment
Preview — efdadf0d Deployed Oct 23, 2026 by vercel[bot]
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.

1 participant