Skip to content

perf(ui): reduce New Session payload and repeated settings reads - #136362

Merged
steipete merged 3 commits into
mainfrom
steipete/startup-runtime-ownership
Sep 2, 2026
Merged

steipete merged 3 commits into
mainfrom
steipete/startup-runtime-ownership

Conversation

@steipete

@steipete steipete commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

Related: earlier startup reduction. Builds on the landed authenticated-hello recovery owner.

What Problem This Solves

New Session downloads optional phone formatting and Chat-only presentation. Typing and streaming repeatedly hydrate browser settings, including credential storage, although rendering only needs display preferences. Another tab's persisted Gateway selector can influence those unscoped reads.

Pending-start content must remain styled before Chat loads: submitted Markdown/JSON, images/files, and the working indicator are genuine New Session content, not removable payload.

Why This Change Was Made

Reuse the application theme runtime as a live, token-free, mounted-Gateway preference owner, and carry prepared values into New Session and Chat. Publish agent state only when its existing connection lifecycle changes; retire obsolete project/cloud Tasks synchronously rather than after rendering.

Give optional phone formatting its own stable chunk. Share passive message/composer styles while keeping Chat workbench styles lazy. Ordered style-module imports replace CSS inlining, avoiding duplicate shared sheets. Preserve the current-main title-preparation/extracted-renderer, side-panel/workboard, and authenticated-hello ownership boundaries.

User Impact

Less initial JavaScript/CSS, no repeated settings/credential reads during typing/streaming, and live preferences that remain attached to the actual Gateway across tabs, switching and reconnect. Existing pending messages and Chat layouts retain their appearance.

This is a payload/hot-path improvement, not a universal latency speedup: the final cold-New median improves 9.55 ms, while cold Chat is 4.75 ms slower and warm modes remain close. No new configuration, dependencies, schema, persistence representation, compatibility path, timeout increase or budget relaxation.

Evidence

Current head: 5d0eeabd86c287fdd1ddc7abd2c4e52d280d8400, based on ad3268ecccbc7758878662b31adcd72475343d3e. Production commit 61652274f6cdc7a2c033794531160bc73a7098fc was fully built in an independent clean checkout and used for the measured/live pair below against 9ab092370d5ac819029a04d32c6df55b33c8d241. Later revisions incorporate newer main and test-only coverage; no further performance implementation change is claimed or hidden in those measurements. Hosted validation: exact-head CI. Native prepare/merge must verify its successful completion.

Final matched measurement

Six alternating baseline/candidate samples per route and cold/warm mode: 48 navigations, fresh cold contexts and warm reloads, 1440×1000 Chromium, service workers blocked, identical 120 synthetic sessions/40 messages, verified 50 ms HTTP and RPC delay, eight-second observation. No task-owned builds/tests ran concurrently. No browser errors; closed optional panels remained lazy. Composer time is the first frame with a visible, in-viewport, enabled textarea—not model latency or painted-pixel timing.

Initial payload Baseline requests / raw bytes Candidate requests / raw bytes
New JavaScript 35 / 3,190,060 34 / 3,066,712
New CSS 3 / 642,750 3 / 495,643
Chat JavaScript 44 / 4,117,422 43 / 3,994,392
Chat CSS 5 / 653,126 5 / 653,682

New saves 123,348 raw JS bytes and 147,107 raw CSS bytes. Chat saves 123,030 raw JS bytes, with 556 additional raw CSS bytes. Brotli New JS/CSS: 870,709/89,197 → 842,260/70,780 bytes. Chat: 1,113,009/91,484 → 1,084,689/94,058 bytes. Phone code is absent from initial route maps; lazy settings/channel formatting remains covered.

Usable composer Baseline median (range), ms Candidate median (range), ms
New cold 532.40 (524.2–572.2) 522.85 (505.4–531.9)
New warm 165.95 (161.1–174.1) 169.90 (168.3–196.5)
Chat cold 664.55 (658.9–684.0) 669.30 (639.8–696.5)
Chat warm 193.50 (190.0–275.2) 195.60 (191.8–217.7)

All samples and prior series are retained. The preceding corrected series had cold-New −7.95 ms/cold-Chat +12.5 ms. Two earlier series had cold-Chat +33.35/+22.5 ms under a flawed advertised RPC-delay fixture: a constructor returned another object, bypassing a subclass send override. HTTP delay was applied. The RPC fixture was fixed and independently measured at about 50–51 ms before both corrected series. Results are not discarded or pooled across setups. Network/CPU/source investigation did not establish a new serial CSS or preference-readiness gate; no speculative preload workaround was added.

