Skip to content

Update model colors#112

Merged
rajbos merged 1 commit intomainfrom
breakdown-per-editor
Jan 15, 2026
Merged

Update model colors#112
rajbos merged 1 commit intomainfrom
breakdown-per-editor

Conversation

@rajbos
Copy link
Owner

@rajbos rajbos commented Jan 15, 2026

This pull request adds detailed tracking and visualization of Copilot token usage by editor type (e.g., VS Code, Cursor, Copilot CLI). It introduces new data structures and logic to collect, aggregate, and display editor-specific usage statistics, both in summary tables and in the token usage chart, allowing users to see which editors contribute most to their Copilot activity.

Key changes:

Data Model and Aggregation Enhancements:

  • Introduced a new EditorUsage interface and updated the DetailedStats and DailyTokenStats types to include per-editor token/session counts, enabling tracking usage by editor type. [1] [2] [3]
  • Added logic in CopilotTokenTracker to determine the editor type from the session file path and aggregate token/session counts per editor for daily, monthly, and per-day stats. [1] [2] [3] [4] [5] [6] [7] [8]

User Interface and Visualization:

  • Added a new summary table and section to the stats view showing token and session breakdowns by editor, including icons and percentages for both today and this month. [1] [2]
  • Enhanced the token usage chart to support a new "By Editor" stacked bar view, with distinct colors for each editor and a summary panel of total tokens per editor. [1] [2] [3] [4] [5]

These changes provide users with deeper insights into their Copilot usage patterns across different editors, making it easier to analyze and optimize their workflow.

@rajbos rajbos merged commit 5aeff2a into main Jan 15, 2026
13 checks passed
@rajbos rajbos deleted the breakdown-per-editor branch January 15, 2026 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments