RepoJournal
Shopify

Shopify

Hydrogen, Polaris, and the CLI - the dev platform behind millions of stores

Keep up with Shopify in about 3 minutes a day: what actually shipped — the commits, pull requests, releases, and security advisories that matter.

One email a day. Unsubscribe in one click.

Pick a date

Topics: JavaScript Full archive →

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].

One email a day. Unsubscribe in one click.

Action items

References

  1. [1] fix(theme): preserve dev preview theme across SFR redirects ↗ Shopify/cli
  2. [2] Use validated storefront password for theme apps ↗ Shopify/cli
  3. [3] Merge pull request #7642 from Shopify/fix/theme-dev-redirect-manual Shopify/cli
  4. [4] Merge pull request #7662 from Shopify/gg-fix-app-dev-password-loop Shopify/cli

Quick answers

What shipped 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. In total, 3 commits and 2 pull requests landed.
Who contributed to Shopify on May 30, 2026?
2 developers shipped this update, including EvilGenius13 and graygilmore.
What were the notable Shopify updates?
fix(theme): preserve dev preview theme across SFR redirects, Use validated storefront password for theme apps, and Merge pull request #7642 from Shopify/fix/theme-dev-redirect-manual.

More from Shopify

Daily updates, in your inbox

Follow Shopify

Keep up with Shopify in about 3 minutes a day: what actually shipped — the commits, pull requests, releases, and security advisories that matter.

or

One email a day. Unsubscribe in one click. Read a past issue →

Elsewhere on the wire

Want every project, not just this one?