Skip to content

v1.11.10 - recover credits lost to head-truncated debug logs

Choose a tag to compare

@pvjagtap pvjagtap released this 06 Oct 03:37
· 4 commits to main since this release

Install

Download copilot-usage-dashboard-1.11.10.vsix below, then:

code --install-extension copilot-usage-dashboard-1.11.10.vsix

Reload the window afterwards (Developer: Reload Window).


Fixed — credits missing from long VS Code sessions

Copilot caps each debug-logs/<sid>/main.jsonl by cutting off its head, so the early llm_request lines of a long session — and the copilotUsageNanoAiu GitHub billed for them — disappear. The scanner then overwrote each turn's credits with the debug-log figure, so those requests were billed but never shown, and the dashboard fell short of GitHub's ledger by whole sessions' worth of credits.

The chatSession file keeps VS Code's own per-request copilotCredits, which matched the debug-log sum to the cent for every intact session checked. The scanner now takes the shortfall back from it, dated and attributed at the lost request:

  • never more than the session's total shortfall;
  • only requests that began before the log's first surviving llm_request (a log merely lagging the live tail is not topped up);
  • a turn the debug log never overlaid is not counted twice.

Recovered credits carry no token counts, so the "AI Credits by Model" table lists them under Input; totals and per-day figures are exact. Applies to closed cycles too.

Fixed — empty-window sessions' debug logs were never read

Sessions opened with no folder keep their debug logs under globalStorage/github.copilot-chat/debug-logs. That directory is now scanned.

Also included (1.11.9)

  • OMP sessions no longer vanish when the session header is not on line 1.
  • Rate table corrected against real copilotUsageNanoAiu figures (claude-opus-5.5 has its own key; GPT-5.6/6 cache-write rates; new models added).

Full details, including 1.11.5–1.11.8 which were not released separately, are in CHANGELOG.md.