Repository navigation
refactor(ui): deslop control UI - #164577
Conversation
|
🦞👀 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. |
|
Coverage log part 1/3; 775 production files over 200 lines total. Current file sizes at 74037f2. Tests, helpers/fixtures, E2E and generated translation memory are excluded; English source catalogs are included. Protected heartbeat/Automations files were read and left unchanged. Rebase disposition correction only: CI ownership correction: the channel status projection, Labs options, and three Talk modules are retained at base; their cleanup was deferred because the shared assertion-safety baseline is owned by open PR #164320. The independent sidebar build-label simplification removes 18 production lines; quota-summary types are private and an unused composer type re-export was removed. Stores and API behavior are unchanged. File-by-file READ coverage (1/3)
|
|
Coverage log part 2/3; 775 production files over 200 lines total. Current file sizes at 74037f2. Tests, helpers/fixtures, E2E and generated translation memory are excluded; English source catalogs are included. Protected heartbeat/Automations files were read and left unchanged. Rebase disposition correction only: File-by-file READ coverage (2/3)
|
|
Codex review: blocked before merge. Reviewed October 3, 2026, 11:42 PM ET / October 4, 2026, 03:42 UTC (Revision 9). ClawSweeper reviewWhat this changesThe branch simplifies Control UI rendering and shared styles, removes unused internal options, and prevents retired channel setup wizards from starting WhatsApp pairing after awaited cleanup. Merge readiness⛔ Blocked before merge - 4 items remain The work remains distinct from the merged cleanup. The previously reported spinner assertion defect still applies to the verified merge result; the newer visual evidence and preserved router recovery resolve the other prior review concerns. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI turns Gateway snapshots and events into browser pages, chat transcripts, and side panels. Its controllers also translate user actions into scoped Gateway requests. flowchart LR
A[Gateway snapshots and events] --> B[UI state owners]
C[User interactions] --> B
B --> D[Current context checks]
D --> E[Page and panel rendering]
D --> F[Gateway requests]
E --> G[Visible browser UI]
Before merge
Findings
Agent review detailsSecurityNone. PR surfacePR surface statistics unavailable: the file list is incomplete. Review metricsNone. Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Keep the canonical UI-owner consolidation and align browser animation expectations with the shared spinner while preserving their behavioral coverage. Do we have a high-confidence way to reproduce the issue? Yes: the two browser suites directly compare computed animation names with identifiers removed by the introduced CSS. This is source-proven, including in the verified merge result; the suites were not executed during this read-only review. Is this the best way to solve the issue? Yes, the owner consolidation is a maintainable direction; the remaining narrow repair is to update the animation expectations without weakening running, paused, or reduced-motion checks. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against d0c59630c5a6. LabelsLabel changes: No label changes. Label justifications:
EvidenceAcceptance criteria:
What I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (8 earlier review cycles)
|
|
Coverage log part 3/3; 775 production files over 200 lines total. Current file sizes at 74037f2. Tests, helpers/fixtures, E2E and generated translation memory are excluded; English source catalogs are included. Protected heartbeat/Automations files were read and left unchanged. Rebase disposition correction only: File-by-file READ coverage (3/3)
|
Landing-only pixel investigation: gate remains blockedReviewed source/head: The original candidate capture had 138/150 identical pairs. Replaying the original base with the identical fixture bytes passed all seven selected browser scenarios, but only 31/52 screenshots matched its own saved images. A second complete candidate capture passed all 32 browser scenarios and yielded 134/150 identical pairs. No tolerance, masks, cropping substitutions, or baseline changes were used in either exact RGBA comparison. Five complete original Chat failures reproduce byte-for-byte at the unchanged base and match the candidate. The plugin control reproduces candidate bytes at ten of the original eleven differing coordinates. All nine original failing element screenshots have pixel-identical corresponding full-page screenshots; the whole difference is also present between an element screenshot and the matching rectangle of its own full-page screenshot, within one revision. Both previously unresolved Markdown full-page toolbar differences disappeared in the second candidate capture without source changes.
Source attribution
These observations establish capture variability and do not establish a responsible production change to revert. They also do not waive the 150/150 gate. No speculative production reverts were made. Per the requested sequence, conflict-only rebase, leased push, auto-merge, and admin merge have not been performed. Auto-merge remains disabled; there is no merge SHA. Blacksmith lease Third and final passA proof-only helper captured each Chat/panel page once and derived its element image from the exact element rectangle of that same frame, following the existing screenshot owner's PNG-cropping mechanism. Dimensions and unchanged bounds were asserted; there was no resizing, pixel substitution, tolerance, masking, or baseline edit. All 32 browser scenarios passed. Exact comparison against the original references still failed: 130/150 identical, 20 changed, none missing or extra. All 150 original reference RGBA hashes are unchanged across every comparison. This confirms the saved references remain unsuitable for a consistent single-frame capture: several saved element images disagree with their own saved full-page rectangle. The third run also captured the narrow Communications page at a different scroll position; no production source changed between these runs, and that capture-settling issue is not resolved. The three capture passes are exhausted. Production remains unchanged at 785 net lines removed; no rebase, force-push, auto-merge request, or merge was submitted. Completing the literal original-reference gate remains blocked. |
Consolidate sidebar presentation, usage windows, and shared styles; remove unused presentation options and single-use forwarding layers. Preserve stores, active API requests, and i18n contracts. Fence channel wizard completion after awaited cleanup so retired wizards cannot start WhatsApp pairing.
|
Paired Control UI proof for All 150 targets passed the same-environment B1–H1–B2–H2 comparison: 146 match exactly in both pairings, and four match exactly in one pairing. No persistent visual signal and no visual reverts. The complete per-target table is embedded in the PR body. These inspected before/after sheets contain only synthetic Gateway fixtures. Original saved captures and hashes were left unchanged. |
74037f2 to
643d6b9
Compare
Qualified inherited non-security CI failureCandidate: The sole root failure in CI run 37174543428 is This failure predates the PR and occurs before its source is examined:
On the exact PR head, Proceeding under the authorized inherited non-security failure exception, with the squash merge pinned to the API head SHA. No security check is waived, no CI result is described as green, and no main repair or CI rerun is added by this PR. |
Use canonical sidebar definitions and simplify transcript indexing, Talk camera ownership, view adapters, cost aggregation, plugin projections, and shared styles while preserving visible behavior, i18n, stored data, and active API contracts. Prevent a retired Channels wizard from starting WhatsApp pairing after awaited cleanup by rechecking its wizard and context owners. Validated with paired B-H-B-H captures for 150 targets, focused tests, UI types, i18n, zero-cycle checks, and independent review. Landed with the documented inherited non-security CI exception for the main-parent mock-baseline pipe-limit failure.
Post-merge verification and repair dispositionMerged as The full post-merge run 37178116448 exposed three stale UI test contracts attributable to this cleanup: two browser suites named retired animation keyframes, and the new MCP cursor fixture supplied the old fourth boolean argument. Main received the fixes concurrently in Verification on main revision
Other failures in that exact post-merge run are listed below for the coordinator. The named nonprotected tests and owners are unchanged across this UI-only merge; this is causal scope evidence, not a claim that a separate parent CI run was observed failing. The protected Automation failure is reported from its log only, without an owner investigation or causal conclusion. No unrelated production repairs or CI reruns were made here.
The post-merge run remains red; it is not represented as all-green proof. The attributable UI failures have passing focused verification on main, and no duplicate follow-up PR was opened. |






