Guides

My AI says the code works, but my app is broken. What should I check?

Updated November 25, 2026 · by Valmir, founder of Publishub

Short answer

An AI coding agent judges its own work from the code it wrote, not from the running app, so "done" means the change compiles, not that users can still sign up or pay. Open the app the way a user does: load the main pages with the browser console open, submit each important form and reload to see if the data is really there, and check the pages the agent didn't mention, because that's where unexpected changes break things.

Why it happens

Agents like Claude Code, Cursor, Codex, Lovable and Bolt check their work with what they can see: the code compiles, the types match, maybe a few tests pass. None of that proves a person can click through the app.

Three patterns cause most of the surprises: the agent changes a file you didn't ask it to touch, it changes one side of a contract (a field name, an API route) without the other, or it writes a test that checks its own implementation instead of the behavior you wanted.

A 10-minute check after every AI change

  1. 01Open the browser console first

    Load your home page and main screens with DevTools open (F12). Red errors in the Console tab usually mean a feature stopped working, even when the page looks fine.

  2. 02Watch the Network tab

    Requests in red (4xx or 5xx) are calls to your API or database that failed. Click one to see the response: it often names the exact problem.

  3. 03Submit every important form, then reload

    Sign up, log in, save something. Then reload the page. A success message doesn't prove the data was saved; seeing it after a reload does.

  4. 04Check the pages the agent didn't mention

    Look at the diff and list every file it changed. Open the pages that use those files, not just the one you asked about.

  5. 05Try it on a phone-sized screen

    In DevTools, switch to a mobile viewport. Layouts that scroll sideways or buttons pushed off screen are common after UI changes.

  6. 06Test the deployed version, not only localhost

    Missing environment variables and API keys only show up in production. Open the real URL after each deploy.

Make it automatic

Doing this by hand after every prompt eats the time the AI saved. Two free tools run the same kind of check for you: Publishub's free app check opens your deployed app in a real browser and lists crashes, failed requests and broken pages; stillworks, its open-source counterpart, lets Claude Code or Cursor run the check themselves after a change.

Free tool · No signup

Check your app now, in about a minute

Paste your app's URL. We open it in a real browser and show JavaScript crashes, failed requests and broken pages. Read-only: we never log in or submit forms.

Free · No signup · Read-only: we never log in, submit forms or change anything

Questions

Can't I just ask the AI to test its own code?
It helps, but the same system that wrote the change is grading it. Agents sometimes report tests they didn't run, or edit a failing test until it passes. An independent check of the running app is more reliable.
Do unit tests catch this?
Usually not. Unit tests check functions in isolation. The common breakages after an AI change, like a form that no longer submits or a page that 404s, only show up when you use the real app in a browser.

Stop checking by hand after every AI change

Publishub is building the full version: your sign-up, login and checkout journeys, run in a real browser after every deploy and compared with the last version that worked. It's in development; the waitlist is open.