App based webhook subscriptions on legacy install flow

Hi,

Is anyone able to successfully deploy an app that uses the “legacy install flow” with the new app webhook subscriptions?

When I change my toml config file to

[webhooks]
api_version = "2024-07"

[[webhooks.subscriptions]]
topics = [ "app_subscriptions/update", "app/uninstalled", "orders/paid", "shop/update" ]
uri = "/webhooks"
compliance_topics = [ "customers/data_request", "customers/redact", "shop/redact" ]

whilst keeping

[access_scopes]
# Learn more at https://shopify.dev/docs/apps/tools/cli/configuration#access_scopes
scopes = "read_all_orders,read_customers,read_discounts,read_orders,read_price_rules,read_script_tags,write_customers,write_discounts,write_price_rules,write_script_tags"
use_legacy_install_flow = true

I get

╭─ error ──────────────────────────────────────────────────────────────────────╮
│                                                                              │
│  Version couldn't be created.                                                │
│                                                                              │
│  Missing scope for webhook topic: orders/paid (read_orders or                │
│  read_marketplace_orders)                                                    │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

when running npm run deploy even if I change the order of the access_scopes so a change is detected (note that read_orders is there and as always been on the app’s config)

As far as I know these should not be related, there’s no info on https://shopify.dev/docs/apps/build/webhooks/subscribe about incompatibility and my cli version is 3.66.0

Any help would be much appreciated.

I’ve opened an issue on the CLI’s repo about this, https://github.com/Shopify/cli/issues/4417 I think it is a bug, thoughts?