What Problem This Solves
The Control UI retains parallel view projections, unused options, and forwarding layers after earlier cleanup passes. This batch removes those indirections while preserving the visible UI and its existing state owners.
User Impact
Translation keys and strings, persisted data, and active API behavior remain unchanged. Paired browser captures accept all 150 targets. The batch also fixes a Channels wizard race that could start WhatsApp pairing after the wizard was closed, replaced, disconnected, or lost its context during awaited cleanup.
Why This Change Was Made
Fixes found along the way
Wizard completion now rechecks the existing wizard and context identities after each await before handing off to WhatsApp pairing. Its six-case regression fails five stale-owner cases on the original code, preserves the active-owner control, and passes all six with the fix.
Evidence
643d6b979c6bf535f4f312663a803e99a1378fd6. Paired base:2ed30d46d2b77028d1f92a8b41aadd639d77a97c.pnpm test ui/src/pages/channels/wizard-host.test.ts --maxWorkers=1: six cases passed; 3.18 seconds wall time on the Linux CI-class runner (1.53 seconds Vitest total). Original-defect red/green proof is retained above.Paired visual proof
150/150 accepted: 146 exact in both pairings, four exact in one pairing; zero persistent visual signals. The saved reference images and hashes were not changed or used as the comparison baseline.
B-B and H-H measure each revision's own repeated-capture variation. N is their union; S1 is B1 versus H1 and S2 is B2 versus H2. Acceptance requires an exact pairing or every differing pixel in both pairings to lie in N. The implementation uses strict coordinate containment, with no fixed tolerance or regional allowance. All targets in this final run have at least one exact pairing. Dimensions, inventory completeness, duplicate names, and extra captures are also checked.
Inspected synthetic before/after images: paired screenshots.
All 150 paired targets and pixel counts
Qualified inherited non-security CI failure
Candidate:
643d6b979c6bf535f4f312663a803e99a1378fd6.The sole root failure in CI run 37174543428 is
checks-fast-baseline-ratchets:scripts/check-test-mock-exports.mtsexits withspawnSync git ENOBUFS. Its checkout log identifies mergecc618536, combining this PR head with main parentd0c59630c5a6eb3e63dcae17e69fa0faf20f7f7c. The preceding line-cap, assertion-safety, database-worker, and timeout-race ratchets passed; fail-fast cancelled the remaining lanes. Those cancellations are not passing CI evidence.This failure predates the PR and occurs before its source is examined:
433885156cff9d8f16a38360c13b2551ab0c221f, failed with the identical command andspawnSync git ENOBUFSat 03:31 UTC, before this PR's 03:39 failure. This is historical evidence at that named head; the unrelated PR has since advanced.config/test-mock-exports-baseline.txtis 1,675,312 bytes. ItsreadGitTextimplementation readsgit showthrough a pipe without specifyingmaxBuffer, exceeding Node's 1,048,576-byte default. Loading this base ledger precedes scanning the candidate's sources.ENOBUFS. This is a boundary reproduction, not a claimed rerun of the full CI job.scripts/lib/shrink-ratchet.mts, or the mock-export ledger. Main already contains the independent repair 06131c40d09, which reads large baseline blobs without pipe limits.On the exact PR head,
security-fast,openclaw/security-sensitive-review, dependency review, and the review check all passed. The paired 150-target visual proof, affected tests, UI types, i18n, and both zero-cycle checks passed on Crabbox, as recorded in the body.Proceeding under the authorized inherited non-security failure exception, with the squash merge pinned to the API head SHA. No security check is waived, no CI result is described as green, and no main repair or CI rerun is added by this PR.