Repository navigation
fix(ui): stop catalog paging in hidden tabs - #140583
Conversation
Gate new automatic page requests at the existing refresh owner while preserving the retained window, accepted manual responses, and visible catch-up. Regression coverage reproduces hiding during both the base response and an expanded-page response.
|
🦞👀 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. |
|
Codex review: needs maintainer review before merge. Reviewed September 6, 2026, 9:43 PM ET / September 7, 2026, 01:43 UTC. ClawSweeper reviewWhat this changesStops automatic sidebar catalog pagination when the tab becomes hidden, preserves previously displayed rows and cursors, and adds lifecycle regression coverage. Merge readiness✅ Ready for maintainer review This remains a useful, focused fix: current main still starts additional automatic pages after the tab becomes hidden. No introduced correctness or security defect was found. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI sidebar fetches session catalogs from the Gateway and refreshes pages previously expanded by the operator. Browser visibility and request lifecycle checks control background work and when refreshed rows appear. flowchart TD
A[Refresh timer or tab activation] --> B[Sidebar catalog refresh]
B --> C[Gateway first page]
C --> D{Visible and request current?}
D -->|Yes| E[Fetch next expanded page]
E --> D
D -->|No| F[Retain displayed rows and cursor]
E --> G[Publish completed catalog]
F --> G
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +6, Tests +216. Total +222 across 3 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep automatic replay visibility-aware at the request boundary while preserving complete displayed windows and the existing activation and manual-pagination flows. Do we have a high-confidence way to reproduce the issue? Yes, from source: expand multiple catalog pages, start a refresh, then hide the tab before a response completes; main's replay loop starts remaining pages without a visibility check. This review did not execute that scenario. Is this the best way to solve the issue? Yes. Checking immediately before each automatic page request closes the scheduling gap without canceling accepted manual work or introducing a competing refresh mechanism. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against b39b6276cac2. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
…137098 * commit '8a540c252002878f3c3e9d8dfb837b83c8602a78': (2210 commits) perf(plugins): keep bundled catalog lookups lightweight (#140597) refactor: streamline skills JSON serialization (#140581) fix(feishu): expand quoted merged-forward messages (#136231) fix(talk): keep opaque realtime routes out of public config (#129144) fix(ci): avoid Linux packaging on pull requests (#140589) fix(usage): release completed request payloads (#140588) fix(tooling): omit Trae machine squash credit (#140562) fix(ui): stop catalog paging in hidden tabs (#140583) fix(portals): reach IPv6 loopback with IPv4-only localhost records (#140580) fix(transcripts): preserve fixed and legacy capture history (#140563) fix(ui): prevent Talk E2E audio capture stalls (#138803) fix(media): release completed document source buffers (#140561) fix(anthropic): preserve resumed CLI caches across Git changes (#140566) chore(ui): refresh control ui locales (#140586) fix(ui): keep usage exports bound to their session instance (#140573) refactor(exa): test response readers through tool execution (#140572) fix(macos): omit incompatible worker binaries from app bundles (#140557) fix: avoid retaining discarded tool output (#140570) refactor(gateway): share placement move matching (#140569) fix(gateway): preserve child turns during systemd drain (#140568) ... # Conflicts: # .agents/skills/release-openclaw-maintainer/SKILL.md # docs/reference/RELEASING.md
Gate new automatic page requests at the existing refresh owner while preserving the retained window, accepted manual responses, and visible catch-up. Regression coverage reproduces hiding during both the base response and an expanded-page response.
What Problem This Solves
Fixes an issue where a Control UI tab continued fetching previously expanded catalog pages after the operator switched away from it.
Why This Change Was Made
The existing visibility handler paused future polls, but an in-flight poll could still start every remaining page of its automatic refresh. Automatic pagination now checks visibility and current request ownership before each additional page, preserving the full previously displayed rows and cursor when it pauses.
User Impact
Hidden tabs stop starting automatic catalog page requests. Returning to the tab uses the existing coalesced refresh to update the expanded list. Already-issued manual Load More outcomes, complete responses, polling intervals, and reconnect behavior are preserved.
Evidence
3091fa6861d732336fc90d139fb466a250958f7f, using the same scenario that produced two baseline failures and one passing manual control.The browser proof uses a synthetic Gateway and controlled document visibility. An initial harness attempt stopped before the race because its paused clock withheld mock response delivery; correcting that clock advancement produced the baseline and candidate results above. No production latency claim is made from these request counts.
The matched screenshots show the expanded list after hiding: the baseline continued replaying pages, while the fix retains the previous window until the visible catch-up.