From d15532af0bd760770745475dcf060746629743dd Mon Sep 17 00:00:00 2001 From: AgentSeal Date: Thu, 16 Apr 2026 15:34:38 -0700 Subject: [PATCH] fix: apply --project/--exclude to menubar per-provider today totals The menubar status output computes per-provider today costs by iterating all providers after the main period blocks. That loop bypassed the project filter, so --project/--exclude affected the main totals but not the provider breakdown shown below them. --- src/cli.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli.ts b/src/cli.ts index 79844f5..3cfe752 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -286,7 +286,7 @@ program const monthData = buildPeriodData('Month', fp(await parseAllSessions(getDateRange('month').range, pf))) const todayProviders: ProviderCost[] = [] for (const p of await getAllProviders()) { - const data = await parseAllSessions(todayRange, p.name) + const data = fp(await parseAllSessions(todayRange, p.name)) const cost = data.reduce((s, proj) => s + proj.totalCostUSD, 0) if (cost > 0) todayProviders.push({ name: p.displayName, cost }) }