Repository navigation
refactor(ui): deslop chat pages - #161173
Merged
Merged
Conversation
Reuse chat command, composer, sidebar, media, and persistence owners; remove unread diagnostics and dead forwarding state. Preserve rendered output, RPC and storage contracts, streaming order, accessibility, and keyboard behavior.
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Contributor
Author
steipete
marked this pull request as ready for review
September 29, 2026 12:01
This was referenced Sep 29, 2026
steipete
added a commit
that referenced
this pull request
Sep 29, 2026
chat-attachment-controls.types.ts imports ChatAttachmentReadLifecycle from chat-attachment-reads.ts, and #161173 made chat-attachment-reads.ts import ChatAttachmentControlsProps back, so `pnpm check:madge-import-cycles` (check:architecture) fails on main for every PR. The reads module only needs readSignal, attachmentLimits and uploadConfig; declare that parameter type locally so the dependency runs one way. Type-only change. Proof: madge 0 cycles (was 1), runtime import cycles 0, pnpm tsgo:ui, CI oxlint on the file, chat-attachments + chat-attachment-inputs tests (29 passed), autoreview P2 clean.
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Sep 30, 2026
Reuse the existing chat command, composer, sidebar, media, voice, and persistence owners. Remove unread input-history diagnostics, unused workspace presentation state, and forwarding code while preserving rendered output, RPC and storage contracts, streaming order, accessibility, and keyboard behavior. The sweep removes 407 net production lines. Validate with the full UI suite, UI build, import-boundary tests, changed checks, independent review, and 31 byte-identical synthetic screenshot pairs. Preserve the complete reading coverage and test evidence in the PR.
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Sep 30, 2026
chat-attachment-controls.types.ts imports ChatAttachmentReadLifecycle from chat-attachment-reads.ts, and openclaw#161173 made chat-attachment-reads.ts import ChatAttachmentControlsProps back, so `pnpm check:madge-import-cycles` (check:architecture) fails on main for every PR. The reads module only needs readSignal, attachmentLimits and uploadConfig; declare that parameter type locally so the dependency runs one way. Type-only change. Proof: madge 0 cycles (was 1), runtime import cycles 0, pnpm tsgo:ui, CI oxlint on the file, chat-attachments + chat-attachment-inputs tests (29 passed), autoreview P2 clean.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.















