feat: Add usage data for Codex (and implement a usage viewer for future providers/models)
Purpose: To view provider limits for plans inline within T3code without relying on external services like CodexBar Expected UX: Collapsible usage information on the sidebar
Suggested Prompt
Implement Codex usage display by calling the Codex app-server JSON-RPC method account/rateLimits/read against the active Codex session. Treat the session bucket as rateLimits.primary. Treat the weekly bucket as rateLimits.secondary. Map those buckets into a quota / quotas response for the UI, including percentUsed and resetDate. Label the session bucket from windowDurationMins like Session (5 hrs), and label the second bucket as Weekly. If no active Codex session exists, return { provider: "codex" } with no quota data.
Endpoint / method: account/rateLimits/read
The endpoint and data matters more, it could be hidden away as well, but it'd be useful information to have at a glance, especially for lower tiers (like the $20 plan).
A centralized abstraction link with providers could also be useful if this has to be extended to other providers like GitHub Copilot (which includes native support for usage information in the SDK via client.rpc.account.getQuota()), or Cursor.
Closing as a duplicate of #228. Both request provider usage/quota visibility in the UI.