The Wire · Showcase
SHOPIFY CLI FIXES DEV THEME PERSISTENCE BUG AFTER SFR MIGRATION
By RepoJournal · Filed · About Shopify
A latent redirect handling bug surfaced this week when Shopify moved preview theme binding from server-side storage to cookies, causing dev themes to occasionally render as live in the storefront renderer.
The storefront renderer was using fetch's default 'follow' redirect behavior, which silently dropped Set-Cookie headers that bind the _shopify_essential cookie to dev themes [1]. After SFR migrated preview_theme_id to cookie-based storage, this bug started manifesting as dev preview occasionally showing the live theme instead [1]. The fix switches to manual redirect handling and patches response headers to preserve the session cookie while letting browsers follow redirects cleanly [1]. In parallel, CLI shipped a fix for a password validation loop affecting theme app developers [2]. The issue surfaced when ensureValidPassword started treating empty strings as valid input, bypassing the normal prompt fallback that password-protected stores relied on [2]. Both fixes are now merged and rolled into the CLI [3] [4].
Action items
- → Upgrade Shopify CLI if you're developing theme apps on password-protected stores Shopify/cli [plan]
- → Update theme dev workflows if dev preview was rendering as live Shopify/cli [monitor]
References
- [1] fix(theme): preserve dev preview theme across SFR redirects ↗ Shopify/cli
- [2] Use validated storefront password for theme apps ↗ Shopify/cli
- [3] Merge pull request #7642 from Shopify/fix/theme-dev-redirect-manual Shopify/cli
- [4] Merge pull request #7662 from Shopify/gg-fix-app-dev-password-loop Shopify/cli
FAQ
- What changed in Shopify on May 30, 2026?
- A latent redirect handling bug surfaced this week when Shopify moved preview theme binding from server-side storage to cookies, causing dev themes to occasionally render as live in the storefront renderer.
- What should Shopify teams do about it?
- Upgrade Shopify CLI if you're developing theme apps on password-protected stores • Update theme dev workflows if dev preview was rendering as live
- Which Shopify repositories shipped on May 30, 2026?
- Shopify/cli