Skip to content

test(ui): verify bounded pages in chat loading proof - #165933

Merged
steipete merged 1 commit into
mainfrom
ci-fix/uir1-chat-loading-pages
Oct 6, 2026
Merged

steipete merged 1 commit into
mainfrom
ci-fix/uir1-chat-loading-pages

Conversation

@steipete

@steipete steipete commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

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 one chat.startup for 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

  • Before: the real-Gateway file reproduces the exact one-versus-eight failure (52.12 seconds).
  • After: the full file passes through the repository's headless real-Gateway harness (50.32 seconds); eight pages return 118 messages each for the first seven and 15 for the last, after the 59-message initial tail.
  • Type-aware lint, boundary lint, UI-e2e test types, and formatting pass.
  • Full check-changed passes locally, including the UI-e2e type graph and all three dead-export scans.
  • Direct-route P2 review: scoped-clean, no actionable findings.

Known inherited CI failure: security-fast is 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.

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.
@clawsweeper

clawsweeper Bot commented Oct 6, 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 enabled auto-merge (squash) October 6, 2026 03:44
@clawsweeper

clawsweeper Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 5, 2026, 11:45 PM ET / October 6, 2026, 03:45 UTC.

ClawSweeper review

What this changes

Update 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
Reviewed head: c48e8268e42972cb24b7874f084c631cb144f6ea

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused test correction preserves meaningful coverage and reports a matching real-Gateway before/after run.
Proof confidence 🌊 off-meta tidepool Not applicable: The supplied repository state identifies a MEMBER-authored test-only PR, so the external-contributor proof gate does not apply. The body reports a real browser/Gateway run exercising all 900 messages and the revised page assertions; Linux repetitions and the full configuration remain unrun. No stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The supplied repository state identifies a MEMBER-authored test-only PR, so the external-contributor proof gate does not apply. The body reports a real browser/Gateway run exercising all 900 messages and the revised page assertions; Linux repetitions and the full configuration remain unrun. No stored-data contract changes.
Evidence reviewed 8 items Pinned introduced change: The merge-base-to-head diff changes only test assertions and collected pagination measurements; it adds no production behavior, dependencies, waits, retries, or timeouts.
Correction remains absent from main: The fetched main version still asserts exactly one older-history request. The reviewed change has not already been incorporated.
Documented pagination contract: Ordinary history requests default to a 512 KiB target and continue through nextOffset. Larger indivisible messages or projected groups are exceptions; this fixture contains small individual messages.
Findings None None.
Security None None.

How this fits together

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

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +26. Total +26 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 34 8 +26
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 34 8 +26

Review metrics

None.

Technical review

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

Labels

Label changes:

  • add P2: This repairs a deterministic hourly browser-test contract mismatch without changing production behavior.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.

Label justifications:

  • P2: This repairs a deterministic hourly browser-test contract mismatch without changing production behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.

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)

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 a6d546d into main Oct 6, 2026
69 of 73 checks passed
@steipete

steipete commented Oct 6, 2026

Copy link
Copy Markdown
Contributor Author

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.

@steipete
steipete deleted the ci-fix/uir1-chat-loading-pages branch October 6, 2026 04:36
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 7, 2026
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant