Follow Discord
Sweep 22 Oct 2026 · 21:04Z Build v2.1.309 528 read Stable v2.1.308 Latest v2.1.309 Next v2.1.309 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.302 ·

Clearer gateway error for background sessions opened from another folder

Background sessions missing a shell-set gateway now say "No LLM gateway" instead of asking you to log in, and the marker no longer leaks

Group of 2 You'll notice No documentation found Internal Changes
JSON All of v2.1.302
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
SessionsArea: what it touches
Internal ChangesKind: in v2.1.302,
ImprovementsSection of the release

What

A background session is a Claude Code session that keeps running without your terminal attached. An LLM gateway is a proxy your requests to the model go through, usually set with ANTHROPIC_BASE_URL. A gateway set only in your shell is not passed to a background session opened from another folder. Claude Code now marks that case with CLAUDE_BG_GATEWAY_WITHHELD. An environment variable is a named value set in your shell before you start a program.

  • When CLAUDE_BG_GATEWAY_WITHHELD is set and ANTHROPIC_BASE_URL is not, sign-in errors show a gateway message: "No LLM gateway: a gateway set in your shell isn't passed to a session opened from another folder."
  • That message tells you to run claude respawn <id> from the original folder, or to set ANTHROPIC_BASE_URL in an env block in your settings.
  • The status line shows "No LLM gateway: opened from another folder" in place of "Not logged in · Run /login".
  • CLAUDE_BG_GATEWAY_WITHHELD is now deleted in the same cleanup that removes the other CLAUDE_BG_* variables, which it was not before.

Before, the same situation produced a generic sign-in failure or "Not logged in · Run /login".

Why

If you reach the model through a gateway, the old login prompt pointed you at the wrong fix. The new message names the missing gateway and the two ways to supply it. Clearing the variable stops the marker from being passed on to sessions that Claude Code starts later.

Read from
Names in the bundleCLAUDE_BG_GATEWAY_WITHHELD
How sure we are
One source agreesOne thing we can check says the same as this entry.
The name it cites is new in this buildNew in this build: CLAUDE_BG_GATEWAY_WITHHELD

See this entry in the whole of v2.1.302 →

Feedback