From e3ff2b80bc25b0e99fa3b2ca7817346103bf5c12 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Wed, 29 Jul 2026 10:08:47 -0700 Subject: [PATCH] Better comments --- shell/plugins/model-usage/Panel.qml | 2 ++ shell/plugins/model-usage/README.md | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/shell/plugins/model-usage/Panel.qml b/shell/plugins/model-usage/Panel.qml index c9646730..cc80917d 100644 --- a/shell/plugins/model-usage/Panel.qml +++ b/shell/plugins/model-usage/Panel.qml @@ -651,6 +651,8 @@ Panel { required property var modelData width: modelSection.width row: modelData + // Scaled to the heaviest model, so the top row is always full — + // the same scale-to-peak the weekly chart uses for its busiest day. share: modelData.total / Math.max(1, root.models[0].total) } } diff --git a/shell/plugins/model-usage/README.md b/shell/plugins/model-usage/README.md index 3d587682..59b224cf 100644 --- a/shell/plugins/model-usage/README.md +++ b/shell/plugins/model-usage/README.md @@ -19,8 +19,9 @@ adapter per subscription. - **Usage this week** — one row per day for the last week: day, bar, tokens, with today bolded at the bottom. Hover today for its prompt and session count. - **Usage by model** — total tokens and active days in the header, then - tokens per model with the bar behind each row showing its share of the - heaviest one. Hover for the input / output / cache split. + tokens per model with the bar behind each row scaled to the heaviest model, + the same way the weekly chart scales to its busiest day. Hover for the + input / output / cache split. A subscription appears only when it is enabled in settings and has actually recorded usage — on this machine or on a synced one. With one such provider