Skip to content

Stats: "Claude / Codex" breakdown ignores the service filter #2

Description

@JW-Albert

Bug

In the Stats window (用量統計) overview, the Claude / Codex cost-breakdown KPI always shows both services regardless of the selected service filter in the sidebar.

  • Selecting Claude still shows Claude / Codex (extra Codex column, e.g. $253.77 · $0.00).
  • Selecting Codex still shows the Claude column.

Cause

StatsRootView.overview renders the breakdown via cost(.claudeCode) / cost(.codex), which read vm.claude / vm.codex directly and ignore the service filter. Every other stat (totalTokens, totalCost, dailyChart, modelRows) goes through includedHistories and respects the filter.

Expected

When a single service is selected, the breakdown is redundant with Total cost, so it should not be shown. It only makes sense in All mode.

Reported in Traditional Chinese: 選擇 Claude 用量時仍顯示 "Claude / Codex"(多了 Codex);選 Codex 時仍顯示 Claude。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions