Skip to content

Commit 64b9448

Browse files
rajbosCopilot
andcommitted
diag: log total token count in sync upload
Add total input+output token count to the 'uploading X rollup entries' log message so we can compare what gets uploaded vs what the extension displays in its status bar. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 5d67f3c commit 64b9448

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

vscode-extension/src/backend/services/syncService.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1427,7 +1427,9 @@ export class SyncService {
14271427
});
14281428
}
14291429

1430-
this.deps.log(`Sharing server upload: uploading ${entries.length} rollup entries`);
1430+
const totalInputTokens = entries.reduce((s, e) => s + e.inputTokens, 0);
1431+
const totalOutputTokens = entries.reduce((s, e) => s + e.outputTokens, 0);
1432+
this.deps.log(`Sharing server upload: uploading ${entries.length} rollup entries (${(totalInputTokens + totalOutputTokens).toLocaleString()} tokens total)`);
14311433
await this.sharingServerUploadService.uploadRollups(
14321434
settings.sharingServerEndpointUrl,
14331435
githubToken,

0 commit comments

Comments
 (0)