FIX: Improve cost calculation accuracy and dashboard UX#26
Merged
Conversation
added 2 commits
July 19, 2025 23:56
- Adjusted cache token pricing based on empirical data analysis - Sonnet-4 cache_write: 4.0 → 1.7 per million tokens (57.5% reduction) - Sonnet-4 cache_read: 0.32 → 0.14 per million tokens (56.25% reduction) - Opus-4 pricing adjusted proportionally to maintain model ratio - Changed dashboard default view from "Last 7 days" to "Today" - Added date range indicator to Total Cost card for clarity - Fixed issue where costs were 2.3x higher than expected values Cache tokens account for ~94% of total costs, making accurate pricing critical for budget tracking.
- Use nullish coalescing assignment operator for cleaner code - Remove unnecessary null checks where TypeScript types guarantee non-null - Fix strict boolean expression checks for better type safety
MiwiDots
pushed a commit
that referenced
this pull request
Jul 20, 2025
This reverts commit 8b51ece.
MiwiDots
added a commit
that referenced
this pull request
Jul 20, 2025
* Revert "REFACTOR: Streamline CI/CD workflows to reduce GitHub Actions costs (#27)" This reverts commit 13b312d. * Revert "FIX: Improve cost calculation accuracy and dashboard UX (#26)" This reverts commit 8b51ece. * Revert "FEAT: Add 5-hour billing block tracking and enhanced project view (#25)" This reverts commit 09b56f3. * Revert "CLEANUP: Remove unnecessary development files and improve .gitignore (#24)" This reverts commit fe3d287. --------- Co-authored-by: Martin Wilke <miwi@FreeBSD.org>
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
Changes
1. Cache Token Pricing Adjustment
2. Dashboard UX Improvements
3. Impact
Test Plan