# Stale search results test report

> Inspect a local fixture where an older search response arrives last. See when the wrong result replaces the current query and how a revision fixes it.

Source: https://cueapril.com/reports/stale-search-results
Updated: 2026-12-01
Index: https://cueapril.com/llms.txt

## Does the UI ever show old results after the user types a newer query?

The original implementation failed the “Older response arrives last” check. Expected 2 and observed 1. The corrected implementation met both expectations on the same inputs.

The final rendered search result belongs to the newest request. Compare two versions of a small, runnable fixture. The inputs, expected values and recorded results are public.

## What the control case missed

With responses delivered in request order the last response is correct. When request 2 completes before request 1, a last-arrival-wins handler replaces the user's current result with older data.

Observed values from the two implementations

| Check | Expected | Original | Corrected |
| --- | --- | --- | --- |
| Responses arrive in order | 2 | 2 | 2 |
| Older response arrives last | 2 | 1 | 2 |

## What to check before merging

Track the active request when applying UI updates. Repeat the case with cancellation, errors and a cleared query. The fixture models response ordering without relying on an unreliable network delay.

## Reproduce the recorded result

Download the [Node.js fixture](/examples/qa-regressions/run.mjs) and run node run.mjs stale-search-results with Node.js 24. Compare the printed JSON with the [recorded results](/examples/qa-regressions/results.json). This is a locally executed model of the regression, using synthetic inputs. It covers the rule shown here. Hosted runs, browser behaviour and customer PRs require their own evidence.

## Primary documentation

- [Runnable synthetic regression fixtures](/examples/qa-regressions/run.mjs)
- [Recorded output for all twelve fixtures](/examples/qa-regressions/results.json)

By Cue April. Updated 2026-12-01.

## Related

- [Worked test reports](https://cueapril.com/reports): Replay a real mobile pricing defect from a Cue April pull request. Explore runnable reports for checkout, search, data migrations and other regressions.
- [Pull request testing](https://cueapril.com/use-cases/pull-request-testing): See what a pull request test report should show before you merge. Follow a failing checkout check through the fix and inspect a real PR report.
