Skip to content

fix(ui): keep filtered automation history on the correct page - #149482

Merged
steipete merged 2 commits into
mainfrom
codex/qa-cron-history-filter-paging
Sep 16, 2026
Merged

steipete merged 2 commits into
mainfrom
codex/qa-cron-history-filter-paging

Conversation

@steipete

@steipete steipete commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

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:

Before: filtered history mixes old rows and skips the first page

After: filtered history shows its first page before allowing pagination

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.

@clawsweeper

clawsweeper Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@steipete
steipete marked this pull request as ready for review September 15, 2026 22:31
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)
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 15, 2026
@clawsweeper

clawsweeper Bot commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed September 15, 2026, 7:10 PM ET / 23:10 UTC.

ClawSweeper review

What this changes

The 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
Reviewed head: cab7fd22f03e0096313dac8fcdcc6de591845ef9

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A focused, well-supported repair whose remaining merge gate is real-setup proof.
Proof confidence 🦐 gold shrimp (3/6) Needs real behavior proof before merge: The inspected screenshots and Chromium regression exercise the Control UI history owner through a mocked Gateway and demonstrate the intended visible result. They are useful supplemental evidence; after-fix operation against a real Gateway remains explicitly pending in the PR body. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Needs proof Needs real behavior proof before merge: The inspected screenshots and Chromium regression exercise the Control UI history owner through a mocked Gateway and demonstrate the intended visible result. They are useful supplemental evidence; after-fix operation against a real Gateway remains explicitly pending in the PR body. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Evidence reviewed 8 items Introduced repair and caller behavior: The verified merge-base-to-head patch clears hasMore and nextOffset when accepting a replacement request. The append guard rejects further pagination until a successful response restores metadata. The page invokes this owner immediately after filter changes and requests a render before awaiting completion.
Current main still permits the race: Current main accepts replacement requests without retiring the previous page’s pagination metadata. An append can therefore use the old offset and replace the active request identity before page zero completes.
Latest release inspection: The same missing pagination reset is present in v2026.9.4. The release source was inspected through GitHub after the local release object was unavailable.
Findings None None.
Security None None.

How this fits together

The 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]
Loading

Before merge

  • Add real behavior proof - Needs real behavior proof before merge: The inspected screenshots and Chromium regression exercise the Control UI history owner through a mocked Gateway and demonstrate the intended visible result. They are useful supplemental evidence; after-fix operation against a real Gateway remains explicitly pending in the PR body. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Complete next step (P2) - Add after-fix real-Gateway evidence before merge. A recording with request diagnostics or redacted runtime output can show correct filter replacement and subsequent pagination; remove keys, IP addresses, private endpoints, and user data. Update the PR body to trigger review, or ask a maintainer for @clawsweeper re-review if it does not.
Agent review details

Security

None.

PR surface

Source +5, Tests +131, Docs +1. Total +137 across 5 files.

View PR surface stats
Area Files Added Removed Net
Source 1 5 0 +5
Tests 3 132 1 +131
Docs 1 1 0 +1
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 5 138 1 +137

Review metrics

None.

Technical review

Best 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.

Labels

Label changes:

  • add P2: This repairs a bounded automation-history interaction that can skip matching results and mix filtered and previous rows.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs real behavior proof before merge: The inspected screenshots and Chromium regression exercise the Control UI history owner through a mocked Gateway and demonstrate the intended visible result. They are useful supplemental evidence; after-fix operation against a real Gateway remains explicitly pending in the PR body. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Label justifications:

  • P2: This repairs a bounded automation-history interaction that can skip matching results and mix filtered and previous rows.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs real behavior proof before merge: The inspected screenshots and Chromium regression exercise the Control UI history owner through a mocked Gateway and demonstrate the intended visible result. They are useful supplemental evidence; after-fix operation against a real Gateway remains explicitly pending in the PR body. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Evidence

What I checked:

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Add redacted after-fix evidence from the real Control UI/Gateway showing filter replacement followed by correct pagination.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@steipete
steipete merged commit c3d408b into main Sep 16, 2026
174 of 175 checks passed
@steipete
steipete deleted the codex/qa-cron-history-filter-paging branch September 16, 2026 01:02
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 16, 2026
…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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant