Skip to content

[BUG] Claude VSCode Extension loses Authorization Info #30185

@rangothedog

Description

@rangothedog

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?

My VS Code extension started failing with API Rate Limit errors. Examining .credentials.json my plan has been set to 'null' instead of 'pro'. Logging out of Claude Code and logging in again resets the error, but if you select the 1M token context limit it returns. Selecting the regular Opus option it fixes the problem.

What Should Happen?

Claude Code should properly handle my login and Pro usage limits when running under the 1M token Opus model.

Error Messages/Logs

Steps to Reproduce

Start a Claude Code session in VSCode.
Select Opus model with 1M token context.
Observe your get API Rate Limit errors and your .credentials.json file gets rewritten with a null plan type.
Select Opus model with regular context limit.
Observe your API rate limit errors disappear.

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

2.1.63 (Claude Code)

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

VS Code integrated terminal

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions