Skip to content

Commit e7de867

Browse files
[codex] Grant signup credits (#606)
Co-authored-by: James Grugett <jahooma@gmail.com>
1 parent c7e3a77 commit e7de867

12 files changed

Lines changed: 298 additions & 134 deletions

File tree

cli/src/components/usage-banner.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ export const UsageBanner = ({ showTime }: { showTime: number }) => {
145145

146146
{!activeSubscription && renewalDate && (
147147
<>
148-
<text style={{ fg: theme.muted }}>· Renews:</text>
148+
<text style={{ fg: theme.muted }}>· Cycle:</text>
149149
<text style={{ fg: theme.foreground }}>{renewalDate}</text>
150150
</>
151151
)}

common/src/constants/limits.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,12 @@ export const MAX_DATE = new Date(86399999999999)
55
export const BILLING_PERIOD_DAYS = 30
66
export const SESSION_MAX_AGE_SECONDS = 30 * 24 * 60 * 60 // 30 days
77
export const SESSION_TIME_WINDOW_MS = 30 * 60 * 1000 // 30 minutes - used for matching sessions created around fingerprint creation
8-
// Default number of free credits granted per cycle
9-
export const DEFAULT_FREE_CREDITS_GRANT = 500
8+
// New Codebuff accounts receive a one-time free credit grant on signup.
9+
export const SIGNUP_FREE_CREDITS_GRANT = 500
10+
11+
// New accounts do not receive monthly free credits; grandfathered monthly grants
12+
// are based on previous expiring free grants instead of this default.
13+
export const DEFAULT_FREE_CREDITS_GRANT = 0
1014

1115
// Credit pricing configuration
1216
export const CREDIT_PRICING = {

0 commit comments

Comments
 (0)