{"version":"2.1.334","anchor":"ccr-auth-refresh-checks-a-delivery-digest","canonical_anchor":"new-host-env-var-claude-code-keep-launch-sign-in","heading":"Sessions can keep their launch sign-in, and remote sessions check delivered tokens","tier":"use","area":"Sessions","scope":"both","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334\/e\/ccr-auth-refresh-checks-a-delivery-digest","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334","markdown":"### Sessions can keep their launch sign-in, and remote sessions check delivered tokens\n\nA new CLAUDE_CODE_KEEP_LAUNCH_SIGN_IN variable keeps the launch sign-in, and remote sessions keep current credentials if delivered tokens look wrong\n\n**What**\n\nSigning in gives Claude Code credentials (tokens that prove who you are). This release adds ways to keep the credentials a session started with:\n\n- `CLAUDE_CODE_KEEP_LAUNCH_SIGN_IN` is a new environment variable (a setting passed to a program when it starts). When set, it is passed on as `\"1\"` to programs Claude Code starts, and it is listed with other host variables such as `CLAUDE_CODE_HOST_KEEPS_ROUTE` and `CLAUDE_CODE_HOST_KEPT_ENV`.\n\n- `CLAUDE_CODE_HOST_KEEPS_ROUTE` and `CLAUDE_CODE_HOST_KEPT_ENV` are now also removed from the environment along with other host-only variables.\n\n- A new check requires `CLAUDE_CODE_KEEP_LAUNCH_SIGN_IN` to be true, an environment check and the switch `tengu_drifting_sunbeam`. It also protects `CLAUDE_CODE_OAUTH_SCOPES`.\n\n- In remote sessions, when the token files are refreshed, Claude Code now compares a fingerprint of them with the one the server says it wrote. If they differ and `tengu_drifting_sunbeam` is on, it keeps the current credentials and gives the reason `delivery_mismatch`. Before, delivered tokens were always adopted. The fingerprint is also added to usage reporting.\n\n- `http.fetch` requests made by a hook now leave out credential headers the hook supplies itself, logging \"http.fetch: a hook's own credential header was left out\".\n\nThe server returned off for `tengu_drifting_sunbeam` for this site's account and on without an account, but no reading has been taken under this release.\n\n**Why**\n\nThis mainly affects programs that launch Claude Code and remote cloud sessions. It stops a session from switching to corrupted or unexpected tokens, and stops a hook from sending its own credentials through `http.fetch`.\n\n- Flag `tengu_drifting_sunbeam`: Not enough to say (read for one account on one subscription tier against v2.1.334; this account: off, anonymous baseline: on, compiled default: not a boolean we can read) These values were read against a different version of Claude Code, so treat them as the nearest reading available instead of one taken on this release.\n- Area: Sessions\n- Names: `tengu_drifting_sunbeam`\n- Tier: Use it now\n- Useful: 5\/5\n- Signal: 4\/5\n- Scope: both\n- Heads-up: no"}