Skip to content

fix(control-ui): load earlier messages when chat is underfilled - #171529

Merged
roboclaw-bot merged 1 commit into
mainfrom
fix/chat-history-autofill
Oct 14, 2026
Merged

roboclaw-bot merged 1 commit into
mainfrom
fix/chat-history-autofill

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Collaborator

Related: #171009

What Problem This Solves

Fixes: opening a conversation can leave a mostly empty chat pane stuck on Show earlier, even though older messages are available.

User Impact

User impact: visible conversations automatically load earlier pages until the pane is filled or history ends, including empty pages and pages containing only hidden tool activity. No configuration or migration is required. Hidden panes and programmatic scroll placement still do not trigger pagination; failed loads still require reader input to retry.

Why This Change Was Made

Restore the underfilled-viewport bootstrap removed in #171009 without reverting its settled-position safeguards. The existing history owner serializes loads and stops nonadvancing cursors; its existing single-page staged prefetch remains unchanged. Full transcripts still wait for upward reader intent rather than fetching just because the boundary is within the prefetch margin.

Requested and regression reported by @steipete.

Work sessions

Evidence

  • The focused regression failed before the fix: a visible underfilled pane made zero history requests. The history pagination unit suite passes after the fix (27 tests).
  • Real Chromium / production Control UI bundle with a synthetic Gateway: empty, short, and hidden-activity pages fill without a gesture; consecutive sparse pages advance; loading remains visible while waiting; filling stops when scrollable. Cold-load anchoring, stale-geometry restoration, and reconnect/pending-message adoption are covered (15 browser tests across five files).
  • UI TypeScript check, scoped lint/format, docs MDX sanity, and git diff --check pass. Independent fresh review found no actionable P0–P2 findings. Broad suites run in PR CI.
  • The initial sibling run exposed an obsolete manual-only assertion added in fix(control-ui): stop paging older history during reload #171009; restored its automatic-loading contract and verified the unchanged geometry/receipt assertions. No expected-failure or baseline exemption was added.

CI qualification

Run 38494747057 is failed, not green. This PR was landed using the native inherited-failure exception for two unrelated baseline failures: the worker mock-export guard at worker-turn-launcher.lazy.test.ts:212, reproduced on unchanged main; and the existing terminal-upload readiness wait at terminal-panel-upload.test.ts:80 (retry and expired-retry cases). The terminal/component/app/test-helper/config/dependency input trees are identical between the tested merge and its main parent. An isolated main replay passes 8/8 terminal tests but does not prove the intermittent readiness issue fixed. Both were reported to the existing CI repair lane. Security-fast, UI E2E/performance, and other selected checks passed.

Before

Synthetic conversation after startup, waiting for a manual click:

Before: empty chat waiting on Show earlier

After

The same conversation loads its earlier messages automatically, without scrolling or clicking:

After: earlier conversation loaded automatically

Restore visible settled-pane bootstrap pagination while preserving hidden-pane, programmatic placement, cursor-progress, and error-stop guards.

Co-authored-by: steipete <[email protected]>
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review October 14, 2026 01:15
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui labels Oct 14, 2026
@clawsweeper

clawsweeper Bot commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper reviews are opt-in for maintainers. If a review is required, finish the work and validation first, then comment @clawsweeper review. Please avoid repeated requests while a review is queued or running; agents should not request reviews automatically.

@roboclaw-bot
roboclaw-bot enabled auto-merge (squash) October 14, 2026 01:19
@roboclaw-bot
roboclaw-bot disabled auto-merge October 14, 2026 01:31
@roboclaw-bot
roboclaw-bot merged commit b38587c into main Oct 14, 2026
158 of 163 checks passed
@roboclaw-bot
roboclaw-bot deleted the fix/chat-history-autofill branch October 14, 2026 03:25
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 14, 2026
…claw#171529)

Restore visible settled-pane bootstrap pagination while preserving hidden-pane, programmatic placement, cursor-progress, and error-stop guards.

Co-authored-by: steipete <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui docs Improvements or additions to documentation size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant