Repository navigation
chore(ui): move startup-adjacent modules and split lazy style/catalog boundaries - #144737
Conversation
f4ce43f to
210dee0
Compare
|
Codex review: blocked before merge. Reviewed September 14, 2026, 8:12 AM ET / 12:12 UTC (Revision 10). ClawSweeper reviewWhat this changesMoves Control UI styles, sidebar geometry, session URL helpers, and Dreaming translations into smaller modules consumed by their existing owners, and adopts a landed Docker test correction. Merge readiness⛔ Blocked before merge - 1 item remains Keep open: this remains a useful, maintainer-backed prerequisite for startup improvements. No actionable introduced defect was established. The previous stored-data concern is disproved, and the historical desktop CI failure does not establish a patch regression. Priority: P3 Review scores
Verification
How this fits togetherThe Control UI loads presentation code and English translations as users enter Chat, New Session, Automations, and Memory surfaces. These module boundaries determine startup payloads and the styles and labels available when each surface renders. flowchart TD
A[Page navigation] --> B[Existing page owners]
B --> C[Shared layout styles]
B --> D[Composer and session rail styles]
B --> E[Dreaming English registration]
C --> F[Rendered Control UI]
D --> F
E --> F
E --> G[Complete build-time catalog]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +78, Tests +47, Other +3. Total +128 across 43 files. View PR surface stats
Review metricsNone. Stored data modelPersistent data-model change detected: Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Keep presentation and translation loading with their existing consumers while preserving catalog order, layout parity, and unchanged startup budgets. Do we have a high-confidence way to reproduce the issue? Not applicable to the mechanical extraction; retained browser comparisons exercise its presentation contract, and no current source-backed defect was established. Is this the best way to solve the issue? Yes: extracting existing styles and catalog data into their consumers follows the established ownership pattern without adding competing runtime or storage behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against a7c6365bafae. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (9 earlier review cycles; latest 8 shown)
|
210dee0 to
8b2bd60
Compare
8b2bd60 to
aa7e700
Compare
aa7e700 to
e508540
Compare
|
@vyctorbrzezowski — coordination for the startup-performance prerequisite, not a competing implementation. The native-completion fix #147903 is blocked by the current UI startup budget: CI job measures 362,004 B gzip against 361,938 B on test merge I see your current #144737/#142383 stack and recent substantive work. Are you actively updating the mechanical base onto current main, and is there a current write reservation to respect? I can own current-main qualification and the landing path for this existing canonical prerequisite once the writer boundary is clear. I have not changed either branch, and I am not treating the older pinned measurements as proof for this current overage. No budget/tolerance increase or check waiver is proposed. |
Preserve contributor ancestry and reviewed style/catalog ownership. Include the qualified unchanged test fixture move for the core lint gate.
Integrate main while keeping canonical startup extraction ancestry. Preserve Settings memoryPage ownership and current chat footer spacing.
|
@clawsweeper re-review Please review exact head The current-main integration retains Settings ownership of Independent full/integration/format reviews and the final two-file review found no actionable findings. Required checks and 781 focused tests passed for the integration; paired production measured JS 355,959 B / unchanged 361,938 B limit and CSS 47,588 B / 51,200 B. Four settled geometry pairs matched. Original eight images were verified in both originating chat and GitHub; fresh integration images were also inspected. Failures and proof limits remain in the PR body. Please reassess the actual current head, without enabling automerge. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Revision 10 maintainer dispositionReviewed head: Revision 10 says there is no actionable introduced defect and explicitly disproves the stored-data concern. Its remaining data-model checkbox contradicts that technical assessment. I rechecked the exact head. Both English catalogs, the host catalog owner and all four consumers are byte-identical to the source below. The complete original Disposition: reject the automatic migration classification as inapplicable. Retain the complete bot review, including its contradictory checklist, and record this evidence in the native maintainer review/preparation artifacts. No bot markers, labels, protection rules or checks are altered. No further review or database test is requested for this unchanged-source classification. Required CI34840511238 remains binding. The original desktop failure stays recorded until successful required resulting-head CI; its completed non-reproduction diagnostics do not waive that gate. The branch is unchanged, and no completed test, build or screenshot proof was replayed. Original exact-source disposition, retainedStored-data compatibility classification for
|
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Adopt the landed assertion correction from #148129. The identical one-line repair in #148194 was closed as superseded; no plugin behavior is imported. (cherry picked from commit abbdd52) Co-authored-by: onlyysaurabh <[email protected]>
|
Merged via squash.
|
… boundaries (openclaw#144737) * chore(ui): move startup-adjacent modules and split lazy style/catalog boundaries * test(ui): drop superseded session helper relocation * test(scripts): check configurable ClawHub sweep spec Adopt the landed assertion correction from openclaw#148129. The identical one-line repair in openclaw#148194 was closed as superseded; no plugin behavior is imported. (cherry picked from commit c245159) Co-authored-by: onlyysaurabh <[email protected]> --------- Co-authored-by: Jason (Json) <[email protected]> Co-authored-by: onlyysaurabh <[email protected]>








What Problem This Solves
Control UI startup includes chat presentation styles and memory English copy that can load with their owning surfaces. This mechanical extraction is the prerequisite for #142383.
User Impact
Chat, New Session, Automations, Custodian, and Memory settings retain their layout and behavior. The side-panel header keeps its original zero left padding and no bottom border after direct Chat loading and navigation from New Session or Automations. Active voice keeps its full-width meter, and dictation retains its neutral state colors.
Why This Change Was Made
Moves chat styles, sidebar geometry, released-session URL helpers, and the memory English catalog into their existing owners. Consumers import the extracted styles and synchronously register English copy before use. The shared event constant retains one owner.
Rebased onto
ac59d5e09eb468dc23cf95e447608b57e71b52af. Inchat/side-panel.css, the resolution preserves the independentopenclaw-chat-detail-panelselector while leaving extracted layout rules in their destination. Inchat/split-view.css, the updated native titlebar and window-control rules move intact intostartup-layout.css; the superseded macOS-only rule is removed. Current history-loading input handling, plugin reload URLs, model availability, and file-panel scrolling are preserved.Evidence
e5085408fa7e37dfd33d3f049202916e02a634fc. Startup JavaScript: 349,011 B gzip / 356,316 B limit. Startup CSS: 45,109 B gzip / 51,200 B limit. Paired main CSS: 46,172 B, a 1,063 B reduction. No budget or baseline was changed.ui/src/app. A further 23 browser E2E tests passed in 3 files covering Talk start/stop, microphone lifetime, and dictation; the final run includes the live-button and dictation-color regressions.Risk and coverage
The side-panel P2 was a cascade inversion:
.side-panel__headerlived instartup-layout.css, emitted into the New Session boot stylesheet, while.rail-headerarrived later in the Chat boot stylesheet. The element uses both classes, so the general padding and border won.rail-header.cssnow owns the general rule followed by the side-panel variant. The production order remains shared → new → chat. In the generated Chat stylesheet, the general rule starts at offset 0 and the variant at 351; there is no later simple side-panel-header rule. No specificity increase or!importantwas added./chat12px/1px solid rgb(30, 32, 40)0px/0px none rgb(188, 188, 192)12px/1px solid rgb(30, 32, 40)0px/0px none rgb(188, 188, 192)/cron) → Chat12px/1px solid rgb(30, 32, 40)0px/0px none rgb(188, 188, 192)Source-server captures are separate: the previous direct Chat route already measured
0px/0px; New Session and Automations navigation reproduced12px/1px. All corrected source routes measure0px/0px. The production bundle therefore remains the decisive direct-entry proof.The second cascade regression affected active voice and dictation: the general button rule in
composer-surface.cssarrived after the state variants retained incomposer.css. Those variants now live intact after their base rule incomposer-surface.css, before the responsive rules. All selectors and declaration values are preserved.An isolated Chromium comparison covers both stylesheet orders at 1440px and 390px, at rest and hover. Every measured property now matches main. In the real production app, direct Chat, New Session → Chat, and Automations → Chat restore the live control from 32px to 67px (minimum 64px) around its 39px waveform; padding returns from
5pxto0px 14px, and the background returns from the Send fill to transparent. Dictation in those paths and directly on New Session restorescolor(srgb 0.737255 0.737255 0.752941 / 0.1)andrgb(244, 244, 245)instead of the red/white Send treatment. The light-theme dictation surface override also stays after its general surface rules. After clicking the transcript while dictation is active, its shadow now matches main:rgba(0, 0, 0, 0.06) 0px 0px 0px 1px, rgba(0, 0, 0, 0.06) 0px 4px 18px 0px. Two existing browser E2E flows gained assertions that failed before the repair on the actual width and text-color regressions.Shared-style consumers checked through source tracing and relevant browser/tests are
assistant-panel,styles/chat,chat-composer-view,chat-session-rail, Cronview,custodian-surface, New Sessiondraft-composer, andnew-session-page. Dreaming/Memory consumers are agent-memorydreaming,memory-panel,toggle-confirmation,view, and configmemory-dreaming,memory-memories,memory-overview,memory-page,memory; their synchronous registration and complete catalog verification pass.Browser evidence uses an isolated mock Gateway, not live provider or native-app execution. Native titlebar changes from main were preserved in source and exercised by applicable layout tests; no real native-window claim is made. The external review reported an inherited
agents-othersize failure (702 files / 700 limit). The rebased main already uses a 720-file limit and its graph-boundary check passes; this PR changes neither that limit nor the test groups. Hosted CI must evaluate the newly published head. The dependent #142383 needs its own rebase and validation; it is outside this update.Production build: authorized head vs corrected
Source server: authorized head vs corrected
Frozen main vs corrected
Voice and dictation: production before vs corrected
Light dictation: before vs corrected
Light dictation: main vs corrected
Inspected current-main integration screenshots and scoped qualification. All eight integration images render in both the originating chat and GitHub; both destinations were inspected and original hashes verified.
Current-main integration qualification
Signed branch commit
dcca3db50f3834748daf6121496590192698457fintegrates main8e6fe8e02ddb51bfec4e80071f0f2adcae4cf098, preserving the contributor ancestry. Main ownsmemoryPageinen-settings.ts; the extracted catalog owns onlydreaming. The extracted startup sheet retains main’s newer spacing and footer rules. Independent integration and final-format reviews found no actionable P0–P2 findings.Required checks passed across preserved-prefix and final-source continuation receipts, including all core-test type shards, UI/script typing, catalog ownership, export scans, lint and stylelint. Focused Memory/catalog and responsive/sidebar/browser checks passed on this tree. The paired production build measures 355,959 B gzip startup JavaScript against the unchanged 361,938 B limit; CSS is 47,588 B against the unchanged 51,200 B ceiling.
Fresh paired captures on the retained production builds confirm matching header/composer/sidebar geometry for direct Chat and New Session → Chat, at desktop and narrow widths. All eight synthetic captures were inspected. The first capture attempt sampled before the unchanged ResizeObserver/rAF autosize completed; that failure is retained. The corrected harness waits for observable autosize completion and keeps exact geometry comparisons. No product change or repeated build was needed for that capture fix. The original dual-destination screenshot proof remains above; no live-provider/native-window behavior is claimed. Resulting-head hosted review and CI remain required before merge.
Publication update: GitHub stack metadata had kept the pull-request head stale. The documented unstack operation preserved both PRs and branch SHAs; refreshing the same main base then restored the correct PR head. Normal CI events are admitted again.
The preceding signed head
b634a7f75b69b2e466c82a4f58b126ed6ca1e1e6adds only a two-file test-helper relocation reversal to the qualified production tree. New main already split the oversized sidebar fixture, so the earlier auxiliary helper move is no longer needed. Removing that move eliminates the import conflict and keeps this PR mechanical. The prospective merge is clean, both resulting test-helper files match pinned main exactly, and every production file matches the reviewed and builtdcca3dbsource. Independent delta review found no actionable P0–P2 findings; the pinned formatter and unchanged commit content guard passed. Prior test, build, and screenshot evidence remains source-bound, not replayed. Resulting-head review and CI remain required before merge.Stored-data compatibility classification for
b634a7f75b69Revision 7's only before-merge item classifies
ui/src/i18n/locales/en-dreaming.tsanden.tsas a persistent-data migration. Source inspection does not support that classification. This is a rejected finding, not a waiver of a migration requirement.dreamingsubtree is byte-for-byte identical to the one in base8e6fe8e02ddb51bfec4e80071f0f2adcae4cf098. SHA-256:f7bad4142a0332bc1f2f5ef125d3f47ba8bba075b9704de7f37f958f49836c6f. Replacing the head'sdreaming: {}anchor with that subtree reconstructs the complete baseen.tsbyte-for-byte.en.dreaming = enDreaming.dreaming. It changes an in-memory English translation map, not a persisted record. Thebackfill,repairCache, and completion/confirmation strings are unchanged labels for existing controls, not migration implementations..catalogdata, includes the new source in hashing, and retains the empty eager anchor to preserve source ordering. Settings continues to ownmemoryPage; no ownership or key rename is introduced.pnpm lint:ui:i18npassed, and the retained catalog/Memory test lane passed 222 tests. That lane includesui/src/i18n/lib/translate.test.ts,test/scripts/control-ui-i18n.test.ts, Settings Memory tests and Dreaming/view tests. Final-head production bytes are unchanged from this qualification; no test/build/screenshot was replayed for this disposition.No stored-data format changes, backfill, or update-time data mutation is introduced, so a database migration/upgrade exercise is not applicable to this PR. Existing native recovery package-upgrade proof belongs to #147903 and is not used as a substitute here. Required exact-head CI remains binding; this disposition grants no CI or review exemption.
Current CI prerequisite and retained desktop failure
The Docker assertion fix is already merged in #148129 at
abbdd5287afc59899721285bca79fdfd8e6d289d. Vincent closed #148194 as superseded because both fixes yield the same current-main test blob,ba8b88d88bcddf7731b8b3a32ae840dfb21cc42b. No dependency on #148118's broader behavior work remains.The new head
17cb918482de30fd4b7b873519b8fdcb99009563adopts only that one-line configurable-spec assertion. It retains the install, update and timeout assertions. Peter Steinberger's landed commit provenance and @onlyysaurabh's identical original repair are credited; @vyctorbrzezowski's UI ancestry is unchanged. Every UI production file remains byte-identical to the previously reviewedb634a7fhead. The correction composes with main's other test changes normally; no dependency, product code, performance limit or test deadline changed.Original CI34827560601 is retained as failed. The Docker test failure is addressed by the adopted landed fix. The desktop failure remains a required CI concern: after takeover, a reconnected viewer lost its upstream stream, leaving no canvas while expecting exactly 900x500. The original failure snapshot preceded cleanup.
Bounded diagnosis ran the original test on the unchanged failed test-merge source through real node and SSH carriers; both passed. A separate diagnostic exercised 20 alternating controller-takeover and portrait/landscape-resize cycles; both viewers retained exact framebuffers, one canvas and an open latest socket after every cycle. OS packages, Node, VNC and SSH binary hashes matched. The old served JavaScript bundle was not retained, so this is exact-source non-reproduction, not exact-artifact proof. Cleanup and lease termination are verified. No product fix, infrastructure classification, deadline change or waiver follows from these results. These completed diagnostics have not been replayed.
Hosted review revision 9 reports no actionable source or security findings and again withdraws the stored-data migration premise. Its generated compatibility checkbox remains contradicted by the exact catalog evidence above. Its desktop-risk item remains open until required resulting-head CI qualifies the change. Fresh exact-head review and normal PR CI are required before native landing; no stale-head merge or duplicate dispatcher is used.