Fix watch limits token-progress mismatch and add update-check docs - #23
Merged
Merged
Conversation
Adds a standalone AIUsageMonitor.UpdateCheck project that queries GitHub's latest-release API and compares it against the running version. Every command checks once after finishing; watch checks once before entering its refresh loop and keeps the notice pinned to the bottom of the view for the whole session.
The token limit was being derived from TotalTokens fetched before the real session/week reset times were resolved, while every subsequent render used TotalTokens from the anchor-pinned window. This mismatch made the progress bar show a different percentage than the one just entered, most visibly for the week window.
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 --view limitstoken limit from anchor-pinned window totals, so the progress shown right after entering a session/week percentage matches what was entered (most visible for the week window)Test plan
dotnet build AIUsageMonitor.slnxaimon watchand confirm entering a week token-progress percentage shows the same percentage immediately after