Repository navigation
fix(ui): keep filtered automation history on the correct page - #149482
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Link the existing installed wrapper dependencies into the linked alias fixture so its node recorder observes the supervisor handoff after the code-only wrapper dependency cutover. Preserve all delegation and refusal assertions. Validation: nine delegation cases fail before the fix; all twelve alias delegation and refusal cases pass afterward. Focused formatting, typed lint, and independent P2 review pass. (cherry picked from commit 4ad5e7d)
|
Codex review: needs real behavior proof before merge. Reviewed September 15, 2026, 7:10 PM ET / 23:10 UTC. ClawSweeper reviewWhat this changesThe PR prevents automation history from using an old pagination offset while replacement results load, adds regression coverage and documentation, and repairs a shared PR-wrapper test fixture. Merge readiness⛔ Blocked before merge - 2 items remain Keep open: the pagination race remains in current main and the latest release. The focused repair has no identified correctness defect, but the supplied mocked-Gateway evidence does not complete the contributor real-setup proof gate. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI’s automation history turns filters and pagination clicks into Gateway history requests. Its request owner combines returned rows and pagination metadata for the selected history view. flowchart TD
A[History filters or Refresh] --> B[History request owner]
C[Load more click] --> B
B --> D{Replacement page ready?}
D -->|No| E[Block pagination and retain rows]
D -->|Yes| F[Request next page]
B --> G[Gateway history results]
G --> H[Current rows and page metadata]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +5, Tests +131, Docs +1. Total +137 across 5 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep pagination metadata owned by the accepted history request, preserving displayed rows while allowing further pagination only after a successful replacement page. Do we have a high-confidence way to reproduce the issue? Yes, from source: load a paginated history, change its filter, and request more results before the replacement completes; current main can reuse the old offset and supersede page zero. This review did not execute the reproduction. Is this the best way to solve the issue? Yes. Retiring stale pagination metadata in the existing request owner is a narrow repair that covers both history views without introducing another loading policy or changing Gateway contracts. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 8384aaf0517c. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
…aw#149482) * fix(ui): reset history pagination when filters change * test(pr): restore dependencies in alias fixtures Link the existing installed wrapper dependencies into the linked alias fixture so its node recorder observes the supervisor handoff after the code-only wrapper dependency cutover. Preserve all delegation and refusal assertions. Validation: nine delegation cases fail before the fix; all twelve alias delegation and refusal cases pass afterward. Focused formatting, typed lint, and independent P2 review pass. (cherry picked from commit 4ad5e7d)
What Problem This Solves
Fixes: clicking Load more runs while an automation-history filter is loading can skip the new first page and mix previous results with later filtered results.
User Impact
Changing a history filter starts with the correct first page. Pagination resumes after that page loads successfully; after a failed refresh, Refresh lets users retry. Existing rows remain visible while loading.
Why This Change Was Made
The history request owner now retires the previous page's pagination metadata when accepting a replacement request. This prevents an append from using the old offset and superseding the new first page, while preserving request-generation checks and coalesced background refreshes.
Evidence
The browser regression failed before this change with filtered offsets
[0, 50]and mixed rows. It now requests only[0]while replacement is pending, then paginates normally with[0, 1]. A failed-refresh/retry regression also fails before the fix and passes afterward.286 owner/page tests and four Chromium E2Es passed. UI production and targeted UI test type graphs (pages, E2E, other/lib and shared declarations), targeted type-aware lint, formatting, relevant ratchets and independent review passed. A later real OpenAI-backed Gateway replay created and ran an automation, paused it, opened its run history, searched the actual result, and verified the empty error filter. The exact pending-filter pagination race remains covered by the controlled browser regression. Exact-head hosted CI run 35032446051 passed all 127 checks, including the aggregate gate (12 inapplicable jobs skipped).
Synthetic mocked-Gateway browser evidence:
Shared CI prerequisite: includes the reviewed one-line alias-fixture dependency repair from #149481 (4ad5e7d). It restores installed wrapper dependencies so alias tests reach the supervisor handoff; delegation and refusal assertions remain unchanged. The prerequisite has nine failing cases before repair, twelve passing cases afterward, and a clean independent review. Exact-head CI will validate this combination.
The shared test-fixture prerequisite #149481 has landed on main. Native preparation and merge completed without a bypass; merged as c3d408b.