Skip to content

[BUG] Account & Usage panel stuck on "Loading usage data..." in VS Code extension when behind HTTP proxy on Remote SSH #29570

Closed

Description

@chgwan

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

Environment

  • VS Code with official Claude Code extension
  • Connected via Remote SSH to a restricted server
  • HTTP proxy: 127.0.0.1:50808 (required for all outbound traffic)
  • Claude Code CLI has HTTP proxy configured

Description

The Account & Usage panel shows account info correctly (auth method, email, plan) but the Usage section is permanently stuck on "Loading usage data...". This only happens in the VS Code extension on the remote SSH environment.

What works

  • ✅ Claude Code CLI (claude) shows usage data correctly (Session % and Weekly %)
  • ✅ Main extension functionality works fine (chat, code edits, etc.)
  • ✅ CLI respects the HTTP proxy

What doesn't work

  • ❌ Usage data in the VS Code extension's Account & Usage panel never loads

Root cause hypothesis

The usage data fetch in the VS Code extension appears to bypass the HTTP proxy setting, while all other extension requests correctly route through it. Since the server restricts all direct outbound traffic, the usage endpoint request silently fails/hangs.

Expected behavior

Usage data should load through the same HTTP proxy used by the rest of the extension.

What Should Happen?

Image Image

Error Messages/Logs

Steps to Reproduce

  1. Set up a restricted remote server that requires all outbound traffic to go through an HTTP proxy
  2. Connect to the remote server via VS Code Remote SSH
  3. Configure Claude Code CLI with the HTTP proxy (e.g. 127.0.0.1:50808)
  4. Open the Claude Code extension panel in VS Code
  5. Run the command "Claude Code: Show Account & Usage"
  6. Observe that account info (auth method, email, plan) loads correctly, but the Usage section is permanently stuck on "Loading usage data..."
  7. For comparison, run claude in the remote terminal — usage data (Session % and Weekly %) displays correctly

Claude Model

None

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

2.1.63 of vsc extension, 2.1.63 of claude

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

VS Code integrated terminal

Additional Information

No response

Activity

  1. added
    bug
    on Feb 28, 2026
  2. added
    platform:vscode
    platform:linux
    on Feb 28, 2026
  3. github-actions commented on Feb 28, 2026

    @github-actions

    Found 3 possible duplicate issues:

    1. VS Code extension ignores proxy settings from ~/.claude/settings.json and environment variables #15684
    2. [BUG] settings.json Proxy Configuration Doesn't Work for Claude (But CLI Does) #22004
    3. [BUG] Claude Code just hangs and shows "Loading usage data ..." #26635

    This issue will be automatically closed as a duplicate in 3 days.

    • If your issue is a duplicate, please close it and 👍 the existing issue instead
    • To prevent auto-closure, add a comment or 👎 this comment

    🤖 Generated with Claude Code

  4. chgwan commented on Mar 1, 2026

    @chgwan
    Author

    I accidentally closed it, the issue is still exists

  5. github-actions commented on Mar 9, 2026

    @github-actions

    This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.

  6. locked as resolved and limited conversation to collaborators on Mar 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:networkingbugplatform:linuxplatform:vscode

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions