Repository navigation
improve(ui): keep chat activity summaries close to replies - #147612
roboclaw-bot merged 5 commits into
Conversation
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
|
🦞👀 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. |
Remove publication-only normalization so this PR contains only the reviewed chat spacing changes. Co-authored-by: steipete <[email protected]>
|
Codex review: blocked before merge. Reviewed September 14, 2026, 12:10 AM ET / 04:10 UTC (Revision 3). ClawSweeper reviewWhat this changesTightens 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 Review scores
Verification
How this fits togetherThe 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
Before merge
Agent review detailsSecurityNone. PR surfaceSource +15, Tests +25. Total +40 across 8 files. View PR surface stats
Review metricsNone. Merge-risk optionsMaintainer options:
Technical reviewBest 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. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
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]>
|
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. |
|
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. |
|
Merged via squash.
|
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]>
…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]>
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]>
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
Before
After
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.tsnode 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.tspnpm tsgo:ui, changed-file stylelint/oxlint, oxfmt, andgit diff --check.No configuration, protocol, dependency, or changelog changes.