Dev_store_url is automatically replaced to a different URL even when automatically_update_urls_on_dev is false

I have reproduced the issue on the latest CLI version.

Yes, I am on the latest version

I have searched existing posts and this report is not a duplicate.

Yes, this isn’t a duplicate

In which of these areas are you experiencing a problem?

Other

Expected behavior

dev_store_url shouldn’t be automatically replaced with a different store URL when automatically_update_urls_on_dev = false

Actual behavior

My primary dev_store_url = "galmis-test.myshopify.com" is always replaced with "client-galmis-test.myshopify.com".

I can work around it by setting the URL to “/galmis-test.myshopify.com” or “https://galmis-test.myshopify.com”. When running shopify app dev, the prefix is dropped, and I can at least use the intended store during that session, but it isn’t great DevX, as I need to update the store URL before starting the app locally.

It seems to work fine with dev stores that aren’t substrings of other stores. It also used to work until I upgraded the CLI to a later version in Dec/Jan. I’m not sure which version introduced the regression.

I’d be ok with this behaviour if there were an option to delete development stores.

Reproduction steps

  1. Set the following in the app toml config
[build]
automatically_update_urls_on_dev = false
dev_store_url = "galmis-test.myshopify.com"
  1. Run shopify app dev
  2. See how a valid dev store URL is replaced with the one for the different store (client-galmis-test.myshopify.com in this case).

Verbose output

(base) Mac-mini:serializer-app admin$ npx shopify app dev --config shopify.app.local.toml --tunnel-url https://serializer.galmis.uk:8002
╭─ info ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                                                             │
│  Using shopify.app.local.toml for default values:                                                                           │
│                                                                                                                             │
│    • Org:             Galmis                                                                                                │
│    • App:             serializer-local                                                                                      │
│    • Dev store:       client-galmis-test.myshopify.com                                                                      │
│    • Update URLs:     No                                                                                                    │
│                                                                                                                             │
│   You can pass `--reset` to your command to reset your app configuration.                                                   │
│                                                                                                                             │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

14:54:10 │               app-preview │ Preparing dev preview on client-galmis-test.myshopify.com

Operating system

Mac OS 15.7.3

CLI version

@GovRayt/cli@3.94.1