Skip to content

Add watch pace hint + fix screen-clear scope - #24

Merged
coldhighsun merged 5 commits into
mainfrom
feature/watch-pace-hint
Sep 15, 2026
Merged

coldhighsun merged 5 commits into
mainfrom
feature/watch-pace-hint

Conversation

@coldhighsun

Copy link
Copy Markdown
Owner

Summary

  • Add a pace hint to the watch limits view comparing session token-usage progress against elapsed time, nudging the user to speed up or ease off.
  • Fix AnsiConsole.Clear() firing before every subcommand instead of only the watch loop, which was wiping terminal scrollback for one-shot commands like today/export.
  • (Carried along) prior fixes already ahead of origin/main: hide empty default hint in recalibration prompts, improve bar chart color contrast, align watch limits table columns by content type.

Test plan

  • dotnet build AIUsageMonitor.slnx
  • dotnet run --project src/AIUsageMonitor.Cli -- watch — confirm pace hint appears/disappears correctly for session usage ahead/behind/in-line with elapsed time
  • dotnet run --project src/AIUsageMonitor.Cli -- today — confirm screen is no longer cleared

🤖 Generated with Claude Code

coldhighsun and others added 5 commits September 15, 2026 22:48
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>
@coldhighsun
coldhighsun merged commit 58cbc8a into main Sep 15, 2026
4 checks passed
@coldhighsun
coldhighsun deleted the feature/watch-pace-hint branch September 15, 2026 15:49
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