Skip to content

Support new Copilot CLI metrics output format#611

Merged
haoranpb merged 1 commit intomainfrom
fix/copilot-metrics-new-format
Apr 13, 2026
Merged

Support new Copilot CLI metrics output format#611
haoranpb merged 1 commit intomainfrom
fix/copilot-metrics-new-format

Conversation

@haoranpb
Copy link
Copy Markdown
Collaborator

Add parsing for the new compact output format:

  Changes   +17 -0
  Requests  0.33 Premium (1m 45s)
  Tokens    ↑ 317.5k • ↓ 4.3k • 255.0k (cached)

Legacy format is still supported as fallback, so we don't have to update the versions at the moment.

Add parsing for the new compact output format:
  Changes   +17 -0
  Requests  0.33 Premium (1m 45s)
  Tokens    ↑ 317.5k • ↓ 4.3k • 255.0k (cached)

Legacy format is still supported as fallback. Extract _parse_token_count
to module-level for reuse across both formats.
@haoranpb haoranpb requested a review from Jiawen-CS April 13, 2026 06:41
@haoranpb haoranpb enabled auto-merge (squash) April 13, 2026 06:41
@haoranpb haoranpb merged commit 569c3fd into main Apr 13, 2026
11 checks passed
@haoranpb haoranpb deleted the fix/copilot-metrics-new-format branch April 13, 2026 07:53
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.

2 participants