You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
SessionsArea: what it touches
ImprovementsKind: in v2.1.337,
ImprovementsSection of the release
What
CLAUDE_CODE_OAUTH_TOKEN is an environment variable that signs you in with a token. A background session is one that keeps running separately from your terminal. If you request one while this variable is set, Claude Code's message now explains that the token wouldn't reach the background session, which would use a different sign-in. It suggests either keeping working in the terminal or starting Claude Code without the variable.
Why
If you sign in with a token, you are told plainly instead of ending up in a background session signed in another way.
One source agreesOne thing we can check says the same as this entry.
Anthropic's release notes agreeChanged ← and /background to refuse a session that uses CLAUDE_CODE_OAUTH_TOKEN from your shell when your saved login belongs to another…