{"version":"2.1.323","anchor":"background-sessions-now-pin-and-verify-sign-in-profile-anth","canonical_anchor":"background-sessions-now-pin-and-verify-sign-in-profile-anth","heading":"Background sessions now keep their sign-in profile","tier":"notice","area":"Sessions","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.323\/e\/background-sessions-now-pin-and-verify-sign-in-profile-anth","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.323","markdown":"### Background sessions now keep their sign-in profile\n\nBackground sessions started with --bg now save and check which sign-in and ANTHROPIC_PROFILE they use, and stop with a clear failure when they cannot\n\n**What**\n\nA background session is one started with `--bg`, which runs on its own while you do other things. A small helper program called a daemon starts and restarts these sessions. Background sessions now remember which account they were signed in with:\n\n- Saved sign-in: starting or restarting a background session now records a sign-in pin, a note of which sign-in to use, and `ANTHROPIC_PROFILE` in the session's environment. Before, the settings were copied from the current environment only.\n\n- Outdated daemon: a daemon that does not keep the profile is detected and treated as outdated or unreachable.\n\n- Older sessions: a session saved without its sign-in refuses to restart with error code `sign_in_unknown`. The message says the session was saved by an older version, and that to continue it you should run `claude --resume` as you started it: same launcher, or same `ANTHROPIC_PROFILE`.\n\n- New failure reasons: starting a background session can now fail with `daemon_outdated` or `credential_unavailable`. These take the same path as `gate_blocked` and `cwd_gone`. Before, only those two did.\n\n- Settings files: if a `--settings` file overrides the credential or profile, the session falls back to pin `none`.\n\n**Why**\n\nIf you use more than one Anthropic profile, background sessions keep using the account they started with. When that cannot be guaranteed, you get a specific refusal instead of the session quietly running under another account.\n\n- Area: Sessions\n- Names: `ANTHROPIC_PROFILE`\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}