claude-code - 💡(How to fix) Fix [BUG] Pro login loads 2.9M tokens in "System tools" — makes Claude Code unusable [4 pull requests]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

Error Messages/Logs

Fix Action

Fixed

RAW_BUFFERClick to expand / collapse

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?

When logged in via Claude.ai Pro OAuth (/login → "Claude.ai Subscription"), Claude Code loads approximately 2.9M tokens into "System tools" on startup, making the context 1460% full before any user input. Steps to reproduce:

Log out: rm ~/.claude/.credentials.json Start claude in any project directory → /context shows ~721 tokens (normal) Run /login → authenticate with Claude.ai Pro subscription /context immediately shows 2.9M tokens in "System tools" (1460% full)

Environment:

Claude Code version: 2.1.133 Platform: Ubuntu 24.04 LTS, linux-x64 Model: claude-sonnet-4-6 Plan: Claude Pro Interface: Terminal + VS Code extension

What Should Happen?

Expected behavior: System tools should load ~10-15k tokens (built-in tools only), regardless of login method. Actual behavior: Pro OAuth login causes 2.9M tokens to load in "System tools". No MCP connectors are connected (verified in claude.ai → Settings → Connectors).

Error Messages/Logs

Steps to Reproduce

see description

Claude Model

Sonnet (default)

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

2.1.133

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

Other

Additional Information

OAuth token scopes include user:mcp_servers — this may be triggering automatic MCP server loading Removing .credentials.json and using API key only resolves the issue No MCP connectors visible in claude.ai settings

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING