Skip to content

[BUG] Usage limit discrepancy between VS Code extension and CLI on same Max account #9156

Description

@f2cmb

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?

I'm experiencing inconsistent usage limit behavior between Claude Code CLI (terminal) and the VS Code extension, despite using the same Max plan account.
Current situation:

VS Code extension shows: Claude AI usage limit reached|1760104800 (reset date: October 10, 2025)
CLI terminal (claude command) works perfectly with no usage limit issues
Both are authenticated with the same Max plan account

The extension blocks all usage while the CLI continues to function normally, which shouldn't happen since limits should be shared across all Claude products according to the documentation.

What Should Happen?

Usage limits should be consistent across all Claude Code interfaces (CLI and VS Code extension) when using the same account. If I hit the usage limit, both the terminal CLI and VS Code extension should display the same limit status. Currently, the CLI works fine while the extension is completely blocked.

Error Messages/Logs

VS Code Extension shows:
Claude AI usage limit reached|1760104800
No error in terminal CLI - it works normally without any limit warnings.

Steps to Reproduce

  • Install Claude Code CLI (latest version) and authenticate with Max plan account
  • Install Claude Code VS Code extension (version 2.0.10) from the marketplace
  • Authenticate VS Code extension with the same Max plan account
  • Use the VS Code extension until you see the usage limit message
  • Open a terminal and run claude command
  • Observe that CLI works normally while extension remains blocked

Note: I've verified both are using the same account email. I don't have any ANTHROPIC_API_KEY environment variable set.

Claude Model

Sonnet (default)

Is this a regression?

I don't know

Last Working Version

N/A - just started experiencing this issue with version 2.0.10

Claude Code Version

2.0.10

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

VS Code integrated terminal

Additional Information

  • Max Plan subscription: Active and confirmed

  • Timestamp analysis: 1760104800 converts to October 10, 2025 (2 days from now), which seems like an unusually long reset period for Max plans (should be 5 hours)

  • Workaround: Currently using CLI terminal exclusively as it works fine

  • Attempted fixes:

  • Tried rolling back to extension version 2.0.9 - same issue

  • Cleared VS Code extension cache and re-authenticated - no change

  • Confirmed no ANTHROPIC_API_KEY in environment variables

This appears to be a bug where the VS Code extension and CLI are tracking usage limits separately or the extension is incorrectly reporting limits. The discrepancy is particularly problematic since the VS Code extension UI is more convenient for development work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:autharea:ideautocloseIssue will be closed automaticallybugSomething isn't workinghas reproHas detailed reproduction stepsplatform:linuxIssue specifically occurs on Linux

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions