Unclear What CLAUDE_CODE_KEEP_LAUNCH_SIGN_IN actually does when set is not known.
What
Signing in gives Claude Code credentials (tokens that prove who you are). This release adds ways to keep the credentials a session started with:
CLAUDE_CODE_KEEP_LAUNCH_SIGN_INis 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 asCLAUDE_CODE_HOST_KEEPS_ROUTEandCLAUDE_CODE_HOST_KEPT_ENV.CLAUDE_CODE_HOST_KEEPS_ROUTEandCLAUDE_CODE_HOST_KEPT_ENVare now also removed from the environment along with other host-only variables.- A new check requires
CLAUDE_CODE_KEEP_LAUNCH_SIGN_INto be true, an environment check and the switchtengu_drifting_sunbeam. It also protectsCLAUDE_CODE_OAUTH_SCOPES. - 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_sunbeamis on, it keeps the current credentials and gives the reasondelivery_mismatch. Before, delivered tokens were always adopted. The fingerprint is also added to usage reporting. http.fetchrequests 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".
The 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.
Why
This 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.
tengu_drifting_sunbeam Not enough to sayNothing here resolved what this flag was doing on this version, so nothing here should be read as on or off.
This account: off · anonymous baseline: on · compiled default in v2.1.334: 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.
Read once, for one account on one subscription tier, against v2.1.334. It isn't a statement about your account. What a flag value here can and cannot tell you
What `CLAUDE_CODE_KEEP_LAUNCH_SIGN_IN` actually does when set is not known.
New in this build: CLAUDE_CODE_KEEP_LAUNCH_SIGN_IN