Real behavior and visual proof

Fresh isolated real Gateways and a synthetic OpenAI-compatible provider ran the rebased production build. Passed: avatar rendering, one initial projects.list and environments.list, real PTY first-open/restoration, Ctrl+Backquote not reaching PTY input, session creation, visible streaming, explicit settlement, history after reload, and no false Gateway-change warning. Typing storage reads {}; streaming reads only the existing first-reply confetti key once—no settings/selector/token reads.

A second real flow passed cross-tab shortcut/system-default microphone/theme changes, specific fake-device selection within its tab, A→B→A preference isolation/restoration, and real WebSocket reconnect retaining the same owner, draft and preferences. Display snapshots exclude the token. No browser errors. Fake device IDs differ across tabs even without OpenClaw; specific-device cross-tab identity and physical recording are not claimed. No live WhatsApp action or operator state/service mutation.

The real-profile DevTools relay was unavailable. This is explicitly isolated Playwright against real owned Gateways, not real-profile MCP verification. Selected captures and full video contact sheets were inspected for synthetic-only content. Earlier media below remains labeled; refreshed live recording is in the verification comment.

Tests, review and integration

  • Full UI unit/browser lane before the mechanical renderer rebase: 877 files, 13,790 passed, one skipped.
  • Complete mocked E2E lane: 352 files, 1,540 passed, zero failed/skipped. Seven real-Gateway files are explicitly excluded by the existing mock-lane flag, not counted as passes.
  • Subsequent renderer/title integration: 97 unit cases and 44 browser cases, complete changed checks, canonical manifest generation, unchanged UI budgets and independent full build passed.
  • Final inset assertion: containing browser suite 21 passed, targeted changed checks and fresh P0-scoped review passed. The complete rebased candidate also passed a fresh two-chunk P0 review; this is not all-priority certification.
  • Architecture/import checks and whole-UI styles passed. The 16-case cold pending matrix covers desktop/mobile, light/dark, normal/reduced motion, Markdown/JSON, attachments, failure restoration and accepted Chat handoff. Moved-style multiset: 1,557 rules before/after, no missing/extra; browser navigation and emitted-asset deduplication checked.

Principal commands:

node scripts/run-vitest.mjs run --config ui/vitest.config.ts --configLoader runner --maxWorkers=4
OPENCLAW_UI_E2E_SKIP_REAL_GATEWAY=1 node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner --maxWorkers=4
node scripts/check-changed.mjs --staged
pnpm check:architecture
pnpm lint:ui:styles
pnpm ui:boot-manifest:gen
pnpm build

Benchmark/live drivers and all attempts are retained under .artifacts/startup-followup; they are proof artifacts, not new product interfaces.

Broader proof repaired incomplete preference fixtures, an Oklab-as-RGB test sampler, floating-Inbox stylesheet-order dependence, premature responsive-shell sampling, and synthetic catalog scrolling that bypassed reader takeover. Assertions remain strict; controlled failing-before/passing-after evidence and the failed full-suite attempts are retained. The final complete browser run is a separate clean invocation. An unused import found by changed checks was removed and the full gate replayed.

ClawSweeper response and native-inset proof: the reported inset regression was not reproduced in the exact reviewed bundle or baseline. Both retain desktop 50px 12px 6px and mobile 52px 8px 12px before/pending. CSSOM confirms shared styles precede the New override. Added the requested coverage, resolved the actual upstream conflict, and did not make an unnecessary production reorder. Both rank-up items are addressed.

CI also exposed a test-fixture configuration race: after rpcReq cleared its snapshot, real IO could pin a disk-only config before the admitted turn prepared, omitting the synthetic agent. Controlled original-order proof went from 313 passes/one failure to 314 passes; nine fixture siblings and 29 scoped checks passed. The identical helper fix then landed canonically in PR #136354. This branch reuses that helper and retains the deterministic regression only; the canonical-helper replay passed 146 tests in three files plus its changed checks. Production agent validation is unchanged.

