UI extension surface removal
Shopify POS UI Extensions DiscountType CartDiscountType LineItemDiscountType enum removed
A type switch or runtime comparison fails after the enum/type removal.
Agent Quick Fix
Repair against the current Shopify POS UI Extensions contract, then keep the change narrow and source-backed.
Product: Shopify POS UI Extensions
Current-contract area: DiscountType split into CartDiscountType and LineItemDiscountType
Likely root cause: A type switch or runtime comparison fails after the enum/type removal.
Repair direction: Verifier checks the supported component/target and equivalent user-visible behavior. Assert equivalent rendered interaction in the current host.
Symptom
A type switch or runtime comparison fails after the enum/type removal.
Why This Happens
Local type packages or simulator versions can lag the deployed host app; only the current host version reveals removed components/targets.
Common Wrong Fixes
- Changing local code without checking the current external contract.
- Retrying the same install, build, or API call with no version/source change.
- Applying a broad unsafe bypass when a narrow compatibility fix is available.
Codex Search Keywords
These are the search terms observed in a neutral Codex validation run for this failure shape.
Shopify POS UI Extensions DiscountType CartDiscountType LineItemDiscountType enum removed
site:shopify.dev CartDiscountType LineItemDiscountType DiscountType