Skip to content

improve(ui): keep chat activity summaries close to replies - #147612

Merged
roboclaw-bot merged 5 commits into
mainfrom
openclaw/padding-between-entries-looks-weird-suggest-better-with
Sep 14, 2026
Merged

roboclaw-bot merged 5 commits into
mainfrom
openclaw/padding-between-entries-looks-weird-suggest-better-with

Conversation

@roboclaw-bot

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

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Chat activity summaries look disconnected from their replies, and successive entries have excessive vertical space. Compact spacing also exposed scroll-position errors when jumping to a message or restoring a split dashboard view.

Why This Change Was Made

Use an 8px gap between run blocks and a 28px minimum gap between desktop entries. Footer rows grow naturally for metadata and touch controls instead of relying on fixed-height padding compensation.

Keep transcript geometry with the existing virtualizer. Its existing message-jump command temporarily requests real mounted-row measurements; normal browser overscan skipping resumes when the reader takes over. Hidden panes cannot replace valid row measurements or their saved end position with zero-sized geometry. The existing overscan limit and touch-history anchoring remain intact, without a second scrolling policy.

User Impact

Chat updates are easier to scan without shrinking text, avatars, or 44px touch targets. Message jumps, dashboard restore, reader takeover, and long-transcript streaming remain usable. Touch footers can exceed 28px when their contents require it.

Requested by @steipete. Team session.

Evidence

  • 255 coupled unit/browser tests passed, covering responsive layout, transcript lifecycle, end-follow, rendering, and scroll policy.
  • 31 bundled end-to-end tests passed across position-rail jumps, dashboard split/restore, scrolling, dock resizing, image remounts, all nine history-prepend variants (including active touch and momentum), and stream runtime budgets.
  • Controlled comparison: all three affected E2E cases passed with the original spacing, failed with the first compact candidate, and pass with the completed repair. Their assertions and timeouts were not relaxed.
  • Existing long-transcript load, rich streaming, composer-locality, bounded-tool-stream, and idle-budget checks pass. Eager row measurement is limited to programmatic message jumps; ordinary scrolling keeps its existing optimization.
  • Stylelint, targeted oxlint, UI type checking, formatting, and diff checks passed.
  • Fresh independent autoreview of the complete patch: scoped-clean; no actionable P0–P2 findings.
  • Inspected real Control UI screenshots use deterministic mock-Gateway data, matching viewports and content, with original spacing styles substituted for the before view. Final appearance was rechecked after the scroll repairs. No live provider or production Gateway was used.

Before

Chat entries before: excessive gaps around activity and replies

After

Chat entries after: activity grouped with replies and tighter entry spacing

Validation commands

node scripts/run-vitest.mjs run --config ui/vitest.config.ts ui/src/pages/chat/components/chat-transcript-controller.test.ts ui/src/pages/chat/components/chat-transcript-render.test.ts ui/src/pages/chat/components/chat-transcript-end-follow.browser.test.ts ui/src/pages/chat/chat-responsive.browser.test.ts ui/src/pages/chat/scroll.test.ts

node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/chat-position-rail.e2e.test.ts ui/src/e2e/board-split-transcript.e2e.test.ts ui/src/e2e/chat-scroll.e2e.test.ts ui/src/e2e/chat-scroll-dock.e2e.test.ts ui/src/e2e/chat-image-virtual-remount.e2e.test.ts ui/src/e2e/chat-stream-runtime-budgets.e2e.test.ts ui/src/e2e/chat-history-prepend-anchor.e2e.test.ts

pnpm tsgo:ui, changed-file stylelint/oxlint, oxfmt, and git diff --check.

No configuration, protocol, dependency, or changelog changes.

roboclaw-bot and others added 2 commits September 14, 2026 00:33
Use an 8px run-block gap and a 28px minimum desktop entry gap. Let footer rows grow for metadata and touch controls instead of compensating with fixed-height padding. Keep standalone activity and completed-work summaries attached to their reply.

Session: https://team.openclaw.ai/chat/roboclaw/dashboard/6944b82d-802e-4681-9f1e-5ae5237d4066

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

Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: ac7f8a0f-8bd2-4471-9dfe-a1f999ac0029
@clawsweeper

clawsweeper Bot commented Sep 14, 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.

