Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

## [Windows] Unreleased

- Claude: cost scans keep the parsed lines of each Claude Code transcript in memory and read only what was appended since the last scan. A Usage & Spend refresh walks the transcripts several times (7 days, 30 days, the selected period, token activity and the trend), and each walk used to re-read every transcript in its window. Totals, de-duplication across files, incomplete-request markers and pricing are still worked out on every scan, so the numbers do not change. A transcript that shrinks or is replaced is read again from the start.
- Tray panel: **Settings > Menu > Panel look** switches between Modern and Classic. Classic is the layout from before the redesign (icon-only provider switcher, percent after the title, the full cost dashboard, shortcut hints and icons on every menu row). Drag either vertical edge of the panel to change its width (280 to 560 px at 100 % Panel scale); the width is saved, arrow keys on the focused edge step it, and a double-click or Home restores 310 px. At a high Panel scale the panel never grows wider than the screen's work area.
- Tray panel: a new look. The panel sits on a soft tinted surface with larger type. Provider tabs show an icon and a name over a quota underline, wrap to extra rows when many providers are on, and keep the dense icon grid beyond 18. Each quota row is a title, a thicker bar, then the percent used on the left and the reset on the right. Sections are set off by hairlines, and the daily-cost dashboard becomes a collapsible **Cost** section that opens from a two-line summary. The menu is text-only: shortcut hints and the Settings, About and Quit icons are gone, and About no longer carries the version.
- Claude: when Claude Code signs out but keeps its login entry with blank tokens, Settings and the tray still list the saved Claude Code accounts, and Switch and Add account work again. Before, every account action failed with "Claude login is missing accessToken" and "No Claude Code accounts found", even though the accounts were saved.
Expand Down
3 changes: 2 additions & 1 deletion rust/src/cost_scanner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ use crate::providers::claude::quota_history::ClaudeQuotaHistoryRecord;
use crate::providers::opencodego::local as opencodego_local;
use crate::settings::Settings;
mod claude_events;
mod claude_file_cache;
mod claude_incomplete;
mod claude_pricing;
mod claude_roots;
Expand Down Expand Up @@ -257,7 +258,7 @@ fn file_len_i64(metadata: &fs::Metadata) -> i64 {
i64::try_from(metadata.len()).unwrap_or(i64::MAX)
}

#[derive(Debug)]
#[derive(Debug, Clone)]
struct ClaudeUsageRecord {
model: String,
pricing_known: bool,
Expand Down
Loading
Loading