Skip to content

refactor: reorder members and add XML docs across Core/Cli - #8

Merged
coldhighsun merged 1 commit into
mainfrom
refactor/reorder-members-and-docs
Aug 5, 2026
Merged

refactor: reorder members and add XML docs across Core/Cli#8
coldhighsun merged 1 commit into
mainfrom
refactor/reorder-members-and-docs

Conversation

@coldhighsun

Copy link
Copy Markdown
Owner

Summary

  • Alphabetizes usings and sorts members within touched types across AIUsageMonitor.Core and AIUsageMonitor.Cli, adding XML doc comments.
  • Fixes three behavioral regressions caught in /code-review:
    • SessionFileCache.GetRows re-validates the file's last-write time before returning cached rows instead of trusting the cache unconditionally.
    • StatsCacheBuilder.Build prunes stale entries from SessionFileCache again (was dropped along with the removed Prune method), as a safety net for missed FileSystemWatcher deletions.
    • DataService.GetStatsCache computes the cache expiry using DateTimeOffset.UtcNow instead of local time, avoiding DST-related drift.

Test plan

  • dotnet build AIUsageMonitor.slnx
  • dotnet test AIUsageMonitor.slnx (31 passed)

Alphabetizes usings and sorts members within touched types, adds XML
doc comments, and fixes three behavioral regressions surfaced by
review: SessionFileCache.GetRows now re-validates file mtime before
returning cached rows, StatsCacheBuilder prunes stale session-file
cache entries again, and DataService's stats-cache expiration uses
UTC instead of local time to avoid DST drift.
@coldhighsun
coldhighsun merged commit e3b51c1 into main Aug 5, 2026
1 check passed
@coldhighsun
coldhighsun deleted the refactor/reorder-members-and-docs branch August 5, 2026 14:12
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