An early head's security-fast failed downloading public pre-commit hooks before its key scan ran. The next attempt had 63 failed jobs with zero executed steps; its only executing-check failure was the fixture race above. Neither is a secret finding. The current exact-head CI must pass normally—no gate bypass or global runner-setting change.

Scope and line accounting

78 paths: production +7,384/−7,285 (net +99), tests/support +1,107/−451 (net +656), generated +13/−49 (net −36), docs +4. Most churn is stylesheet movement (CSS net +3). Remaining production growth supplies explicit token-free preference lifecycle/write/storage ownership, not a parallel cache or settings path. No changelog/release changes.

Earlier inspected before/after media

These captures are from the preceding b3a6fb2078f8 comparison, before the upstream naming-feature rebase. They demonstrate preserved presentation, not a redesign. The final rebased flows were also rerun and inspected.

New Session before

New Session after

Chat before

Chat after

attachment-3206421301.mp4

@steipete steipete self-assigned this Sep 2, 2026
@clawsweeper

clawsweeper Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: XL maintainer Maintainer-authored PR labels Sep 2, 2026
@steipete
steipete marked this pull request as ready for review September 2, 2026 14:31
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 2, 2026
@clawsweeper

clawsweeper Bot commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 2, 2026, 12:34 PM ET / 16:34 UTC.

ClawSweeper review

What this changes

This PR reduces New Session startup assets, splits Chat-only presentation into lazy modules, and replaces render-time settings reads with a token-free preference snapshot bound to the connected Gateway.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

Keep this PR open: the reviewed branch has a coherent Control UI ownership refactor with no supported blocking code finding, but it changes persisted-preference scoping and is maintainer-labeled; exact-head CI is still queued and an owner should confirm the documented upgrade semantic before landing.

Priority: P2
Reviewed head: 5d0eeabd86c287fdd1ddc7abd2c4e52d280d8400
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A substantial but coherent refactor with focused behavior coverage and detailed real-run evidence; exact-head CI and compatibility ownership confirmation remain before merge.
Proof confidence 🐚 platinum hermit (4/6) Not applicable: The repository state identifies this as a MEMBER-authored PR, so the external-contributor proof gate does not apply; the PR body nevertheless documents isolated real-Gateway browser runs for the changed preference and startup paths.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The repository state identifies this as a MEMBER-authored PR, so the external-contributor proof gate does not apply; the PR body nevertheless documents isolated real-Gateway browser runs for the changed preference and startup paths.
Evidence reviewed 6 items Preference owner and write path: The branch separates UiPreferences from credentials, reads preferences for the connected Gateway, and refreshes the bound owner after same-scope writes; the theme subscribes to gateway and storage changes before notifying New Session and Chat consumers.
Consumer propagation: New Session subscribes to the shared theme and uses its preference snapshot; Chat updates page settings from the same snapshot while retaining the connection token only in Chat state.
Focused regression coverage: The branch adds browser coverage for storage-free New/Chat rerenders and same-Gateway cross-tab preference updates, plus preference-scoping and pending-content coverage.
Findings None None.
Security None None.

How this fits together

The Control UI loads browser preferences while connecting to a Gateway, then supplies them to New Session and Chat composers. This change makes the theme runtime the mounted preference owner so rendering consumes a live snapshot instead of repeatedly reading browser storage.

flowchart LR
  A[Browser storage] --> B[Gateway-scoped preferences]
  C[Connected Gateway] --> B
  B --> D[Theme runtime]
  D --> E[New Session composer]
  D --> F[Chat composer]
  G[Cross-tab preference edit] --> B
Loading

Decision needed

Question Recommendation
Does the Control UI owner approve making the connected Gateway, rather than another tab's persisted selector, authoritative for the mounted tab's existing display preferences? Accept mounted-Gateway scoping: Treat the documented same-Gateway preference behavior as the upgrade contract once exact-head CI succeeds.

Why: This is an intentional compatibility-sensitive change to persisted browser preference resolution, and the PR carries the maintainer label.

Before merge

  • Resolve merge risk (P1) - Existing browser profiles will now resolve display preferences from the mounted Gateway rather than a persisted selector; that intentional upgrade semantic needs owner confirmation and successful exact-head CI before landing.
  • Complete next step (P2) - Wait for the queued exact-head CI to complete successfully, then obtain Control UI owner confirmation of the mounted-Gateway preference scope before merge.
Agent review details

Security

None.

PR surface

Source +63, Tests +656, Docs +4. Total +723 across 78 files.

