{
  "slug": "sentry-cli-build-snapshots-adds-selective-036a8fc393f4",
  "title": "sentry-cli build snapshots adds --selective",
  "tools": [
    "sentry-cli"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-04-20T12:14:59.000Z",
  "announced_at": "2026-04-20T12:14:59.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When the snapshot directory contains only a subset of images, run `sentry-cli build snapshots` with `--selective` to mark the upload as selective. On PRs, removals and renames cannot be detected for selective uploads.",
    "examples": [
      "sentry-cli build snapshots <IMAGE_DIRECTORY> --app-id <APP_ID> --project <PROJECT_SLUG> --selective"
    ],
    "gotchas": [
      "Version: 3.4.0",
      "<IMAGE_DIRECTORY> (required): Path to the folder containing images to upload.",
      "--app-id <APP_ID> (required): Application identifier.",
      "--project <PROJECT_SLUG> (required): Project selection; the command accepts the shared project argument.",
      "--selective: Marks the upload as containing only a subset of images; removals and renames cannot be detected on PRs.",
      "Prerequisite: Use sentry-cli 3.4.0 or later.",
      "Prerequisite: The command requires an authenticated Sentry CLI session to upload snapshots.",
      "Use this flag when the upload contains only a subset of images."
    ]
  },
  "why_it_matters": "When building a snapshot upload that contains only a subset of images, mark it as selective.",
  "sources": [
    "https://github.com/getsentry/sentry-cli/releases/tag/3.4.0",
    "https://github.com/getsentry/sentry-cli/blob/3.4.0/src/commands/build/snapshots.rs",
    "https://github.com/EmergeTools/SnapshotPreviews/blob/main/README.md"
  ],
  "rank": 0.92017,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v1+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "ghtools-20261008",
    "verdict_id": "ghtools-20261008:ghtools-20261008-07f474f572ba9525-0:gate",
    "evidence_hash": "b6ef1d403b9df98371744571d336a0d69a868c7bb3835b696c207af68f3ec4cf"
  },
  "review": {
    "draft_hash": "4fa02bad317fd77294d64477501293c09446589b6d78826a40b3c9b3f66ea3fc",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "ghtools-20261008:gate",
    "reason": "2 of 3 judge runs approved with p_yes >= 0.9 (mean 0.92 >= 0.9; 2 needed) and Jev gave 0.72 (>= 0.6 needed)."
  }
}
