Repository navigation
Free plan: no credit count on each turn or message - #804
Merged
Merged
Conversation
The line under a finished turn ("18 credits · 1,382 left") and the
per-message "Used N credits" footer now show on paid plans only. A free
account still hears about its balance from the 50%/80% credit cards and
the out-of-credits dialog, which are unchanged.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On the free plan, a finished turn no longer shows its credit count ("Done in 12s · 18 credits · 1,382 left" becomes "Done in 12s"), and assistant messages no longer show the "Used N credits" footer. Paid plans (Basic, Pro, Max) see both exactly as before.
Free accounts still learn when they are running low the same way as today: the 50% and 80% credit cards and the out-of-credits upgrade dialog are untouched, as are the settings usage page and the sidebar credits card.
Changes
kit/status/turn-credits.tsx:TurnCreditsreturns nothing for a free account (as it already did while the plan is unread). Its balance-store effects keep running; nothing else reads that store today.kit/message.tsx: the per-message credits footer moves into a smallCreditsLinethat reads the plan and hides for free, and while the plan is unread so it never flashes for a free account.Tests
status.test.tsx"the turn's credits": Basic and Pro turns show the count and what is left; free turns (normal and tiny) show nothing; the click test runs on Basic.parts.test.tsx: the credits footer shows on a paid plan and not on the free plan.tsc -b,pnpm run typecheck, andvitest run src/features/chat(69 files) pass.