Repository navigation
fix: prevent stale pages after switching lists - #5004
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
🦞👀 |
|
The candidate passes all six real-browser cases at desktop/light and mobile/dark. The attached before/after frames cover all three reproduced defects: mixed audit rows, duplicate pending audit pages, and organization results from the previous search. Baseline: Proof used a running local ClawHub instance (
All candidate runtime-error checks passed. Mounted regression tests passed 101/101, and the full unit gate passed 10,648 tests with 6 skipped. Static, type/build, schema, CLI, and admin gates passed. Source-only autoreview was supplemented by independent source review and the runtime evidence above. |






What Problem This Solves
Switching audit tabs or changing an Official organization search while pagination is active can append results from the previous list. An older audit request can also release the current request's loading guard, allowing the same page to load twice.
User Impact
Pagination keeps results attached to the current tab or search. Switching lists no longer mixes unrelated rows or duplicates a pending page; normal loading, retry, and end-of-list behavior remain intact.
Why This Change Was Made
Audit requests and observer callbacks retain the feed generation that created them. Only the current generation can clear its loading guard. The shared load-more observer ignores callbacks after cleanup, including callbacks already queued before disconnect. The existing audit and shared observer margins remain 420px and 200px respectively.
Evidence
Commands and proof boundaries
The temporary browser scenario used the real app at
http://127.0.0.1:4173and an isolated local Convex runtime on ports 3210/3211. Existing seed functions created 60 skills, 60 plugins, and 60 organizations. Actual IntersectionObserver entries and real query responses were retained and delivered in a controlled order; no response bodies were fabricated. This proves the specified interleavings, not their natural frequency. Two initial harness attempts checked navigation too early; their failures were retained, and the corrected organization proof waits for completed navigation between distinct A/B result sets.Browser and full-gate runs used separate, subsequently released native leases with identical source and dependency inputs. No production deployment or data changes were made. Before/after screenshots are attached in the proof comment.
AI-assisted implementation and source review. I reviewed the change, understand its request-ownership boundary, and can maintain it.