After fixing one broken screen on a fashion image generation workbench (a separate story), I ran a full read-only check of its dashboard. The backend looked healthy. Twenty-four distinct read routes answered HTTP 200 through the dashboard. The SQLite integrity and foreign-key checks were clean, every live image file existed on disk, and the generation tests passed. Nothing was generated, judged, deleted or restarted. By the server's account, there was nothing to fix.

Correct responses, wrong order

The problems were in how the pages handled answers, not in the answers themselves. On the first pass, some requests took between five and seven seconds; others came back in milliseconds. In four tabs (the gallery, the trend view, a model filter and a lab view), a request fired for an old filter or selection could finish after the request for the new one and paint over it. In the gallery there was a second effect: when the older request finished, it released the loading lock that the newer request was still holding. In the lab view, distribution and weight data arrived separately, so a fast switch between themes could mix data from two different themes on one screen.

A related flaw was quieter. A theme description request that failed over HTTP was cached as if it were valid data, so one bad response could persist after the failure had passed. In the trend view, a failed asset lookup looked the same as an empty result: the screen said there were no assets yet.

A generation number per request

Each reload now increments a counter, and a response is applied only if it still belongs to the latest generation. The loading lock is released only by the request that owns it. The lab view gathers distribution and weights into local variables and applies them together only if its request is still the last one. Failed responses are no longer cached, and lookup failures are shown separately from empty results.

To test the race, I extracted the real gallery loading function into a Node VM and returned delayed responses in reverse order. The stale data was not applied, the new request stayed in its loading state, and only the newer assets appeared. In an actual browser, the gallery and one other tab rendered correctly. After the trend view showed its loading state, the browser switched to another work tab, so I stopped. The remaining tabs were not visually verified. The slow trend list itself was left as it was.

A 200 tells you the answer was correct when it was sent. It does not tell you the answer is still the one the screen needs.