How to test a GLM-5.4 checkout fix in ZCode
Evaluate a proposed ZCode patch at two viewport widths. Check the button’s right edge, keyboard activation and desktop layout with a reusable checkout fixture.
Evaluate a proposed ZCode patch at two viewport widths. Check the button’s right edge, keyboard activation and desktop layout with a reusable checkout fixture.
Start with the same broken checkout
If GLM-5.4 appears in your ZCode model picker, start a new conversation. Record the displayed model, effort setting and starting commit. Confirm that both images are attached. An editor model label alone cannot identify a backend API route.
Open the page at 390px and 1280px. Capture both views before editing. On mobile, the card measures 342px across. Its borders and padding leave 300px inside. The product alone needs 320px before the 20px gap and button.
Send the HTML source and both screenshots with this prompt:
Explain why the mobile button extends beyond the card. Return the smallest patch that keeps the desktop layout, price, label and click handler. List the files changed and the viewport widths inspected.
Can a customer still place the order?
Apply the patch to a clean copy. Scroll the button into view and run this read-only check in the console at both widths. Hiding the horizontal scrollbar can conceal a clipped button.
(() => {
const button = document.querySelector('#checkout');
const card = document.querySelector('.checkout');
const rect = button.getBoundingClientRect();
const width = document.documentElement.clientWidth;
const y = rect.top + rect.height / 2;
return {
viewport: width,
cardWidth: card.getBoundingClientRect().width,
pageOverflows: document.documentElement.scrollWidth > width,
fullButtonInViewport: rect.left >= 0 && rect.right <= width,
rightEdgeClickable: button.contains(document.elementFromPoint(rect.right - 1, y)),
receipt: document.querySelector('#receipt').textContent
};
})()
Expect pageOverflows to be false and both button checks to be true. Tab to the button and press Enter twice. The receipt must show 1 then 2 activations for order N18. Verify the price remains $18.00.
| Check | Pass condition |
|---|---|
| Phone (390px) | No crop; right edge responds |
| Desktop (1280px) | Original placement and price preserved |
Compare with an Ofox baseline
Choose an image-capable model available to your account. Give it the identical source, images and prompt. Save each diff, manual corrections, time to the complete diff and time to the final passing check. Record the returned model ID and usage if provided. This exercise supplies acceptance criteria; performance figures require an actual run.
What if the model cannot see the screenshot?
Check the attachment in a fresh conversation. Keep text-only runs separate: supplying the CSS without the screenshot tests a different input.


