{"version":"2.1.302","anchor":"new-no-llm-gateway-error-for-background-sessions-opened-fr","canonical_anchor":"new-no-llm-gateway-error-for-background-sessions-opened-fr","heading":"Clearer gateway error for background sessions opened from another folder","tier":"notice","area":"Sessions","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.302\/e\/new-no-llm-gateway-error-for-background-sessions-opened-fr","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.302","markdown":"### Clearer gateway error for background sessions opened from another folder\n\nBackground sessions missing a shell-set gateway now say \"No LLM gateway\" instead of asking you to log in, and the marker no longer leaks\n\n**What**\n\nA 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.\n\n- 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.\"\n\n- 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.\n\n- The status line shows \"No LLM gateway: opened from another folder\" in place of \"Not logged in \u00b7 Run \/login\".\n\n- `CLAUDE_BG_GATEWAY_WITHHELD` is now deleted in the same cleanup that removes the other `CLAUDE_BG_*` variables, which it was not before.\n\nBefore, the same situation produced a generic sign-in failure or \"Not logged in \u00b7 Run \/login\".\n\n**Why**\n\nIf 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.\n\n- Area: Sessions\n- Names: `ANTHROPIC_BASE_URL`\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}