{
  "slug": "shopify-theme-dev-adds-json-reconciliation-strategy-f6f0b25b32b5",
  "title": "shopify theme dev adds JSON reconciliation strategy",
  "tools": [
    "shopify"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-07-31T10:50:00.000Z",
  "announced_at": "2026-07-31T10:50:00.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When `shopify theme dev` is run with `--theme-editor-sync` and JSON files conflict, set `--reconciliation-strategy` to `keep-local`, `keep-remote`, or `abort`.",
    "examples": [
      "shopify theme dev --theme-editor-sync --reconciliation-strategy keep-local",
      "shopify theme dev --theme-editor-sync --reconciliation-strategy keep-remote",
      "shopify theme dev --theme-editor-sync --reconciliation-strategy abort"
    ],
    "gotchas": [
      "Version: 4.6.0",
      "--theme-editor-sync: Synchronizes Theme Editor updates in local theme files; reconciliation strategy applies when this flag is enabled.",
      "--reconciliation-strategy: Chooses how to resolve JSON conflicts when `--theme-editor-sync` is enabled. Allowed values: `keep-local`, `keep-remote`, `abort`. The docs do not state these values are mutually exclusive.",
      "SHOPIFY_FLAG_RECONCILIATION_STRATEGY: Environment variable for `--reconciliation-strategy`.",
      "Prerequisite: Run the command from a directory matching the default Shopify theme folder structure.",
      "The strategy applies when `--theme-editor-sync` is enabled."
    ]
  },
  "why_it_matters": "Run theme editor sync when local and remote JSON theme files conflict in automation.",
  "before": "With `--theme-editor-sync`, conflicts could prompt for a reconciliation strategy; the release note says this change makes the strategy configurable to resolve that prompt in automation.",
  "sources": [
    "https://github.com/Shopify/cli/releases/tag/4.6.0",
    "https://github.com/Shopify/cli/pull/7634",
    "https://shopify.dev/docs/api/shopify-cli/theme/theme-dev"
  ],
  "rank": 0.96033,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave2a-20261017",
    "verdict_id": "wave2a-20261017:wave2a-20261017-3fbe85e62061d099-5:gate",
    "evidence_hash": "c18f66bfdf0ef73e2b9944b21032f4440dc24250840bfdb8abfd9c6c04584085"
  },
  "review": {
    "draft_hash": "82db99a11d9f14e75036bc0a7de4197efe97207012c9602ec13683249a5af751",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave2a-20261017:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.96 >= 0.9; 2 needed) and Jev gave 0.76 (>= 0.6 needed)."
  }
}
