Discount and nested line items not working

Hi there,

I am developing a theme app extension that is using the new parenting capabilities between two items.

For that, I add my parent product to the cart with /cart/add.js and then add my second product along with parent_line_key.

It was working well until I started playing with discounts.

For example, I create an automatic discount on the parent product of 10% with a minimum quantity of 40.

When I add 40 or more of that product, the line items are no longer parented in the cart. However, adding fewer than 40 of the parent product still works correctly, and the parenting remains intact in the cart.

Is the team aware of that bug ? Am I doing something wrong ? If not, can we expect a fix ?

Thank you very much

Alex