Skip to content

feat: prompt footer space for plugin to render usage details#16337

Open
stephancill wants to merge 1 commit intoanomalyco:devfrom
stephancill:feat/provider-usage-data
Open

feat: prompt footer space for plugin to render usage details#16337
stephancill wants to merge 1 commit intoanomalyco:devfrom
stephancill:feat/provider-usage-data

Conversation

@stephancill
Copy link

@stephancill stephancill commented Mar 6, 2026

Issue for this PR

N/A

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Adds provider usage details to the TUI model footer so plugins can surface live model/account limits in-context.

This introduces a new tui.footer.model plugin hook and /tui/footer-model route, wires TUI client polling + footer rendering for loading/metadata states, and adds provider implementations for OpenAI Codex usage windows and OpenRouter remaining credits. The JS SDK was regenerated to include the new endpoint/types.

How did you verify your code works?

  • Confirmed branch diff is scoped to TUI footer metadata flow, plugin hooks, and generated SDK types.
  • Verified provider guards/fallbacks are in place (normal mode only, provider checks, unavailable-rate handling, refresh intervals).

Screenshots / recordings

If this is a UI change, please include a screenshot or recording.

image Screenshot 2026-03-06 at 12 56 05

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

If you do not follow this template your PR will be automatically rejected.

@github-actions github-actions bot added needs:compliance This means the issue will auto-close after 2 hours. and removed needs:compliance This means the issue will auto-close after 2 hours. labels Mar 6, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Mar 6, 2026

Thanks for updating your PR! It now meets our contributing guidelines. 👍

@stephancill stephancill changed the title feat: footer space for plugin to render usage details feat: prompt footer space for plugin to render usage details Mar 6, 2026
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