Please confirm that you have:
In which of these areas are you experiencing a problem?
Theme
Expected behavior
When running shopify theme dev --theme-editor-sync it should nicely sync everything between the local files and the theme editor.
Actual behavior
Although it's actually working, I'm getting the following modal every time I make changes to the theme and click on save.

There is not difference between my local index.json and the one on Shopify (ghost theme).
Local
/*
* ------------------------------------------------------------
* IMPORTANT: The contents of this file are auto-generated.
*
* This file may be updated by the Shopify admin theme editor
* or related systems. Please exercise caution as any changes
* made to this file may be overwritten.
* ------------------------------------------------------------
*/
{
"sections": {
"usp_demo": {
"type": "usps",
"blocks": {
"usp_Ub6eJY": {
"type": "usp",
"settings": {
"icon": "",
"icon_size": "w-8",
"heading": "Heading",
"content": "<p>Content</p>",
"button_label": "Label",
"button_url": "shopify://collections",
"button_type": ""
}
}
},
"block_order": [
"usp_Ub6eJY"
],
"settings": {
"color_scheme": "",
"container_width": "",
"container_spacing": "my-[--container-spacing]"
}
}
},
"order": [
"usp_demo"
]
}
Shopify
/*
* ------------------------------------------------------------
* IMPORTANT: The contents of this file are auto-generated.
*
* This file may be updated by the Shopify admin theme editor
* or related systems. Please exercise caution as any changes
* made to this file may be overwritten.
* ------------------------------------------------------------
*/
{
"sections": {
"usp_demo": {
"type": "usps",
"blocks": {
"usp_Ub6eJY": {
"type": "usp",
"settings": {
"icon": "",
"icon_size": "w-8",
"heading": "Heading",
"content": "<p>Content</p>",
"button_label": "Label",
"button_url": "#",
"button_type": ""
}
}
},
"block_order": [
"usp_Ub6eJY"
],
"settings": {
"color_scheme": "",
"container_width": "",
"container_spacing": "my-[--container-spacing]"
}
}
},
"order": [
"usp_demo"
]
}
Verbose output
2024-10-17T08:05:35.715Z: Listening for changes in the theme editor
2024-10-17T08:05:38.991Z: Request to https://.myshopify.com/admin/api/unstable/themes/<theme_id>/assets.json?fields=key%2Cchecksum completed in 273 ms
With response headers:
- content-type: application/json; charset=utf-8
- server-timing: processing;dur=88, cfRequestDuration;dur=247.000217
- x-request-id: a3d20dec-7cd5-4900-8fdd-52db6d420679-1729152338
2024-10-17T08:05:38.994Z: Reading the content of file at dist/templates/index.json...
2024-10-17T08:05:39.517Z: Request to https://.myshopify.com/admin/api/unstable/themes/<theme_id>/assets.json?asset%5Bkey%5D=templates%2Findex.json completed in 520 ms
With response headers:
- content-type: application/json; charset=utf-8
- server-timing: processing;dur=158, cfRequestDuration;dur=312.000036
- x-request-id: 7efd7fac-8aa1-4dcb-83db-a6e83a24e5e3-1729152339
2024-10-17T08:05:39.519Z: Writing some content to file at dist/templates/index.json...
• 10:05:39 Synced » download templates/index.json from remote theme
2024-10-17T08:05:39.521Z: Listening for changes in the theme editor
2024-10-17T08:05:39.607Z: Reading the content of file at dist/templates/index.json...
GET /
2024-10-17T08:05:39.623Z: → Rendering https://.myshopify.com/?_fd=0&pb=0 (with templates/index.json)...
2024-10-17T08:05:39.901Z: Request to https://.myshopify.com/?_fd=0&pb=0 completed in 277 ms
With response headers:
- cache-control: no-cache, no-store
- content-type: text/html; charset=utf-8
- server-timing: processing;dur=76, db;dur=21, db_async;dur=5.274, edge_cart;dur=1.49;desc="trips=1", parse;dur=1, render;dur=12, asn;desc="201290", edge;desc="AMS", country;desc="NL", theme;desc="<theme_id>", pageType;desc="index", servedBy;desc="js7r", requestID;desc="278268c5-dc09-40ef-abc1-8354472051ac-1729152339", cfRequestDuration;dur=222.000122
- x-request-id: 278268c5-dc09-40ef-abc1-8354472051ac-1729152339
2024-10-17T08:05:39.901Z: ← 200 (request_id: 278268c5-dc09-40ef-abc1-8354472051ac-1729152339)
2024-10-17T08:05:40.124Z: Request to https://.myshopify.com/admin/api/unstable/themes/<theme_id>/assets/bulk.json completed in 516 ms
With response headers:
- content-type: application/json; charset=utf-8
- server-timing: processing;dur=336, cfRequestDuration;dur=498.999834
- x-request-id: 6cf5ac10-af3e-43a3-8e55-1153941cfaf8-1729152339
• 10:05:40 Synced » update templates/index.json
2024-10-17T08:05:42.831Z: Request to https://.myshopify.com/admin/api/unstable/themes/<theme_id>/assets.json?fields=key%2Cchecksum completed in 308 ms
With response headers:
- content-type: application/json; charset=utf-8
- server-timing: processing;dur=67, cfRequestDuration;dur=209.999800
- x-request-id: a08f90c7-76d9-48ae-b4ea-f9d6ae72bd41-1729152342
2024-10-17T08:05:42.833Z: Reading the content of file at dist/templates/index.json...
2024-10-17T08:05:42.833Z: Listening for changes in the theme editor
2024-10-17T08:05:46.047Z: Request to https://.myshopify.com/admin/api/unstable/themes/<theme_id>/assets.json?fields=key%2Cchecksum completed in 212 ms
With response headers:
- content-type: application/json; charset=utf-8
- server-timing: processing;dur=50, cfRequestDuration;dur=197.999954
- x-request-id: bb3285ce-c6c0-49a7-9585-39d1c19037e4-1729152345
2024-10-17T08:05:46.048Z: Listening for changes in the theme editor
2024-10-17T08:05:49.299Z: Request to https://.myshopify.com/admin/api/unstable/themes/<theme_id>/assets.json?fields=key%2Cchecksum completed in 249 ms
With response headers:
- content-type: application/json; charset=utf-8
- server-timing: processing;dur=78, cfRequestDuration;dur=223.999977
- x-request-id: bb51e115-769e-4642-b114-93a1052af343-1729152349
Reproduction steps
- Create or fork a theme
- Run it with
shopify theme dev --theme-editor-sync
- Make changes in the theme editor and click save.
Operating System
macOS Sonoma 14.4.1
Shopify CLI version (check your project's package.json if you're not sure)
3.68.0
Shell
zsh
Node version (run node -v if you're not sure)
v20.10.0
What language and version are you using in your application?
ruby 2.6.10p210 (2022-04-12 revision 67958) [universal.arm64e-darwin23]
Off topic
Additionally, I'm also always getting the question to keep the remote or local files in my CLI. Even tho I start the server fully ones, break it, and then spin it up again. Everything should already be synced, but still I'm getting the question. Maybe that's related?
Please confirm that you have:
In which of these areas are you experiencing a problem?
Theme
Expected behavior
When running
shopify theme dev --theme-editor-syncit should nicely sync everything between the local files and the theme editor.Actual behavior
Although it's actually working, I'm getting the following modal every time I make changes to the theme and click on save.
There is not difference between my local
index.jsonand the one on Shopify (ghost theme).Local
Shopify
Verbose output
2024-10-17T08:05:35.715Z: Listening for changes in the theme editor
2024-10-17T08:05:38.991Z: Request to https://.myshopify.com/admin/api/unstable/themes/<theme_id>/assets.json?fields=key%2Cchecksum completed in 273 ms
With response headers:
2024-10-17T08:05:38.994Z: Reading the content of file at dist/templates/index.json...
2024-10-17T08:05:39.517Z: Request to https://.myshopify.com/admin/api/unstable/themes/<theme_id>/assets.json?asset%5Bkey%5D=templates%2Findex.json completed in 520 ms
With response headers:
2024-10-17T08:05:39.519Z: Writing some content to file at dist/templates/index.json...
• 10:05:39 Synced » download templates/index.json from remote theme
2024-10-17T08:05:39.521Z: Listening for changes in the theme editor
2024-10-17T08:05:39.607Z: Reading the content of file at dist/templates/index.json...
GET /
2024-10-17T08:05:39.623Z: → Rendering https://.myshopify.com/?_fd=0&pb=0 (with templates/index.json)...
2024-10-17T08:05:39.901Z: Request to https://.myshopify.com/?_fd=0&pb=0 completed in 277 ms
With response headers:
2024-10-17T08:05:39.901Z: ← 200 (request_id: 278268c5-dc09-40ef-abc1-8354472051ac-1729152339)
2024-10-17T08:05:40.124Z: Request to https://.myshopify.com/admin/api/unstable/themes/<theme_id>/assets/bulk.json completed in 516 ms
With response headers:
• 10:05:40 Synced » update templates/index.json
2024-10-17T08:05:42.831Z: Request to https://.myshopify.com/admin/api/unstable/themes/<theme_id>/assets.json?fields=key%2Cchecksum completed in 308 ms
With response headers:
2024-10-17T08:05:42.833Z: Reading the content of file at dist/templates/index.json...
2024-10-17T08:05:42.833Z: Listening for changes in the theme editor
2024-10-17T08:05:46.047Z: Request to https://.myshopify.com/admin/api/unstable/themes/<theme_id>/assets.json?fields=key%2Cchecksum completed in 212 ms
With response headers:
2024-10-17T08:05:46.048Z: Listening for changes in the theme editor
2024-10-17T08:05:49.299Z: Request to https://.myshopify.com/admin/api/unstable/themes/<theme_id>/assets.json?fields=key%2Cchecksum completed in 249 ms
With response headers:
Reproduction steps
shopify theme dev --theme-editor-syncOperating System
macOS Sonoma 14.4.1
Shopify CLI version (check your project's
package.jsonif you're not sure)3.68.0
Shell
zsh
Node version (run
node -vif you're not sure)v20.10.0
What language and version are you using in your application?
ruby 2.6.10p210 (2022-04-12 revision 67958) [universal.arm64e-darwin23]
Off topic
Additionally, I'm also always getting the question to keep the remote or local files in my CLI. Even tho I start the server fully ones, break it, and then spin it up again. Everything should already be synced, but still I'm getting the question. Maybe that's related?