[BUG]

Resolved 💬 4 comments Opened Feb 5, 2026 by becerra-alberto Closed Mar 6, 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?

Claude Code CLI Login redirect failure and TypeError on /insights

Hi Anthropic Support,

I'm unable to use Claude Code due to two issues: the /login browser OAuth flow doesn't redirect back to the terminal after authorization, and the /insights command throws a TypeError.

Environment:

  • macOS
  • Standalone install (binary at ~/.local/bin/claude)
  • Claude Pro subscriber

Issue 1 — Login redirect failure:
When I run /login, it opens the browser and I can authorize successfully, but it never redirects back to the terminal. The fallback flow shows a URL with a "c to copy" option, but the terminal doesn't allow me to select or copy the text.

Issue 2 — /insights TypeError:
Running /insights returns:
TypeError: undefined is not an object (evaluating 'Object.keys(b)')

What I've tried:

  • Ran npm uninstall -g @anthropic-ai/claude-code (but discovered it was installed via the standalone installer, not npm)
  • Identified the binary location at ~/.local/bin/claude via which claude
  • Have not yet completed a clean reinstall of the standalone version

Appreciate any guidance on resolving the login flow or a workaround to authenticate via the terminal.

Thanks,
Alberto

What Should Happen?

I should be able to log in but the login flow when I click authorrize doesn't work and then when I try to manually paste the code into claude code cli, it doesn't let me paste.

Error Messages/Logs

Steps to Reproduce

I don't know, the authorization is broken, i dont know how to reproduce.

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.32 (Claude Code)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

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