{"version":"2.1.327","anchor":"new-desktop-env-var-claude-code-desktop-result-first","canonical_anchor":"new-desktop-env-var-claude-code-desktop-result-first","heading":"Desktop app gains another environment variable, plus an MCP one for spare sessions","tier":"use","area":"Desktop App","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.327\/e\/new-desktop-env-var-claude-code-desktop-result-first","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.327","markdown":"### Desktop app gains another environment variable, plus an MCP one for spare sessions\n\nClaude Code now also recognises CLAUDE_CODE_DESKTOP_RESULT_FIRST and CLAUDE_CODE_SPARE_DEFER_ALL_MCP among its environment variables\n\n**Unclear.** What `CLAUDE_CODE_DESKTOP_RESULT_FIRST` or `CLAUDE_CODE_SPARE_DEFER_ALL_MCP` actually changes is not stated.\n\n**What**\n\nEnvironment variables are named values set outside a program that it can read. The set of desktop app variables Claude Code reads and then removes from its own environment now also includes `CLAUDE_CODE_DESKTOP_RESULT_FIRST`, handled in the same place as `CLAUDE_CODE_DESKTOP_MESSAGE_CARD` and the others.\n\n`CLAUDE_CODE_SPARE_DEFER_ALL_MCP` also joins a list of environment variables next to `CLAUDE_CODE_MCP_STARTUP_WAIT_MS`. MCP servers are add-ons that give Claude Code extra tools. Separately, the step where a spare background session is claimed no longer depends on an environment variable and now runs whenever no session ID is given.\n\n**Why**\n\nThese variables are meant to be set by the desktop app rather than by hand, and they point to upcoming changes in how the desktop app runs Claude Code.\n\n- Area: Desktop App\n- Names: `CLAUDE_CODE_DESKTOP_RESULT_FIRST`\n- Tier: Use it now\n- Useful: 3\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no"}