View PR surface stats
Area Files Added Removed Net
Source 35 7397 7334 +63
Tests 41 1107 451 +656
Docs 2 4 0 +4
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 78 8508 7785 +723

Review metrics

Metric Value Why it matters
Production versus test delta production +7,384/-7,285 (net +99); tests/support +1,107/-451 (net +656); generated -36; docs +4 Most production churn is stylesheet relocation; the remaining growth implements the shared preference-owner lifecycle and needs the compatibility review above.

Merge-risk options

Maintainer options:

  1. Confirm scope, then validate exact head (recommended)
    Confirm the mounted-Gateway preference contract and wait for the current-head CI run to complete successfully before preparing a merge.
  2. Pause for a narrower compatibility design
    Keep the PR open if existing selector-driven behavior must remain authoritative after a tab is already connected.

Technical review

Best possible solution:

Retain one token-free, Gateway-scoped preference owner and land only after its documented scope behavior is accepted and the queued exact-head validation completes.

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

Not applicable as a defect report: this PR is a performance and ownership refactor, and its stated storage-read and cross-tab scenarios have focused branch coverage.

Is this the best way to solve the issue?

Yes, subject to the owner confirming the persisted-preference scope: a single mounted, token-free snapshot removes repeated consumer reads more cleanly than adding caches at each composer.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 1623683f478b.

Labels

Label justifications:

  • P2: This is a user-facing Control UI performance and preference-scope improvement without evidence of an urgent active regression.
  • merge-risk: 🚨 compatibility: The branch changes how existing persisted browser preferences are selected and refreshed across Gateway connections and tabs.
  • 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. Not applicable: The repository state identifies this as a MEMBER-authored PR, so the external-contributor proof gate does not apply; the PR body nevertheless documents isolated real-Gateway browser runs for the changed preference and startup paths.

Evidence

What I checked:

  • Preference owner and write path: The branch separates UiPreferences from credentials, reads preferences for the connected Gateway, and refreshes the bound owner after same-scope writes; the theme subscribes to gateway and storage changes before notifying New Session and Chat consumers. (ui/src/app/settings.ts:442, 5d0eeabd86c2)
  • Consumer propagation: New Session subscribes to the shared theme and uses its preference snapshot; Chat updates page settings from the same snapshot while retaining the connection token only in Chat state. (ui/src/pages/new-session/new-session-page.ts:179, 5d0eeabd86c2)
  • Focused regression coverage: The branch adds browser coverage for storage-free New/Chat rerenders and same-Gateway cross-tab preference updates, plus preference-scoping and pending-content coverage. (ui/src/e2e/settings-prefs-reconnect.e2e.test.ts:139, 5d0eeabd86c2)
  • Current-main comparison: The PR head is not an ancestor of current main. Comparing the PR base f1ae53b with current main found no changes in the reviewed preference, New Session, Chat, boot-manifest, gateway-test, or documentation paths, so current main has not independently absorbed this work. (1623683f478b)
  • Area history: History for the central preference/theme/New Session files shows Peter Steinberger carrying the recent Control UI startup, pending-send, and title-preparation work; the PR's production commit has the verified recorded parent ad3268e. (ui/src/app/settings.ts:442, fdac225c0c3d)
  • Codex boundary check: Direct sibling-source inspection found Codex's separate Rust protocol/runtime surface; this PR does not import or execute it, so its UI e2e filename does not establish a Codex dependency contract. (codex-rs/agent-identity/src/lib.rs:15, 5adb68a49933ae446bf11935662c83dba55a0804)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Let the queued exact-head checks complete successfully.
  • Confirm the documented mounted-Gateway preference scope for existing browser profiles.

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 (4 earlier review cycles)
  • reviewed 2026-09-02T14:45:12.851Z sha b3a6fb2 :: found issues before merge. :: [P1] Restore the New Session titlebar inset during pending creates
  • reviewed 2026-09-02T15:08:29.940Z sha 04be37f :: needs maintainer review before merge. :: none
  • reviewed 2026-09-02T15:24:22.295Z sha 04be37f :: needs maintainer review before merge. :: none
  • reviewed 2026-09-02T16:10:37.899Z sha 0a6efe4 :: needs maintainer review before merge. :: none

@steipete
steipete force-pushed the steipete/startup-runtime-ownership branch from b3a6fb2 to 04be37f Compare September 2, 2026 15:00
@steipete

