diff --git a/.changeset/late-flowers-yell.md b/.changeset/late-flowers-yell.md new file mode 100644 index 00000000000..0bb104d5777 --- /dev/null +++ b/.changeset/late-flowers-yell.md @@ -0,0 +1,5 @@ +--- +'@shopify/theme': patch +--- + +Fix issue that prevents `shopify theme console` from evaluating results when another 'preview_theme_id' is set diff --git a/packages/cli-kit/assets/cli-ruby/lib/shopify_cli/theme/repl/auth_middleware.rb b/packages/cli-kit/assets/cli-ruby/lib/shopify_cli/theme/repl/auth_middleware.rb index b386b2401ba..f26e64ba603 100644 --- a/packages/cli-kit/assets/cli-ruby/lib/shopify_cli/theme/repl/auth_middleware.rb +++ b/packages/cli-kit/assets/cli-ruby/lib/shopify_cli/theme/repl/auth_middleware.rb @@ -26,6 +26,9 @@ def call(env) # from shutting down the server. shutdown if index_page?(@env) + # Set preview_theme_id into the session. + @app.call(@env) + [ 200, {