What
Some sign-in flows ask you to paste a code back into Claude Code. That code used to be checked only for a code#state split, and a bad one showed "Invalid code. Please make sure the full code was copied." Pasted codes now go through a parser that names the specific problem:
- A local address, a web link, a short verification code or an incomplete code each get their own message.
- The check that the code belongs to this sign-in is kept: "That code is not from this sign-in. Paste the code shown after opening the address above."
- On the
install-github-appsign-in screen, the problem is shown inline, below the field. Esc clears the field or goes back. The field hides what you paste with*, and the headers and success text were reworded, for example "Paste code here if prompted".
Why
If you paste the wrong thing, you are told what is wrong and can fix it on the same screen, without starting over.