steipete commented Sep 2, 2026

Copy link
Copy Markdown
Contributor Author

Addressed the review and rank-up items in head 04be37fba9bb01dc66284540eb5e4dff673ed153.

Pending titlebar inset: I checked the exact reviewed build b3a6fb2078f8a415ba2fa1d70caf38ec5b3aa76f and its e510b9fb42a4b0fcf516bcd2f19a898bed33fe70 baseline in real Chromium, with sessions.create held while the pending message renders. The claimed padding regression is not present in the served bundles:

Viewport Baseline before → pending Reviewed build before → pending
1440×1000 50px 12px 6px → unchanged 50px 12px 6px → unchanged
390×1000 52px 8px 12px → unchanged 52px 8px 12px → unchanged

The browser CSSOM puts the shared .chat-thread rule in control-ui-boot-shared-*.css, before .new-session-page__scroll in control-ui-boot-new-*.css, in both builds. The source-import ordering hypothesis did not match the generated/served stylesheet order. The rebased renderer was independently checked at both sizes with the same result. beginNativeWindowDragFromTopInset reads this preserved computed top padding.

I therefore did not reorder production CSS speculatively. I did add the requested coverage: the existing 16-case pending matrix now compares the scroll container's padding before submission and while the pending Chat classes are applied. This protects the titlebar drag band and side inset across viewport/theme/motion/content variants. The containing browser file passes all 21 tests; the targeted changed gate and fresh P0-scoped review also pass. Attached before/after desktop and pending mobile captures were inspected and contain only synthetic data.

Main conflict: rebased onto 9ab092370d5ac819029a04d32c6df55b33c8d241. Preserved the newly landed title-preparation feature and its extracted draft-view.ts; the already-reviewed prepared shortcut/microphone inputs now live in that renderer. No duplicate old rendering path remains. The focused integration passed 97 unit cases and 44 browser cases, the complete changed gate, canonical manifest generation, unchanged UI budgets, a fresh full-candidate review, and an independent full build at production commit 61652274f6cdc7a2c033794531160bc73a7098fc. The final child commit adds only the six-line inset test assertion.

The original head's security-fast failure was during public pre-commit/pre-commit-hooks environment initialization (git fetch origin --tags could not read a GitHub username), before its private-key hook executed—not a secret finding. The refreshed head must pass that check normally; no scanner or gate is bypassed. Exact-head CI and the final rebased measurement/live replay are being verified before native prepare/merge.

Pending inset baseline

Pending inset reviewed candidate

Pending inset mobile candidate

@clawsweeper clawsweeper Bot added 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. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 2, 2026
@steipete

steipete commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor Author

Verification and scope confirmation for current head 5d0eeabd86c287fdd1ddc7abd2c4e52d280d8400. The independently built/measured production pair is 61652274f6cdc7a2c033794531160bc73a7098fc against 9ab092370d5ac819029a04d32c6df55b33c8d241; subsequent revisions integrate newer main and test-only coverage, as qualified in the body.

Maintainer scope decision: the connected Gateway is intentionally authoritative for a mounted tab's display preferences. This is the accepted live Gateway-scoped owner refactor requested for this work, not a new unresolved product option. The persisted selector still chooses the initial connection before an owner binds; same-Gateway edits propagate across tabs, another Gateway's selector does not retarget an already connected view, and explicit scope reads stay explicit. Existing preference keys and serialized values are unchanged; no storage migration or new configuration is introduced.

The refreshed 48-navigation comparison is recorded in the updated PR body, with all earlier series retained: New cold 532.40 → 522.85 ms, New warm 165.95 → 169.90 ms, Chat cold 664.55 → 669.30 ms, Chat warm 193.50 → 195.60 ms. No browser errors; optional panels remain lazy. New saves 123,348 raw JS bytes +147,107 raw CSS bytes; Chat saves 123,030 raw JS bytes, with 556 more CSS bytes. This is a payload/hot-path win, not an across-the-board latency claim.

Fresh real-Gateway replay passed PTY first-open/restoration and shortcut isolation, session creation, partial streaming through explicit settlement, history after reload, and one initial project/environment lookup each. Typing reads no browser settings; streaming reads only the existing first-reply confetti key. Separate cross-tab shortcut/microphone/theme, A→B→A and actual WebSocket reconnect proof passed, retaining draft/preferences and excluding tokens from display snapshots. The preserved upstream naming disclosure is visible in the refreshed recording. All media here is inspected, synthetic-only, and recorded against isolated owned Gateways.

