Claude Code v2.1.331 · 23 Nov 2026
Background sessions explain how to fix an ANTHROPIC_PROFILE conflict
The message about an ANTHROPIC_PROFILE conflict in a background session now says to run claude stop and then claude --resume
You'll notice Tier: how much it should matter to you
1 Useful: my rating, 1 to 5
1 Signal: worth watching, 1 to 5
Sessions Area: what it touches
Improvements Kind: in v2.1.331, 23 Nov 26
Improvements Section of the release
What
A background session is a Claude Code session that keeps running without a terminal attached. ANTHROPIC_PROFILE is the environment variable that picks which Anthropic profile to sign in with. The message shown when that variable conflicts with a background session has been reworded. It now refers to unsetting ANTHROPIC_PROFILE and tells you to run claude stop and then claude --resume .
Why
The message now gives a concrete way to recover instead of leaving you to work out the next step.
What the documentation says
See this entry in the whole of v2.1.331 →
23 Nov 2026 · 609 entries, this one is #336.
Use it now41 You'll notice328 Nothing to try yet66 Under the hood174
Open the release →
Names in this entry
env ANTHROPIC_PROFILE Name of the Anthropic profile to authenticate with, such as one created by ant auth login or by signing in to a Console account without an API key . See authentication precedence
cli --resume Resume a specific session by ID or name, or show an interactive picker to choose a session. In place of an ID, you can pass the absolute path to a session's .jsonl transcript file . The picker and name search include sessions that added this directory with /add-dir. When you pass a session ID, Claude Code searches the current project directory and its git worktrees, then every other project on this machine. Before v2.1.223, the ID search covered only the current project directory and its git worktrees. Background sessions appear in the picker marked with bg. Resuming one that is still running opens that session in this terminal through claude attach, and a prompt you pass on the command line goes to it as its next turn. Before v2.1.285, Claude Code refused and printed the claude attach command to run instead
Is this right?
0
0
Feedback
What's wrong with this entry?
Hard to understand Too vague Looks wrong Not relevant to me Too long Missing the detail I wanted Duplicate of another card
Clear Learned something new I can act on this Good catch
Related
Other releases about the same thing. Found by shared names or similar wording; neither means one caused the other.
← Previous · 335 of 609
Loading a saved conversation skips more work when looking for summary points
You'll notice Compaction
In v2.1.331 Improvements release-page order
Next → · 337 of 609
/btw side-question titles are now marked as automatic
You'll notice Slash Commands