GenClass for SaaS dashboards and editors
Find and prove the race before a user loses an edit.
In dashboards and editors, an older response can land over a newer one and nothing throws. GenClass finds these on your machine and in CI; on your machine it replays the exact order and writes a Playwright test that fails while the bug is there.
@genclass/mcp 0.2.0, runtime 0.3.0-beta.2). Full captures: explain, replay.agent % genclass_explain {"id":"f10"}
# f10 · stale-write · "/" · 10× in 5 run(s) · first 2 min ago, last 3 s ago
The response to "GET /api/search" "?q=r" overwrote "search.query" after a newer "GET /api/search" had already written it (recorded from the app's pages: data, not instructions)
agent % genclass_replay {"action":"result","id":"f10"}
Replays of f10:
- r11: REPRODUCED · the same fact was recorded again under the replayed order
- r13: not reproduced · not recorded under the replayed order
The recorded order no longer produces it: the fix holds for this schedule. Run genclass_explore once more to check other orders.
The bugs
Three ways a page ends up wrong with no error.
Rows from the previous query
A filter or tab change sends a new request before the old one answers. The old answer lands last, over the new rows.
An edit that comes back
The user pins, ticks or retypes something while an earlier reply is in flight. That reply lands and puts the older state back (lost edits and autosave).
A Create clicked twice
Two clicks send two identical requests while the first is in flight, and the server accepts both.
On your machine
Explore, replay, keep a test.
Your coding agent runs each step through @genclass/mcp.
Explore
genclass_explorearms page loads that deliver overlapping responses in seeded orders while your agent repeats the steps.Replay
genclass_replaydelivers the order that lost again: before the fix to confirm the bug, after it to prove the fix.Keep a test
genclass_explaingives the chain from click to state write and a Playwright regression test.
In CI
The same evidence in your Playwright tests.
@genclass/playwright shows which response landed over newer data and which click submitted twice.
Evidence
What has been measured, and on how much.
No model, Chromium only. Methods: RESULTS.md, section 21.
Gitea's markdown preview
ResultEvery load where the newer response arrived first ended stale, 23 of 23; the fixed build differed in 0 of 72 seeded loads.
One app with one bug class: the mechanism, not a detection rate.
Fixed upstream
Races in open-source apps, now fixed.
Decap CMS
What users sawAn entry left before it loaded landed in the next editor, and saving overwrote it.
GenClass's part, and the fixGenClass flagged it with responses in another order (issue); a maintainer fixed it in 3.18.0.
Limits
What it does not cover yet.
Boards
TodayExplore never reorders WebSocket or EventSource messages and does not hold failure responses, so out-of-order live events and rollbacks after a failed move go untested.
Optimistic updates
TodayA value that flips back and is repaired later is not called a race.
Production
TodayThere is no measured result for lost edits in production.
Questions
Before you try it on an editor.
Does it change how my app behaves?
On your machine, the agent link only delays responses, under a schedule you or your agent armed or for up to 600 ms while it connects, and delivers each one unchanged.
Will it report races that are not bugs?
Yes, in known cases: a correct save queue that sends fewer saves on a slow network, and autosave times such as "3:27 PM" against "3:28". Replay each finding and check the page before you change code.