Add watch pace hint + fix screen-clear scope - #24
Merged
Merged
Conversation
Labels left-align, numeric/time columns right-align, and progress bars stay centered, independent of the header which stays centered.
Replace ad-hoc per-chart color arrays with a shared, high-contrast palette so adjacent rows in the today/week/month bar charts are easy to tell apart. Also clear the terminal before rendering command output (skipped when stdout is redirected, to avoid Console.Clear() throwing on a non-console handle).
Prompting for a session/week reset time or token-limit percentage with no current value showed a bare "()" in the prompt text. Use a TextPrompt directly and only render the default-value hint when there's an actual default to show.
Shows a hint in the watch limits view when token usage is pacing noticeably ahead of or behind the session's elapsed time, so users know whether to ease up or can use more freely. fix: only clear the screen for the watch command AnsiConsole.Clear() was running before every subcommand instead of just the long-running watch loop, wiping the terminal scrollback for one-shot commands like `today` or `export`. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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
watch limitsview comparing session token-usage progress against elapsed time, nudging the user to speed up or ease off.AnsiConsole.Clear()firing before every subcommand instead of only thewatchloop, which was wiping terminal scrollback for one-shot commands liketoday/export.Test plan
dotnet build AIUsageMonitor.slnxdotnet run --project src/AIUsageMonitor.Cli -- watch— confirm pace hint appears/disappears correctly for session usage ahead/behind/in-line with elapsed timedotnet run --project src/AIUsageMonitor.Cli -- today— confirm screen is no longer cleared🤖 Generated with Claude Code