@openclaw-barnacle openclaw-barnacle Bot added app: android App: android app: web-ui App: web-ui size: M maintainer Maintainer-authored PR labels Sep 14, 2026
Remove publication-only normalization so this PR contains only the reviewed chat spacing changes.

Co-authored-by: steipete <[email protected]>
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review September 14, 2026 00:38
@openclaw-barnacle openclaw-barnacle Bot added size: S and removed app: android App: android size: M labels Sep 14, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 14, 2026
@clawsweeper

clawsweeper Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 14, 2026, 12:10 AM ET / 04:10 UTC (Revision 3).

ClawSweeper review

What this changes

Tightens chat activity and reply spacing while preserving virtualized row measurements during message jumps and hidden-pane restoration.

Merge readiness

⛔ Blocked before merge - 2 items remain

This remains a useful, maintainer-requested improvement: current main retains the wider spacing, and no actionable defect was found in the introduced changes.

Priority: P3
Reviewed head: 5f4f9819de7b966953dd830d6733804496ea7ac3

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused improvement with convincing visual evidence, relevant reported regression coverage, and no identified blocking code defect.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after screenshots from the real Control UI with deterministic mock-Gateway content directly demonstrate the shared CSS spacing improvement. They do not independently prove scroll lifecycle behavior; the reported targeted E2E results supplement that evidence, and this bot-authored PR is exempt from the ordinary external-contributor runtime gate.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): Inspected before/after screenshots from the real Control UI with deterministic mock-Gateway content directly demonstrate the shared CSS spacing improvement. They do not independently prove scroll lifecycle behavior; the reported targeted E2E results supplement that evidence, and this bot-authored PR is exempt from the ordinary external-contributor runtime gate.
Evidence reviewed 8 items Pinned scope and review continuity: Reviewed the host-verified merge-base-to-head changes at 5f4f981. The prior completed review reported no findings. GitHub's comparison against the previous reviewed head confirms that the latest revision restores ordinary content skipping and adds a command-scoped measurement exception. The supplied test merge is stale and was not used to infer removals.
Current main still differs: Fetched main retains a 12px run-block gap, 50px turn gap, and fixed footer-height compensation; the requested compact layout is not already implemented there.
Latest release comparison: The v2026.9.4 stylesheet also retains the 12px/50px spacing. This PR's compact layout is not present in that release.
Findings None None.
Security None None.

How this fits together

The Control UI turns conversation history and live activity into virtualized chat rows. Shared styles determine their spacing, while the transcript controller measures rows and preserves the reader’s position.

flowchart TD
  A[Conversation history and activity] --> B[Chat row rendering]
  B --> C[Shared spacing styles]
  B --> D[Transcript virtualizer]
  E[Message jumps and reader input] --> D
  F[Pane visibility and row sizes] --> D
  C --> G[Visible conversation]
  D --> G
Loading

Before merge

  • Resolve merge risk (P1) - The required screenshot delivery in the originating team chat could not be verified from the supplied GitHub evidence.
  • Complete next step (P2) - Confirm that the inspected before/after screenshots also render in the originating team chat, as required by the repository's UI landing gate.
Agent review details

Security

None.

PR surface

Source +15, Tests +25. Total +40 across 8 files.

View PR surface stats
Area Files Added Removed Net
Source 6 49 34 +15
Tests 2 72 47 +25
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 8 121 81 +40

Review metrics

None.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Keep spacing and measurement adjustments within the existing transcript owner, preserving touch targets, reader takeover, and hidden-pane restoration.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Keep spacing and measurement adjustments within the existing transcript owner, preserving touch targets, reader takeover, and hidden-pane restoration.

Do we have a high-confidence way to reproduce the issue?

Not applicable to the spacing preference itself; the before/after images demonstrate the appearance change. Scroll regression checks are reported in the PR, but were not independently executed during this read-only review.

Is this the best way to solve the issue?

Yes. The patch adjusts shared spacing and reuses the existing virtualizer's cache and command lifecycle without introducing another scrolling policy or stored setting.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 62bcb04950fa.

Labels

