{"version":"2.1.330","anchor":"retention-cleanup-skipped-when-anthropic-profile-yields-no-c","canonical_anchor":"retention-cleanup-skipped-when-anthropic-profile-yields-no-c","heading":"An unusable ANTHROPIC_PROFILE now gets specific errors, a status line notice, and pauses transcript cleanup","tier":"notice","area":"Sessions","scope":"both","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.330\/e\/retention-cleanup-skipped-when-anthropic-profile-yields-no-c","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.330","markdown":"### An unusable ANTHROPIC_PROFILE now gets specific errors, a status line notice, and pauses transcript cleanup\n\nWhen ANTHROPIC_PROFILE names a profile that can't be used, Claude Code explains why, shows it in the status line and skips transcript cleanup\n\n**What**\n\n`ANTHROPIC_PROFILE` is an environment variable naming the Anthropic sign-in profile Claude Code should use. When the named profile cannot be used, Claude Code now handles it more clearly.\n\n- Errors: new messages explain why the profile is unusable (the name is invalid, there is no config folder, the profile is not found, its config is unusable, or it is signed out) and how to fix it. The session refuses to send your prompts until it is fixed. Cloud sessions and organization checks use the same messages.\n\n- Status line: when you are not logged in and the profile is unusable, it shows \"ANTHROPIC_PROFILE unusable\" with a dimmed \" \u00b7 \/status\" hint, instead of \"Not logged in \u00b7 run \/login\".\n\n- Transcript cleanup: if the profile gives no credential, Claude Code skips deleting old transcripts. In that case it cannot read the managed settings stored by `\/login`, and those may set a longer `cleanupPeriodDays`. Fixing or unsetting the variable lets a later session run the cleanup.\n\n**Why**\n\nA mistake in your profile setup now points you to the real problem and to `\/status`, instead of a misleading prompt to log in. Your transcripts are not deleted early under a retention period that might be wrong.\n\n- Area: Sessions\n- Names: `ANTHROPIC_PROFILE`, `cleanupPeriodDays`\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: both\n- Heads-up: yes"}