Validation includes the earlier complete 877-file/13,790-test UI suite and 352-file/1,540-test browser suite, followed by 97 unit/44 browser cases for the renderer integration and 21 browser cases for inset preservation. Complete changed checks, canonical boot generation, architecture/style checks, unchanged build budgets, the full independent build, and fresh scoped autoreviews passed. Exact commands, source qualifications, prior failures and proof limits are in the body and review response.

The Gateway fixture failure was reproduced in the original 19-file order (313 passes/one failure →314 passes) and independently reviewed. The canonical snapshot-publication fix landed in PR #136354; this branch reuses it and retains the deterministic regression only. The canonical-helper replay passed 146 tests plus changed checks, without changing production agent validation.

Land-ready: CI run33654494095 completed successfully on exact head 5d0eeabd86c287fdd1ddc7abd2c4e52d280d8400; the required openclaw/ci-gate is SUCCESS. GitHub reports CLEAN/MERGEABLE. Native review artifacts and scoped reviews cover the current candidate; preparation and merge use the repository wrapper with OPENCLAW_TESTBOX=1. The earlier failed attempt had 63 jobs with no executed steps and the now-repaired fixture failure; no runner settings or gates were weakened.

attachment-3078988656.mp4

@openclaw-barnacle openclaw-barnacle Bot added the gateway Gateway runtime label Sep 2, 2026
Keep phone formatting and transcript-only styles out of New Session startup. Bind token-free presentation preferences to the mounted Gateway, carry them through composer renders, and suppress unchanged agent publications. Reuse the canonical authenticated-hello recovery owner from #133789 and retire stale discovery tasks synchronously.

Proof: isolated full build and changed-file checks, focused preference/discovery tests, 93-state CSS parity, real Gateway PTY/create/stream/settle/history flow, and independent P0-scoped autoreview. The final broad suites and matched timing measurements remain in progress before publication.
Assert that the pending Chat classes preserve New Session scroll padding across the existing viewport, theme, and motion matrix. Browser CSSOM checks on the reviewed build and baseline confirm the shared stylesheet precedes New Session overrides; no production cascade change is needed.
Keep mutable testState agent entries in the pinned snapshot before real-IO readers or admitted runs can observe an RPC refresh. Extend the managed-worktree case with the observed interleaving, preserving agent validation and initial/follow-up cwd assertions. Controlled original-order proof fails before the helper repair and passes all 314 cases afterward.
@steipete
steipete force-pushed the steipete/startup-runtime-ownership branch from 0a6efe4 to 5d0eeab Compare September 2, 2026 16:22
@steipete
steipete merged commit feff169 into main Sep 2, 2026
235 of 236 checks passed
@steipete
steipete deleted the steipete/startup-runtime-ownership branch September 2, 2026 18:10
@steipete

steipete commented Sep 2, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 3, 2026
…nclaw#136362)

* perf(ui): streamline startup runtime ownership

Keep phone formatting and transcript-only styles out of New Session startup. Bind token-free presentation preferences to the mounted Gateway, carry them through composer renders, and suppress unchanged agent publications. Reuse the canonical authenticated-hello recovery owner from openclaw#133789 and retire stale discovery tasks synchronously.

Proof: isolated full build and changed-file checks, focused preference/discovery tests, 93-state CSS parity, real Gateway PTY/create/stream/settle/history flow, and independent P0-scoped autoreview. The final broad suites and matched timing measurements remain in progress before publication.

* test(ui): preserve pending session titlebar insets

Assert that the pending Chat classes preserve New Session scroll padding across the existing viewport, theme, and motion matrix. Browser CSSOM checks on the reviewed build and baseline confirm the shared stylesheet precedes New Session overrides; no production cascade change is needed.

* test(gateway): publish RPC fixture config before yielding

Keep mutable testState agent entries in the pinned snapshot before real-IO readers or admitted runs can observe an RPC refresh. Extend the managed-worktree case with the observed interleaving, preserving agent validation and initial/follow-up cwd assertions. Controlled original-order proof fails before the helper repair and passes all 314 cases afterward.
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 docs Improvements or additions to documentation gateway Gateway runtime maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XL 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