{"version":"2.1.323","anchor":"anthropic-profile-and-anthropic-config-dir-validated-and-car","canonical_anchor":"anthropic-profile-and-anthropic-config-dir-validated-and-car","heading":"Background jobs check and keep ANTHROPIC_PROFILE and ANTHROPIC_CONFIG_DIR","tier":"notice","area":"Sessions","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.323\/e\/anthropic-profile-and-anthropic-config-dir-validated-and-car","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.323","markdown":"### Background jobs check and keep `ANTHROPIC_PROFILE` and `ANTHROPIC_CONFIG_DIR`\n\nSaved background jobs now check `ANTHROPIC_PROFILE` and sign-in records, and keep `ANTHROPIC_CONFIG_DIR` as a tidied path\n\n**Unclear.** Under what condition Claude Code now stops reading saved sign-in tokens is not stated.\n\n**What**\n\nA background job saves the environment it runs with, its environment variables, to a state file. Before, only `CLAUDE_CODE_ATTRIBUTION_PROJECT` and path variables were checked there. Now Claude Code also:\n\n- Checks that `ANTHROPIC_PROFILE` is a valid profile name, the Anthropic profile to sign in with.\n\n- Checks that a saved sign-in record is valid.\n\n- Keeps `ANTHROPIC_CONFIG_DIR`, tidied into a standard path form.\n\nThe code that reads saved sign-in tokens also now returns nothing under a new condition.\n\n**Why**\n\nSigning in with an Anthropic profile now extends to background jobs.\n\n- Area: Sessions\n- Names: `ANTHROPIC_PROFILE`, `ANTHROPIC_CONFIG_DIR`, `CLAUDE_CODE_ATTRIBUTION_PROJECT`\n- Tier: You'll notice\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}