Did something change in shopify global object in extensions?

My mutations stopped working and upon debbuging the value of shopify.authenticatedAccount.customer.value.id changed

originally it had gid://shopify/Customer/ but now its without it

this was my fix

const customer = shopify.authenticatedAccount.customer.value.id.includes(
    "gid://shopify/Customer/",
  )
    ? shopify.authenticatedAccount.customer.value.id
    : `gid://shopify/Customer/${shopify.authenticatedAccount.customer.value.id}`;

Did it changed during the spring update?

@0_0 Could you share which API version you’re using, which extension target this is running on, and when you first observed the change?

My initial investigation suggests that shopify.authenticatedAccount.customer.value.id has only returned the numeric customer ID, not the full gid://shopify/Customer/<id> value. If you saw it return the full GID in a specific version or target, those details would help narrow this issue down.

Currently using

shopify.extension.toml

api_version = "2026-01"

[[extensions.targeting]]
module = "./src/Block.jsx"
target = "customer-account.page.render"

I observed it yesterday when I was trying final checks to migrate to customer accounts and this happened.

export const updateMetafieldsMutation = `
mutation MetafieldsSet($metafields: [MetafieldsSetInput!]!) {
    metafieldsSet(metafields: $metafields) {
    userErrors { field message code }
    }
}`;

Basically I had this setup where the ownerId is the customer gid

const metafields = [
        {
          key: "wishlist",
          namespace: "custom",
          ownerId: customer,
          value: JSON.stringify(wishlistItems.map((item) => item.id)),
        },
      ];

I confirmed that we haven’t made any recent changes to shopify.authenticatedAccount.customer.value.id in Customer Account UI Extensions. In that surface, the expected value is the numeric customer ID.

You mentioned this came up while doing final checks for customer accounts. Was this implementation based on similar logic from a Checkout UI extension? Checkout UI Extensions return the customer ID in the gid://shopify/Customer/<id> format.

I see…
I dont remember but I might have used that as reference originally.

Thank you for responding, I think this is resolved as I have done my final check