{"version":"2.1.323","anchor":"desktop-app-version-env-var-is-now-trimmed-and-blank-treated","canonical_anchor":"desktop-app-version-env-var-is-now-trimmed-and-blank-treated","heading":"A blank desktop app version is now ignored instead of reported","tier":"notice","area":"Desktop App","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.323\/e\/desktop-app-version-env-var-is-now-trimmed-and-blank-treated","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.323","markdown":"### A blank desktop app version is now ignored instead of reported\n\nClaude Code now trims CLAUDE_CODE_DESKTOP_APP_VERSION and treats an empty or blank value as not set\n\n**What**\n\nWhen Claude Code is started by the desktop app, it reads the app's version from the environment variable `CLAUDE_CODE_DESKTOP_APP_VERSION`. It now strips spaces from the start and end of that value, and treats an empty or spaces-only value as not set. Before, it used the value exactly as given.\n\nThis applies only when `CLAUDE_CODE_ENTRYPOINT` is `claude-desktop` or `local-agent`.\n\n**Why**\n\nA blank version string passed by a desktop wrapper is no longer reported as if it were a version.\n\n- Area: Desktop App\n- Names: `CLAUDE_CODE_DESKTOP_APP_VERSION`\n- Tier: You'll notice\n- Useful: 1\/5\n- Signal: 0\/5\n- Scope: individual\n- Heads-up: no"}