Skip to content

feat(tui): show account limits in status bar - #16644

Closed
grig2277 wants to merge 1 commit into
NousResearch:mainfrom
grig2277:feat/tui-account-limit-status
Closed

feat(tui): show account limits in status bar#16644
grig2277 wants to merge 1 commit into
NousResearch:mainfrom
grig2277:feat/tui-account-limit-status

Conversation

@grig2277

Copy link
Copy Markdown

Summary

  • add provider-agnostic account usage snapshots and compact account-limit summaries
  • fetch OpenAI Codex session/weekly usage with the active runtime credential
  • expose cached account limits through the TUI gateway session info and turn-complete events
  • render compact remaining quota windows in the Ink status bar, including the safe pooled credential label

Closes #16643

Test plan

  • venv/bin/python -m pytest tests/test_account_usage.py tests/test_tui_gateway_server.py -q -o 'addopts='
  • npm exec eslint -- src/components/appChrome.tsx src/components/appLayout.tsx src/app/createGatewayEventHandler.ts src/__tests__/createGatewayEventHandler.test.ts src/gatewayTypes.ts src/types.ts
  • npm run type-check from ui-tui/
  • npm run test -- src/__tests__/createGatewayEventHandler.test.ts from ui-tui/
  • npm run build from ui-tui/

Add provider account-usage summaries for Codex, expose cached account limit status through the TUI gateway, and render compact remaining quota windows in the Ink status bar.

Also refresh account limits after turns and include the active credential label without exposing token material.
@alt-glitch alt-glitch added type/feature New feature or request P3 Low — cosmetic, nice to have comp/tui Terminal UI (ui-tui/ + tui_gateway/) comp/agent Core agent runtime: loop, agent_init, prompt builder, context-compression, responses endpoint labels Apr 27, 2026
@grig2277

Copy link
Copy Markdown
Author

Superseded by the combined CLI + TUI account-limit status PR: #16652. Closing this TUI-only draft so review happens in one place.

@grig2277

Copy link
Copy Markdown
Author

Closing in favor of the combined CLI + TUI PR #16652.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/agent Core agent runtime: loop, agent_init, prompt builder, context-compression, responses endpoint comp/tui Terminal UI (ui-tui/ + tui_gateway/) P3 Low — cosmetic, nice to have type/feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show provider account limits in the TUI status bar

2 participants