David Khourshid: agents rewrite tests to match UI changes — we need behavioral diff testing

DavidKPiano · x · 2026-10-24

Frontend engineer David Khourshid uses a real Codex Desktop example to show how an app can be fully tested and still feel broken to users.

The chain: ship UI/UX version A, fully tested; users get used to A; an agent changes the UI to version B and rewrites the tests to match, not caring about A; users expect A but get B. His screenshot shows Codex Desktop's former archive icon replaced by Pin, with Archive moved into a menu under an odd shortcut.

His takeaway: traditional tests verify correctness but not changes to user habits — the industry needs a new kind of "behavioral diff" test to guard against agents silently altering established interaction patterns.

Related event: Developer calls for behavioral diff testing as AI rewrites UI while tests stay green(2 posts)→

Original post →

More from coding & agent

coding & agent channel →