r/codereview • u/CCodeSI • 25d ago
The diff was clean, the tests passed, the PR got approved, and checkout was still broken. Some bugs only exist when you run the app.
A pattern we keep seeing in PRs, especially agent-written ones: everything a reviewer can check in a diff is fine. The logic reads correctly, the tests are green, nothing suspicious changed. And the bug ships anyway, because it only exists at runtime:
- the submit button renders behind a cookie banner, so nobody can click it
- a form posts successfully, but the page never shows the result
- the flow works for a new user and breaks for one who's already logged in
- the page spins forever when an API is slow, because nobody ran the slow path
None of that is visible in a diff, and asking reviewers to pull every branch and click through it doesn't scale.
What we did in CCode, the coding agent we build: it has a browser built in, so before a change is handed over, the agent opens the app in Chrome, walks through the flow the change touches, checks the failing request if something breaks, and fixes it. It can also try the bad paths on purpose: an API error, a slow response, a logged-out user. So the PR that reaches review has already been clicked through.
For people who review a lot of UI changes: do you ask for a screen recording or a preview link with each PR, or rely on end-to-end tests to catch this?