[BUG] Claude Code for VSCode Does Not Send user.account_uuid When Metrics Are Enabled
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
When using the Claude Code extension for VSCode with the following settings, metrics are sent, but user.account_uuid and email are not. Please fix this.
cat /etc/claude-code/managed-settings.json
{
"env": {
"CLAUDE_CODE_ENABLE_TELEMETRY": "1",
"OTEL_METRICS_EXPORTER": "otlp",
"OTEL_EXPORTER_OTLP_PROTOCOL": "grpc",
"OTEL_EXPORTER_OTLP_ENDPOINT": "http://localhost:4317"
}
Suspected Cause
It is suspected that the Claude Code extension for VSCode does not refer to the oauthAccount key in ~/.claude.json when sending metrics.
Furthermore, when ~/.claude.json does not exist and the user logs in via the Claude Code extension, the oauthAccount key in ~/.claude.json was null.
The ~/.claude.json file generated after the initial authentication by the Claude Code extension, with the Claude Code CLI not being installed.
{
"installMethod": "unknown",
"autoUpdates": true,
"cachedStatsigGates": {
"tengu_migrate_ignore_patterns": false,
"tengu_disable_bypass_permissions_mode": false,
"tengu_tool_pear": false
},
"firstStartTime": "2025-11-04T08:51:11.866Z",
"userID": "xxxxx",
"sonnet45MigrationComplete": true,
"fallbackAvailableWarningThreshold": 0.2
}
What Should Happen?
Users who are only using Claude code for VS Code via GUI should be able to appropriately collect attributes like user.account_uuid along with metrics via OTLP.
Error Messages/Logs
Steps to Reproduce
- Prepare an unauthenticated environment where claude code for vscode is installed and metrics collection is configured (referencing the documentation for setting up metrics collection). Ensure
~/.claude.jsondoes not exist. - Open the GUI of claude code for vscode and authenticate with your Anthropic Account.
- Check the
user.account_uuidattribute of the collected metrics.
Claude Model
None
Is this a regression?
I don't know
Last Working Version
No response
Claude Code Version
2.0.31 (Claude Code for VS Code)
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
VS Code integrated terminal
Additional Information
No response