microsoft / microsoft/vscode

Incorrect tokens usage count in Agent Debug logs

Open
#330,196 3 comments 0 reactions 1 assignee Claimed by @vijayupadya View on GitHub
Dominant language
TypeScript
Stars
193k
Forks
42.4k
PR merge metrics
PR metrics pending

Description

Does this issue occur when all extensions are disabled?: Yes/No

- VS Code Version: 1.132.0
- OS Version: MacOS Tahoe 26.6.1

Steps to Reproduce:

1. Have any conversation with Copilot Agent
2. Open Agent Debug Logs and check token usage
3. Now do "/usage" and compare the results.
4. The results don't match
For example, in my specific example agent Debug Logs shows Input tokens as 0 which is not true!
While results from /usage seems OK.

Image

Question: What could be the reason of Agent debug logs not showing correct view?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.