Label justifications:

  • P3: This is a bounded chat-layout improvement with accompanying scroll-geometry safeguards and no demonstrated urgent user-facing outage.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): Inspected before/after screenshots from the real Control UI with deterministic mock-Gateway content directly demonstrate the shared CSS spacing improvement. They do not independently prove scroll lifecycle behavior; the reported targeted E2E results supplement that evidence, and this bot-authored PR is exempt from the ordinary external-contributor runtime gate.
  • proof: sufficient: Contributor real behavior proof is sufficient. Inspected before/after screenshots from the real Control UI with deterministic mock-Gateway content directly demonstrate the shared CSS spacing improvement. They do not independently prove scroll lifecycle behavior; the reported targeted E2E results supplement that evidence, and this bot-authored PR is exempt from the ordinary external-contributor runtime gate.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected before/after screenshots from the real Control UI with deterministic mock-Gateway content directly demonstrate the shared CSS spacing improvement. They do not independently prove scroll lifecycle behavior; the reported targeted E2E results supplement that evidence, and this bot-authored PR is exempt from the ordinary external-contributor runtime gate.

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)
  • vyctorbrzezowski: 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.

History

Review history (2 earlier review cycles)
  • reviewed 2026-09-14T00:43:40.387Z sha 9470047 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-14T03:18:05.824Z sha d09822b :: needs maintainer review before merge. :: none

Keep virtualized rows measurable instead of layering browser content skipping over the virtualizer. Retain valid row measurements while a panel is hidden and treat its scroll geometry as unavailable rather than a zero-sized end. Preserve message jumps, split-view restore, and existing touch targets with the compact spacing.

Validation: 255 coupled unit/browser tests and 22 bundled end-to-end tests pass, including the previously failing rail and dashboard flows plus long-transcript runtime budgets. Fresh independent review found no actionable P0-P2 findings.

Co-authored-by: steipete <[email protected]>
Preserve ordinary overscan layout skipping and active-touch history anchors. Project the existing message/index command state into a temporary row-measurement exception so programmatic jumps still land accurately. Reader takeover restores the normal optimized layout.

Validation: 255 coupled unit/browser tests and 31 bundled E2E tests pass, including all nine history-prepend variants, message jumps, dashboard restoration and runtime budgets. Fresh independent review found no actionable P0-P2 defect.

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

roboclaw-bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Collaborator Author

Exact-head CI 34804416349 succeeded for commit 5f4f981. The 255 local unit/browser checks and 31 bundled E2E checks also pass; fresh review found no actionable code defect.

The known remaining landing gate is originating-chat screenshot render verification (AGENTS.md:75; ClawSweeper revision 3). The GitHub before/after embeds have been inspected. The pair is present in the originating Team chat, and has now also been reposted there using the public image URLs inline.

I checked the persisted delivery message and attempted actual browser verification. Public chat navigation timed out; the configured local Control UI presented an authentication prompt, so I could not confirm the chat images were rendered. I did not create a new administrator browser pairing or waive the gate.

Native review is recorded as NEEDS DISCUSSION until authenticated confirmation that the before/after images render in that chat (or an explicit user waiver). No merge or archive was attempted.

@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

On September 14, 2026 at 06:38 UTC, the requester said "relax and land" directly in response to the originating-chat screenshot-render blocker. Applied as an explicit waiver of that destination verification only under AGENTS.md:75. No claim that chat rendering was independently verified; CI, code review, authorization, attribution and native merge safeguards remain required.

This resolves the delivery hold recorded in comment5659349204 and ClawSweeper revision3. The images remain posted in chat and embedded in this PR.

The required openclaw/ci-gate is SUCCESS for5f4f9819de7b966953dd830d6733804496ea7ac3; the complete check set has no pending/failed checks, and composition with current main705500c6fa08307a3c32b19535283ea0bccb483b is conflict-free.

@roboclaw-bot
roboclaw-bot merged commit fb8b68b into main Sep 14, 2026
133 of 134 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/padding-between-entries-looks-weird-suggest-better-with branch September 14, 2026 06:48
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

obviyus added a commit that referenced this pull request Sep 14, 2026
AI-assisted.

