I’d like T3 Code to surface usage information so users can better understand cost/rate-limit consumption while working.
Why
For long-running coding sessions it is hard to tell:
- how much usage a thread consumed
- whether the current account is close to rate limits
- whether a model/service-tier choice is still appropriate
Requested scope
- Show per-thread or per-turn token usage when available.
- Show account-level rate limit / credits / quota information when available from the provider.
- Add a lightweight usage summary in the UI, ideally without overwhelming the chat view.
Suggested UX
- Thread-level token usage near the thread/session metadata
- Account usage summary in sidebar or settings/account area
- Refresh or auto-update on relevant provider events
Suggested acceptance criteria
- Users can inspect current thread/session usage without opening logs.
- Users can inspect account-level quota or rate-limit status when the provider exposes it.
- The UI degrades gracefully when the provider does not expose usage data.
Relevant code context
apps/server/src/codexAppServerManager.ts
apps/server/src/provider/Layers/CodexAdapter.ts
apps/web/src/components/ChatView.tsx
Reference implementation ideas
- CodexMonitor exposes local usage snapshots, thread token usage, and account rate-limit views.
- Codex app-server events include account and token-usage style notifications that look relevant to this problem.
I’d like T3 Code to surface usage information so users can better understand cost/rate-limit consumption while working.
Why
For long-running coding sessions it is hard to tell:
Requested scope
Suggested UX
Suggested acceptance criteria
Relevant code context
apps/server/src/codexAppServerManager.tsapps/server/src/provider/Layers/CodexAdapter.tsapps/web/src/components/ChatView.tsxReference implementation ideas