[BUG] VS Code OAuth auto-redirects before user can click Authorize

Status Fixed / completed
Reported on v2.1.5
Maintainer reply None cached
Activity 4 comments · opened Jan 11, 2026 · closed Jan 11, 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?

I am trying to connect VS Code to my existing Claude account (I have a max account), and the OAuth auto-redirects before I can click Authorize. I can't seem to get to the code to authorize VS Code. This happens in both Chrome and Safari, and incognito mode.

What Should Happen?

Claude Oath screen shouldn't redirect before I can click authorize.

Error Messages/Logs

Steps to Reproduce

  1. Install Claude Code extension in VS Code.
  2. Click the link to login / authorize an existing account
  3. Oath screen appears momentarily, then redirects to "Hey there, I'm Claude" screen and asks the user to onboard, even though they're already logged in and onboarded. You can never see the Oath screen long enough to hit "authorize".

Claude Model

None

Is this a regression?

I don't know

Last Working Version

This is my first time installing, so I don't know if it was working before.

Claude Code Version

2.1.5

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

VS Code integrated terminal

Additional Information

I would expect the oath screen to linger long enough for me to click authorize, then I would get a code (or it would redirect me back to VS Code saying claude code is authorized.
I'm running latest MacOS, latest VSCode, latest chrome and safari browser.
I uninstalled and reinstalled Claude Code extension in VS Code.
I tried in Chrome, and Chrome incognito.
I tried in Safari, and safari private window.

View original on GitHub ↗

4 Comments

github-actions[bot] · 9 months ago

Found 2 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/5312
  2. https://github.com/anthropics/claude-code/issues/4258

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

ncurls42 · 9 months ago

It's not unresponsive, so the 2nd duplicate issue 4258 is not the case.
Bug issue #5312 seems to be similar, but it was also closed as a duplicate, and was not resolved, or at least did not give instructions on how to resolve.

I cannot complete the authentication process, the screen showing Authenticate doesn't show long enough to click authenticate, therefore cannot finish the process.

I should add, there was a new claude code release 1 hour ago - so I think this might be the issue.

ncurls42 · 9 months ago

This morning, oath worked fine. Nothing changed on my end. Not sure if you all pushed an update, but it's working fine now - I can oath in.

github-actions[bot] · 8 months ago

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.