Checkbox - Use shipping address as billing address erratic behaviour

I’ve developed a Shopify extension with two buttons: one for updating shipping addresses, and another to clear it, also displaying logs when an update happens. The checkout behaviour is inconsistent regarding the checkbox.

Initially, upon opening the checkout, the extension functions correctly. Multiple address searches can be performed, and the checkbox remains visible as expected. When the shipping address is modified externally, the checkbox disappears—the desired behaviour.

However, after clearing the shipping address, the checkbox’s behaviour becomes erratic. Sometimes, it appears during a search, and other times, it disappears. Crucially, no console logs are generated during these inconsistent checkbox displays, indicating that the extension isn’t interacting with Shopify at this point.