Skip to content

fix(ui): existing chats appear empty when recent activity is hidden - #170731

Merged
roboclaw-bot merged 3 commits into
mainfrom
openclaw/amber-crayfish
Oct 13, 2026
Merged

roboclaw-bot merged 3 commits into
mainfrom
openclaw/amber-crayfish

Conversation

@roboclaw-bot

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

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Fixes: an existing conversation shows the new-chat welcome screen when its latest history page contains no visible messages, including hidden tool activity.

User Impact

User impact: existing chats automatically load earlier messages instead of appearing empty. New chats and search no-match behavior stay unchanged. No migration or settings change is required.

Why This Change Was Made

Keep the transcript mounted while older history remains so the existing automatic loader can attach to its viewport and follow the returned pagination cursor.

Evidence

  • Reproduced in the production-bundled Control UI with a mocked Gateway: both empty and hidden-tool recent pages made no older-history request before the fix.
  • Three browser regressions pass: empty-page pagination, 80 hidden tool results in a short viewport, and a genuinely empty conversation. They verify consecutive returned offsets and visible older messages without user input. After the test-fixture typing correction: 2.76 seconds for the test file; 37.51 seconds including the UI build.
  • 191 existing chat/history/rendering tests pass; UI typecheck, targeted lint, formatting, and diff checks pass.
  • CI caught two E2E fixture type errors (incorrect selector field and un-narrowed request parameters); corrected both and verified the E2E test-type graph locally.
  • Independent review: no actionable P0–P2 findings.
  • Inspected before/after screenshots from the bundled Control UI with synthetic messages:

Before

Existing chat incorrectly shows the welcome screen

After

Earlier conversation loads automatically

Reported and requested by @steipete.

Worked on by

Work sessions


View the OpenClaw team session

roboclaw-bot and others added 2 commits October 13, 2026 05:50
Keep incomplete empty transcript windows on the virtualized rendering path so history bootstrap can attach and load earlier messages. Cover empty and hidden-tool pages in the bundled browser flow.

Co-authored-by: steipete <[email protected]>
Worked on by:
- @steipete

Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: fb32a5d9-1f9e-494f-b7f3-b0b7d8e0f048
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: S labels Oct 13, 2026
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review October 13, 2026 06:36
@clawsweeper

clawsweeper Bot commented Oct 13, 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 13, 2026 06:41
@roboclaw-bot
roboclaw-bot disabled auto-merge October 13, 2026 06:43
@roboclaw-bot
roboclaw-bot merged commit a6a8754 into main Oct 13, 2026
85 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/amber-crayfish branch October 13, 2026 06:58
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

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

* fix(ui): load older history before showing chat welcome

Keep incomplete empty transcript windows on the virtualized rendering path so history bootstrap can attach and load earlier messages. Cover empty and hidden-tool pages in the bundled browser flow.

Co-authored-by: steipete <[email protected]>

* fix(ui): existing chats appear empty when recent activity is hidden

Worked on by:
- @steipete

Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: fb32a5d9-1f9e-494f-b7f3-b0b7d8e0f048

* test(ui): type empty history fixture requests correctly

Co-authored-by: steipete <[email protected]>

---------

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