Skip to content

feat: track Codex and Claude account usage - #29

Merged
rexdotsh merged 8 commits into
mainfrom
feature/provider-account-tracking
Aug 17, 2026
Merged

feat: track Codex and Claude account usage#29
rexdotsh merged 8 commits into
mainfrom
feature/provider-account-tracking

Conversation

@rexdotsh

@rexdotsh rexdotsh commented Aug 17, 2026

Copy link
Copy Markdown
Owner

Summary

  • fetch Codex and Claude quotas automatically as part of GET /admin/accounts
  • attach { fetchedAt, error, data } directly to each account for simple WebUI rendering
  • use a 60-second in-process cache to avoid repeated upstream quota calls
  • keep Codex profile, reset-credit, account identity, thread query, and reset-credit consume support
  • persist only reset-credit redemption IDs/results for safe ambiguous retries
  • add a forward cleanup migration for the quota tables already deployed by migration 0011

Verification

  • bun test (94 pass)
  • bun typecheck
  • bun lint
  • server and browser admin production bundles
  • live production-backed /admin/accounts request returned attached Codex/Claude quotas
  • migration 0012 applied successfully and verified only codex_reset_credit_redemptions remains

@rexdotsh
rexdotsh merged commit 9b331df into main Aug 17, 2026
2 checks passed
@rexdotsh
rexdotsh deleted the feature/provider-account-tracking branch August 17, 2026 14:47
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