{"version":"2.1.285","anchor":"claude-code-session-origin-claude-ai-chat-check","canonical_anchor":"claude-code-session-origin-claude-ai-chat-check","heading":"A check for sessions started from claude.ai chat was revised","tier":"internal","area":"Sessions","url":"https:\/\/changelogs.core-directive.com\/v\/2.1.285\/e\/claude-code-session-origin-claude-ai-chat-check","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.285","markdown":"### A check for sessions started from claude.ai chat was revised\n\nClaude Code checks for sessions whose `CLAUDE_CODE_SESSION_ORIGIN` is `claude_ai_chat` together with a second condition\n\n**Unclear.** It is unclear what this check controls and what exactly changed in it.\n\n**What**\n\nA session is one running conversation with Claude Code. The `CLAUDE_CODE_SESSION_ORIGIN` environment variable records where a session was started. Claude Code has a check that is true when this variable is `claude_ai_chat` and a second condition also holds. That check was revised in this release.\n\n**Why**\n\nSessions started from claude.ai chat may get different treatment when both conditions are met.\n\n- Area: Sessions\n- Names: `CLAUDE_CODE_SESSION_ORIGIN`\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 2\/5"}