What Problem This Solves
The requested chat-only sweep removes remaining duplicated plumbing and unused presentation state after the recent UI cleanup passes.
User Impact
No intended user-visible change. Rendering, translation keys and strings, Gateway request/response shapes, streaming order, storage keys, accessibility, and keyboard shortcuts remain unchanged. No migration or configuration change is required.
Why This Change Was Made
The complete 442-file production sweep removed 407 net production lines (+329/-736 across 41 production files). The post-merge type-cycle repair described below adds five lines back, leaving 402 net production lines removed. Campaign classification: BELOW-THRESHOLD-PR-READY. All production files over 200 lines are recorded in the coverage log below, sorted by original size. The recent merged chat changes since September 18 and the latest UI pages pass were examined first; existing cleanup was preserved.
Evidence
Pinned head:
8e244c00b8d9fcc0f6df2ee759fb898679186d9e; initial base:1470a9bb092f29cfb9d184e41f9aee3362aecf08.Blacksmith Testbox proof used verified source capsules and frozen dependencies. Full proof ran on lease
tbx_01m3nv9wxb7njet1ct31ktm5s5(run); final static checks usedtbx_01m3pc16hqht7t1md791g4jd73(run).node scripts/run-vitest.mjs run --config ui/vitest.config.ts src).pnpm ui:build: passed, 10.47 s; final export/controller follow-up build passed again in 12.92 s.pnpm test <file> --maxWorkers=1; the required native-bridge fixture migration also passed all four tests, 4.08 s.check-changed: passed, 636.01 s; eight selected test-type graphs, UI types, formatting, ratchets, i18n, all three dead-export scans, and lint.git diff --check: passed.The initial changed-check run correctly required shrinking the assertion baseline after removing a redundant assertion; the exact one-entry shrink is included. The next type run found one stale
valueLengthfield in the native-bridge test fixture; that caller now uses the reduced input contract, with its assertions unchanged. The only adjacent production edit removes two now-unused export modifiers in the settings owner; settings normalization and persisted keys/values remain unchanged. No other page or library implementation changed.The first screenshot run captured 26 identical pairs but three fixtures targeted the wrong presentation contracts: ordinary failed sends remain in the outbox, desktop Talk uses a different button label, and cross-origin SVG uses a compact attachment card. Corrected fixtures exercise
/steerdraft restoration, desktop Talk, and the intended SVG card; all five resulting pairs match. These were proof-fixture corrections, not product defects. The first managed-review attempt failed authentication without producing a verdict; the configured authenticated review route completed cleanly. Final gates also caught the unused setting exports and a side-effect-only constructor call. The exports are private and the page now explicitly registers its controller; the selected Testbox gates pass. No CI runs were dispatched or rerun.Final hosted CI and post-merge repair
Auto-squash merged this head as
3a9edfe4350f258fe0d8c677e93d61857935c63aat 2026-09-29 12:02:02 UTC, before the exact-head hosted run completed. CI run 36565461697 finished with 103 successful jobs, 19 skipped jobs, and two failed jobs:check-additional-runtime-topology-architectureand its aggregateopenclaw/ci-gate. All three UI test shards, all nine UI E2E shards, both real-Gateway UI E2E shards, the boundary checks, and build artifacts passed. No jobs were cancelled.The architecture failure was introduced here, not inherited: reusing
ChatAttachmentControlsPropsinchat-attachment-reads.tscreated a type-only cycle back throughChatAttachmentReadLifecycle.check-changedand the four boundary tests passed but did not catch this Madge contract. The coordinator repaired it directly on main in 77cbd9513ea8, restoring the local read-options shape and one-way dependency. The repair commit records zero Madge and runtime cycles, passing UI types and file lint, 29 passing attachment tests, and a clean P2 review. Both the merge and repair are verified ancestors of current main, and the repaired source was inspected. No duplicate fix PR was opened by this lane; the original CI run remains failed.All 31 uploaded image pairs were verified rendering in the PR body and linked comment. This browser verification completed after the automatic merge; it is not claimed as pre-merge verification. All lane Testbox leases are stopped or completed, including the final lease
tbx_01m3pc16hqht7t1md791g4jd73. No CI runs were dispatched or rerun.Fixes Found Along the Way
No separate product defect or flaky-test fix is claimed. The Google Live test previously manufactured an unreachable overflow state; its real lifetime-limit coverage is retained at the WebSocket boundary.
Required production-file coverage log (all 194 files over 200 lines)
Chat sweep coverage — lane l165
Base:
1470a9bb092f29cfb9d184e41f9aee3362aecf08. All 442 production-file entries were read. The 194 files over 200 lines are sorted by their original size below. Recent merged chat commit/name-only diffs since September 18 and the 55 chat files in the latest UI pages sweep were reviewed before editing. Untouched files over 150 lines were examined first. No other page or ui/src/lib files changed. One native-bridge test caller drops the retired input field; two unused setting export modifiers are removed at their adjacent owner. All remaining production changes are inside chat.ui/src/pages/chat/composer-persistence.tsui/src/pages/chat/components/chat-transcript-virtualizer-host.tsui/src/pages/chat/composer-dictation.tsui/src/pages/chat/chat-pane-history.tsui/src/pages/chat/components/chat-position-rail.tsui/src/pages/chat/components/chat-message-media.tsui/src/pages/chat/talk/gateway-relay.tsui/src/pages/chat/talk/session.tsui/src/pages/chat/components/chat-message-group.tsui/src/pages/chat/components/chat-detail-panel.tsui/src/pages/chat/chat-state-refresh.tsui/src/pages/chat/components/chat-composer.tsui/src/pages/chat/run-lifecycle.tsui/src/pages/chat/chat-send-delivery.tsui/src/pages/chat/chat-command-executor.tsui/src/pages/chat/components/chat-transcript-projection.tsui/src/pages/chat/components/chat-message-bubble.tsui/src/pages/chat/chat-state-events.tsui/src/pages/chat/components/chat-composer-controls.tsui/src/pages/chat/chat-pane-render.tsui/src/pages/chat/talk/webrtc.tsui/src/pages/chat/components/chat-question-card.tsui/src/pages/chat/chat-pane-board.tsui/src/pages/chat/components/chat-message-attachments.tsui/src/pages/chat/chat-pane-lifecycle.tsui/src/pages/chat/components/chat-message-images.tsui/src/pages/chat/talk/google-live.tsui/src/pages/chat/chat-outbox-owner.tsui/src/pages/chat/components/chat-thread-interactions.tsui/src/pages/chat/chat-page.tsui/src/pages/chat/components/chat-composer-queue.tsui/src/pages/chat/components/chat-async-question.tsui/src/pages/chat/chat-send-submit.tsui/src/pages/chat/components/chat-model-controls.tsui/src/pages/chat/tool-stream.tsui/src/pages/chat/chat-outbox-drain.tsui/src/pages/chat/route-loader.tsui/src/pages/chat/components/session-diff-panel.tsui/src/pages/chat/chat-pane-sharing.tsui/src/pages/chat/chat-composer-capability-host.tsui/src/pages/chat/components/chat-audio-player.tsui/src/pages/chat/session-prefetch.tsui/src/pages/chat/components/chat-composer-slash-menu.tsui/src/pages/chat/components/chat-sidebar-region.runtime.tsui/src/pages/chat/chat-pane-session-menu.tsui/src/pages/chat/components/chat-composer-plus-menu.tsui/src/pages/chat/chat-pane-context.tsui/src/pages/chat/chat-view.tsui/src/pages/chat/chat-pane-header.tsui/src/pages/chat/components/widget-card.tsui/src/pages/chat/history-merge.tsui/src/pages/chat/chat-state-page.tsui/src/pages/chat/components/chat-composer-view.tsui/src/pages/chat/chat-thread-build.tsui/src/pages/chat/chat-state-controller.tsui/src/pages/chat/chat-pane-base.tsui/src/pages/chat/talk/shared.tsui/src/pages/chat/chat-thread-items.tsui/src/pages/chat/chat-session.tsui/src/pages/chat/components/chat-session-workspace.tsui/src/pages/chat/stream-causal-boundary.tsui/src/pages/chat/chat-pane-session.tsui/src/pages/chat/chat-pane-retained-presentation.tsui/src/pages/chat/components/chat-tool-cards.tsui/src/pages/chat/chat-pane-active-resources.tsui/src/pages/chat/components/chat-sidebar-content.tsui/src/pages/chat/stream-reconciliation.tsui/src/pages/chat/components/chat-model-picker.tsui/src/pages/chat/chat-tool-activity-coalesce.tsui/src/pages/chat/chat-thread-grouping.tsui/src/pages/chat/components/chat-attachments.tsui/src/pages/chat/chat-pane-task-suggestions.tsui/src/pages/chat/chat-commands.tsui/src/pages/chat/components/chat-tool-content.tsui/src/pages/chat/chat-send-queue-state.tsui/src/pages/chat/chat-gateway.tsui/src/pages/chat/components/chat-message-text.tsui/src/pages/chat/components/chat-pane-header.tsui/src/pages/chat/chat-pane-session-controls.tsui/src/pages/chat/chat-thread.tsui/src/pages/chat/components/chat-composer-dom.tsui/src/pages/chat/chat-session-companion.tsui/src/pages/chat/chat-goals.tsui/src/pages/chat/chat-realtime.tsui/src/pages/chat/components/chat-ci-details.tsui/src/pages/chat/components/browser-tab-card.tsui/src/pages/chat/session-snapshot-store.tsui/src/pages/chat/chat-avatar.tsui/src/pages/chat/components/chat-composer-mention-menu.tsui/src/pages/chat/components/chat-header-session-menu.tsui/src/pages/chat/chat-history-hydration.tsui/src/pages/chat/chat-history-request.tsui/src/pages/chat/components/chat-message-attachment-availability.tsui/src/pages/chat/components/chat-transcript-offset-observer.tsui/src/pages/chat/chat-pane-session-observation.tsui/src/pages/chat/chat-pane-sharing-actions.tsui/src/pages/chat/talk/conversation.tsui/src/pages/chat/chat-pending-inputs.tsui/src/pages/chat/stream-segment-pruning.tsui/src/pages/chat/tool-stream-status.tsui/src/pages/chat/components/chat-composer-context.tsui/src/pages/chat/session-message-cache.tsui/src/pages/chat/components/chat-camera-capture.tsui/src/pages/chat/components/chat-transcript-message-index.tsui/src/pages/chat/chat-send-composer.tsui/src/pages/chat/components/chat-session-sharing.tsui/src/pages/chat/chat-history-stream.tsui/src/pages/chat/chat-pane-embedded-panels.tsui/src/pages/chat/talk/input.tsui/src/pages/chat/chat-pane-attachment-handoff.tsui/src/pages/chat/talk/transcript-owner.tsui/src/pages/chat/components/chat-session-workspace-rail.tsui/src/pages/chat/components/chat-pull-requests.tsui/src/pages/chat/chat-page-retained-sessions.tsui/src/pages/chat/scroll.tsui/src/pages/chat/components/chat-effort-picker.tsui/src/pages/chat/components/chat-sidebar-file-view.tsui/src/pages/chat/components/chat-task-suggestions.tsui/src/pages/chat/chat-history-state.tsui/src/pages/chat/chat-outbox-receipts.tsui/src/pages/chat/components/chat-selection-popup.tsui/src/pages/chat/components/chat-session-rail.tsui/src/pages/chat/chat-page-pane-render.tsui/src/pages/chat/chat-pane-session-creation.tsui/src/pages/chat/chat-pane-placement.tsui/src/pages/chat/components/session-diff-menus.tsui/src/pages/chat/chat-provider-review-controller.tsui/src/pages/chat/chat-history-subscription.tsui/src/pages/chat/chat-send-support.tsui/src/pages/chat/durable-composer-persistence.tsui/src/pages/chat/components/chat-github-publication.tsui/src/pages/chat/chat-history-actions.tsui/src/pages/chat/components/chat-comment-controller.tsui/src/pages/chat/chat-progress.tsui/src/pages/chat/chat-pane-layout-render.tsui/src/pages/chat/talk/webrtc-support.tsui/src/pages/chat/components/chat-composer-skill-menu.tsui/src/pages/chat/components/chat-attachment-file-icon.tsui/src/pages/chat/chat-pane-placement.runtime.tsui/src/pages/chat/components/chat-model-picker-options.tsui/src/pages/chat/chat-view-notices.tsui/src/pages/chat/sidebar-layout.tsui/src/pages/chat/talk/audio.tsui/src/pages/chat/components/session-discussion-panel.tsui/src/pages/chat/components/chat-model-account-control.tsui/src/pages/chat/components/chat-session-workspace-state.tsui/src/pages/chat/components/chat-model-picker-search.tsui/src/pages/chat/chat-send-actions.tsui/src/pages/chat/chat-pane-sidebar-layout.tsui/src/pages/chat/components/chat-message-stream.tsui/src/pages/chat/components/chat-transcript-geometry.tsui/src/pages/chat/components/chat-clawhub-card.tsui/src/pages/chat/chat-agent-run-grouping.tsui/src/pages/chat/components/chat-attachment-reads.tsui/src/pages/chat/components/chat-html-preview-element.tsui/src/pages/chat/chat-history.tsui/src/pages/chat/components/chat-message-image-loading.tsui/src/pages/chat/components/chat-transcript-feed.tsui/src/pages/chat/components/chat-composer-emoji.tsui/src/pages/chat/chat-pane-shared.tsui/src/pages/chat/components/chat-text-attachment.tsui/src/pages/chat/components/chat-media-source.tsui/src/pages/chat/split-layout.tsui/src/pages/chat/components/chat-video-player.tsui/src/pages/chat/chat-pane-side-panels.tsui/src/pages/chat/outbox-payloads.tsui/src/pages/chat/chat-queue.tsui/src/pages/chat/components/chat-message-media-markdown.tsui/src/pages/chat/components/chat-welcome.tsui/src/pages/chat/components/chat-composer-goal.tsui/src/pages/chat/components/chat-message-confirmation.tsui/src/pages/chat/components/chat-picker-overlay.tsui/src/pages/chat/chat-history-snapshot.tsui/src/pages/chat/chat-outbox-recovery.tsui/src/pages/chat/chat-composer-memory-fallback.tsui/src/pages/chat/components/chat-composer-types.tsui/src/pages/chat/components/chat-svg-attachment.tsui/src/pages/chat/chat-send-timing.tsui/src/pages/chat/chat-pane-session-panel-toggle.tsui/src/pages/chat/input-history.tsui/src/pages/chat/chat-page-navigation.tsui/src/pages/chat/talk/google-live-tools.tsui/src/pages/chat/components/chat-session-workspace-preview.tsui/src/pages/chat/components/file-editor-view.tsui/src/pages/chat/chat-tool-icon-controller.tsui/src/pages/chat/components/chat-message-timestamp.tsui/src/pages/chat/components/chat-attachment-card.tsui/src/pages/chat/chat-thread-inputs.tsui/src/pages/chat/chat-settings-patches.tsui/src/pages/chat/attachment-payload-store.tsui/src/pages/chat/components/chat-permission-picker.tsui/src/pages/chat/components/chat-voice-activity.tsui/src/pages/chat/components/chat-pane-placement.tsui/src/pages/chat/components/chat-transcript-session.tsChanged-test wall times on Testbox (one worker)
ui/src/pages/chat/chat-pane-attachment-handoff.test.tsui/src/pages/chat/chat-pane-panel-toolbar.test.tsui/src/pages/chat/chat-pane-parent-session.test.tsui/src/pages/chat/chat-pane-session-access.test.tsui/src/pages/chat/chat-pane-session-menu.test.tsui/src/pages/chat/chat-pane-terminal.test.tsui/src/pages/chat/chat-send.test.tsui/src/pages/chat/chat-state.test.tsui/src/pages/chat/chat-view.test.tsui/src/pages/chat/components/chat-audio-waveform.test.tsui/src/pages/chat/components/chat-header-session-menu.test.tsui/src/pages/chat/components/chat-pane-header.test.tsui/src/pages/chat/components/chat-session-workspace-rail.test.tsui/src/pages/chat/split-layout.test.tsui/src/pages/chat/talk/google-live.test.tsui/src/app/native-bridge.test.tsExact-head hosted UI test-step wall times: shard 1/3 342 s, shard 2/3 302 s, shard 3/3 248 s; all passed. These are shared shard costs, not individual file timings.
First 16 inspected, pixel-identical before/after pairs
Additional screenshot pairs: #161173 (comment)