"Staff attribution couldn't be included for some bundle items" in POS after a Cart Transform linesMerge

Our Cart Transform function merges bundle component lines with linesMerge. In Shopify POS, when “Add staff to sale” is set to Automatic, POS shows this banner right after the merge, and the merged line loses the staff attribution that the component lines had:

Staff attribution couldn’t be included for some bundle items

We add the component lines from a POS UI extension with shopify.cart.addLineItem (pos.home.modal.render, API 2026-10).

Setup

  • Shopify POS 11.19.0 on iPhone
  • POS settings: Add staff to sale on, Selection set to Automatic, Required on
  • The Cart Transform returns one linesMerge for 2 lines, with no errors and the same output on every run

Steps

  1. Add 2 lines from the extension with shopify.cart.addLineItem.
  2. The Cart Transform merges them into one bundle line.
  3. The banner shows in the cart.
  4. Tap Checkout. POS shows “Add missing information” with “Add staff to sale” marked Required.

What we see in shopify.cart.current

  • Each line we add gets attributedUserId set to the signed-in staff member, from automatic attribution.
  • About 50 ms after the last add, the merged line shows up with a new uuid, components, and no attributedUserId. The component lines are gone.
  • So the attribution is dropped at the merge, and with Required on, staff have to pick someone again at checkout.

What works

  • Calling shopify.cart.setAttributedStaffToLineItem(staffId, mergedUuid) after the merge puts the staff member on the bundle line. Checkout then doesn’t ask, and the order credits both components to that staff member. But the banner has already shown by then, so staff still see the warning.
  • Picking staff at checkout, or on the completed order, also credits both components correctly.

Expected

When all merged lines have the same attributed staff member, the merged line keeps it and no banner shows. This looks like the same family as “Custom properties couldn’t be included for some bundle items” (thread 23817), which was fixed in July.

Merchants who use staff attribution for sales targets see this banner on bundle sales, and they ask us whether the sale still counts for their staff. Is this a known issue?