{"version":"2.1.337","anchor":"artifact-preview-gate-and-env-var-removed-from-this-function","canonical_anchor":"artifact-preview-gate-and-env-var-removed-from-this-function","heading":"Artifact preview environment variables CLAUDE_CODE_ARTIFACT_PREVIEW and CLAUDE_CODE_ARTIFACT_PREVIEW_EMULATOR are gone","tier":"notice","area":"Artifacts","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337\/e\/artifact-preview-gate-and-env-var-removed-from-this-function","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337","markdown":"### Artifact preview environment variables CLAUDE_CODE_ARTIFACT_PREVIEW and CLAUDE_CODE_ARTIFACT_PREVIEW_EMULATOR are gone\n\nBoth artifact preview overrides, CLAUDE_CODE_ARTIFACT_PREVIEW and CLAUDE_CODE_ARTIFACT_PREVIEW_EMULATOR, no longer appear in Claude Code\n\n**Unclear.** Whether artifact previews are still controlled some other way in this build is not shown.\n\n**What**\n\nArtifacts are files Claude creates that can be shown as a preview. Two environment variables that let you control artifact previews no longer appear in this build:\n\n- `CLAUDE_CODE_ARTIFACT_PREVIEW` turned previews on or off, falling back to the server switch `tengu_cobalt_plinth_aspen`. It appeared 6 times in the previous build and 0 times now. The code that checked it now builds a list of programs that must be installed: `gh` when `CLAUDE_CODE_REMOTE` is set, plus `bwrap` and `socat` on macOS.\n\n- `CLAUDE_CODE_ARTIFACT_PREVIEW_EMULATOR` pinned the emulator preview engine on or off. It appeared 3 times before and 0 times now. Its code now builds a settings object (language, `outputStyle`, attribution, `modelSettings`) from personal cloud configuration.\n\nWhere preview and emulator control moved, if anywhere, could not be seen. So it is unknown whether previews or the emulator are now always on, always off, or decided elsewhere.\n\n**Why**\n\nIf you set either variable to force artifact previews or the emulator on or off, it will stop having any effect.\n\n- Flag `tengu_cobalt_plinth_aspen`: Not enough to say (read for one account on one subscription tier against v2.1.337; this account: no value returned, anonymous baseline: no value returned, compiled default: 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.\n- Area: Artifacts\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: yes"}