[BUG] /login flow gets triggered when message starts with /login

Resolved 💬 3 comments Opened Mar 18, 2026 by Phil9l Closed Apr 16, 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 wrote /login handler works well, replicate it in other flows and Claude Code required me to select how I want to authorized. After 4 attempts I thought I got banned. After 6 I realized that prefixing my request with the fixes the issue, The /login handler ... doesn't trigger this.

What Should Happen?

Don't trigger login flow for messages starting with /login.

Error Messages/Logs

Steps to Reproduce

  1. Type /login lorem ipsum

Claude Model

None

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.76

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

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