feat(tui): render quota progress bar under the prompt - #210
Merged
Conversation
Adds a compact quota progress bar below the TUI prompt. The bar shows the single-window quota entry (preferring the 5h window), remaining percent, and reset countdown, with a subtle animation while the session is running. Replaces the compact status line under the prompt when enabled and is configurable via quotaToast.tuiPromptBar.enabled (default: true). Falls back to the existing compact status line when disabled.
Keep the existing compact prompt line unless users enable the new bar. Place the bar in normal layout and stop animation outside active sessions. Treat completed empty quota results as ready and cover config, selection, layout, and fallback behavior.
Resolve the README overlap while preserving the prompt quota bar documentation.
Owner
|
Thanks for building the prompt quota bar. I pushed a maintainer follow-up and synced the branch with current The original shared-session design stays intact. The follow-up:
Maintainer commits:
Local checks passed: 142 focused tests, typecheck, build, 1,865 full tests, four-surface parity, package checks, and full GitHub CI also passed, including the Node 22 and Node 24 package smoke tests. This is ready to merge. |
Contributor
Author
|
Thanks for the follow-up and for syncing the branch with the latest main. I reviewed the changes, and everything looks good to me. Feel free to merge! |
Match the existing TUI separator style in prompt quota metadata. Add a smoke assertion to prevent the middle dot from returning.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Renders a compact quota progress bar directly under the TUI prompt. The bar shows the single-window quota entry (preferring the 5h window), remaining percent, and a reset countdown, with a subtle animation while the session is running. It replaces the compact status line under the prompt and falls back to that line when disabled.
This was originally prototyped locally by hand-editing the installed plugin bundle; this PR ports the feature to the source tree and adds the missing \ uiPromptBar\ config plumbing.
Linked Issue
No issue exists yet; this PR is opened alongside the feature (issue-first per CONTRIBUTING is fine to open in parallel). Scope: new opt-in TUI surface, default \ rue, configurable via \quotaToast.tuiPromptBar.enabled.
What changed
esolveTuiSurfaceRegistration.
OpenCode Validation
Quality Checklist