App Bridge extensions returning stale/generic handle for Theme App Extensions

While migrating our setup guide to show the theme app extension activation status with the native app bridge feature rather than our backend logic fetching the shop production’s theme’s config file we stumbled upon a weird issue.

In @shopify\app-bridge-types\dist\shopify.ts we can find:

interface ExtensionInfo {
/**
* The unique identifier for the extension.
*/
handle: string;

When logging logging the extensions object, the handle property for the checkout ui extension definitely has the right value (matching what we have in our dev partners dashboard), whereas it’s definitely not the case for the theme app extension.

Instead the handle we could read was just theme-app-extension which is a string that is nowhere to be found in our codebase. I suspect it might have been the handle when the extension was deployed the first time. If that’s the case, I would consider this staleness a bug.

Hi, is this related TypeScript Issue: shopify.app.extensions() fails to narrow types?