## What Problem This Solves
Main fails its own structural checks, so every open PR is red: `check-lint-core-2` (the sidebar session-ownership test helper is over the 700-line rule since #147610), the chat transcript controller test (over the 1,000-line rule since #147612), and `control-ui-performance` (startup JS gzip 362,012 B exceeds the 361,938 B limit after #147845, #147773 and #147883).

## Why This Change Was Made
These repairs belong on main, in one PR.

- Lint: the avatar cases move from `session-ownership.ts` into a sibling case file in the directory's existing pattern (610 lines remain). Assertions and registration are unchanged.
- Chat lint: the four deferred-message-reveal cases move into a sibling test file. Their assertions, names and shared setup/cleanup remain unchanged, and the canonical test list preserves their isolated runner.
- Budget: the smallest whole-KiB cap step, 353 → 354 KiB, with the baseline refreshed to the measured 362,012 B. Deferring the new workspace labels saved only 64 B and still failed at 361,952 B, so a reduction was not available; the immediate Home and diagnostic frames stay intact. Follows #147574 and #146526.

## User Impact
None. No product behavior or asset changes.

## Evidence
- Lint: the max-lines check fails on main and passes here; 426 sidebar tests pass.
- Chat lint: pinned main fails at 1,010 counted lines; the candidate merge passes the same lint rule. All 146 affected chat tests pass, including the four moved cases in the isolated runner. The local preflight and test-root partition checks pass.
- Budget: same-toolchain comparison, last passing source 361,718 B, main 362,016 B (+298 B), fresh main and this candidate both 362,012 B (0 B asset delta). `pnpm ui:check-performance:base <main>` fails before the policy refresh and passes afterward. 552 focused tests pass.

## Compatibility
Cap 353 → 354 KiB; baseline 362,012 B; the 512 B growth and 64 B variance allowances are unchanged.

## Consumers
The performance check and the build size report read the same policy; the sidebar test suite registers the moved cases from the new file, and both UI test runners retain isolated chat-test registration.

Co-authored-by: Ayaan Zaidi <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 15, 2026
…147612)

Keep chat activity summaries close to their replies with 8px run-block gaps and a 28px minimum desktop entry gap. Let metadata footers grow naturally while retaining 44px touch targets.

Preserve message-jump and hidden-pane scroll geometry through the existing virtualizer. Scope eager row measurement to programmatic message jumps, retaining ordinary overscan skipping and touch-history anchoring.

Validated with 255 unit/browser checks, 31 bundled end-to-end checks, and passing exact-head CI.

Co-authored-by: steipete <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 15, 2026
AI-assisted.

## What Problem This Solves
Main fails its own structural checks, so every open PR is red: `check-lint-core-2` (the sidebar session-ownership test helper is over the 700-line rule since openclaw#147610), the chat transcript controller test (over the 1,000-line rule since openclaw#147612), and `control-ui-performance` (startup JS gzip 362,012 B exceeds the 361,938 B limit after openclaw#147845, openclaw#147773 and openclaw#147883).

## Why This Change Was Made
These repairs belong on main, in one PR.

- Lint: the avatar cases move from `session-ownership.ts` into a sibling case file in the directory's existing pattern (610 lines remain). Assertions and registration are unchanged.
- Chat lint: the four deferred-message-reveal cases move into a sibling test file. Their assertions, names and shared setup/cleanup remain unchanged, and the canonical test list preserves their isolated runner.
- Budget: the smallest whole-KiB cap step, 353 → 354 KiB, with the baseline refreshed to the measured 362,012 B. Deferring the new workspace labels saved only 64 B and still failed at 361,952 B, so a reduction was not available; the immediate Home and diagnostic frames stay intact. Follows openclaw#147574 and openclaw#146526.

## User Impact
None. No product behavior or asset changes.

## Evidence
- Lint: the max-lines check fails on main and passes here; 426 sidebar tests pass.
- Chat lint: pinned main fails at 1,010 counted lines; the candidate merge passes the same lint rule. All 146 affected chat tests pass, including the four moved cases in the isolated runner. The local preflight and test-root partition checks pass.
- Budget: same-toolchain comparison, last passing source 361,718 B, main 362,016 B (+298 B), fresh main and this candidate both 362,012 B (0 B asset delta). `pnpm ui:check-performance:base <main>` fails before the policy refresh and passes afterward. 552 focused tests pass.

## Compatibility
Cap 353 → 354 KiB; baseline 362,012 B; the 512 B growth and 64 B variance allowances are unchanged.

## Consumers
The performance check and the build size report read the same policy; the sidebar test suite registers the moved cases from the new file, and both UI test runners retain isolated chat-test registration.

Co-authored-by: Ayaan Zaidi <[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 maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant