[BUG] Claude VSCode Extension loses Authorization Info

Resolved 💬 2 comments Opened Mar 2, 2026 by rangothedog Closed Mar 5, 2026

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?

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_

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