Repository navigation
test(ui): verify bounded pages in chat loading proof - #165933
Conversation
50f38c6 (#165897) intentionally changed ordinary history responses to a 512 KiB target and documented continuation through nextOffset. The old single-request assertion measured scrolling through all 900 messages under the previous 6 MiB policy from #152979; it did not measure opening a chat. Match older requests to committed pagination steps, check contiguous coverage and bounded nonempty responses, and allow at most one staged successor. Assert that all three startup samples issue no older-history requests. Preserve the ordered transcript, initial-tail, identity, Home, avatar, and cache assertions. The real Gateway reproduces the old failure with eight requests for eight backscroll steps. Startup remains one reply with 59 messages and 260,813 history bytes. The updated file passes locally, as do type-aware/boundary lint, its test-type graph, formatting, full local check-changed, and independent P2 review. No production or dependency changes; security-fast's source-map-js advisory (#165918) is inherited. Testbox-congestion exception: the lease timed out after 15 minutes queued, before sync or execution. Use the authorized ready-PR fallback; three Linux real-Gateway runs and the complete owning UI e2e config remain unrun.
|
🦞👀 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 October 5, 2026, 11:45 PM ET / October 6, 2026, 03:45 UTC. ClawSweeper reviewWhat this changesUpdate the real-Gateway chat-loading test to verify bounded, contiguous older-history pages and prevent older-page requests during startup. Merge readiness✅ Ready for maintainer review This correction is still needed: current main retains the single-page assertion despite its smaller history-page contract. The introduced assertions preserve transcript completeness and startup guarantees; no actionable patch defect was found. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI loads a small conversation tail from the Gateway, then retrieves older messages as the reader scrolls backward. This browser test observes Gateway traffic and the resulting transcript to check completeness and loading budgets. flowchart TD
A[Synthetic conversation] --> B[Real Gateway]
B --> C[Initial conversation tail]
C --> D[Browser backscroll]
D --> E[Bounded older pages]
E --> F[Complete ordered transcript]
B --> G[Request and byte assertions]
F --> G
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +26. Total +26 across 1 file. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep the browser proof aligned with bounded pagination while retaining exact transcript order, small startup tails, and a single staged successor. Do we have a high-confidence way to reproduce the issue? Yes, source establishes the mismatch: the roughly 3.7 MB older-message fixture cannot fit the current 512 KiB ordinary-page target while main demands one request. The PR reports a matching real-Gateway failure; this review did not execute it. Is this the best way to solve the issue? Yes, replacing the obsolete request total with bounded-page and contiguous-coverage checks is a focused repair that retains the stronger ordered-transcript assertion. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 3b9c3e35de61. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged past an unrelated red. The only failing job was security-fast, and it fails on main and on every PR right now because of the new source-map-js advisory (GHSA, <1.2.2, transitive via postcss/css-tree/magicast), tracked in #165918. Every other job passed. This PR changes only the real-Gateway chat-loading e2e test, which doesn't touch dependencies. That test runs only in the hourly suite, so it was verified locally. |
815d4c3 (openclaw#165897) intentionally changed ordinary history responses to a 512 KiB target and documented continuation through nextOffset. The old single-request assertion measured scrolling through all 900 messages under the previous 6 MiB policy from openclaw#152979; it did not measure opening a chat. Match older requests to committed pagination steps, check contiguous coverage and bounded nonempty responses, and allow at most one staged successor. Assert that all three startup samples issue no older-history requests. Preserve the ordered transcript, initial-tail, identity, Home, avatar, and cache assertions. The real Gateway reproduces the old failure with eight requests for eight backscroll steps. Startup remains one reply with 59 messages and 260,813 history bytes. The updated file passes locally, as do type-aware/boundary lint, its test-type graph, formatting, full local check-changed, and independent P2 review. No production or dependency changes; security-fast's source-map-js advisory (openclaw#165918) is inherited. Testbox-congestion exception: the lease timed out after 15 minutes queued, before sync or execution. Use the authorized ready-PR fallback; three Linux real-Gateway runs and the complete owning UI e2e config remain unrun.
What Problem This Solves
Hourly 37405615172, job 112082623206 (
checks-ui-e2e-real-gateway (1/2)), fails because the loading proof expects one older-history request while deliberately backscrolling through all 900 fixture messages.#165897 (50f38c6) intentionally changed ordinary history responses to a 512 KiB target, documented in
docs/web/webchat.md. The old single-call assertion came from #152979's former 6 MiB policy. The observed eight requests match eight explicit pagination steps. Initial load and both narrow reloads still issue onechat.startupfor 59 messages / 260,813 history bytes, with no older-history requests. This is test-contract drift; production loading behavior is unchanged by this PR.The test now checks one response per committed pagination step, matching message-count growth, complete contiguous offsets, positive completed pages with message payloads bounded to 512 KiB, and at most one staged successor. It also explicitly rejects older-page fetching in all three startup samples. Existing ordered 1…900 history, initial-tail, identity, Home ordering, avatar, and cache checks remain intact. No waits, timeouts, or retries change.
Validation
check-changedpasses locally, including the UI-e2e type graph and all three dead-export scans.Known inherited CI failure:
security-fastis red on main and PRs because of the source-map-js advisory tracked in #165918. Dependencies are unchanged.Testbox-congestion exception: the lease timed out after 15 minutes queued, before sync or command execution. This ready PR uses the authorized fallback. Three Linux real-Gateway file runs and the complete owning UI e2e configuration remain unrun; full check-changed passed locally. This real-Gateway suite is hourly-only, so PR CI does not supply the missing repetitions.