Follow Discord
Sweep 04 Dec 2026 · 17:52Z Build v2.1.337 554 read Stable v2.1.332 Latest v2.1.337 Next v2.1.337 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.337 ·

Clearer warning when CLAUDE_CODE_OAUTH_TOKEN is set and you ask for a background session

With CLAUDE_CODE_OAUTH_TOKEN set, asking for a background session now explains the token won't carry over and what to do

You'll notice Improvements
JSON All of v2.1.337
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.

Read from
Names in the bundleCLAUDE_CODE_OAUTH_TOKEN
How sure we are
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…

See this entry in the whole of v2.1.337 →

Feedback