Skip to content

fix(ui): keep chat responsive while tool renderers load - #201971

Open
vincentkoc wants to merge 45 commits into
mainfrom
fix/control-ui-delay-path
Open

vincentkoc wants to merge 45 commits into
mainfrom
fix/control-ui-delay-path

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Chat startup can repeat initial-history work, wait for optional tool presentation and publish accepted history before its session descriptor is reconciled. Early pane admission also exposes extra rendering and layout work.

User Impact

The correction keeps history and session state coherent and retains live tool output while optional renderers load. Performance still fails the required gate; this PR is not ready to land.

Why This Change Was Made

The change preserves early history/live-output ownership, keeps optional rendering within row boundaries, avoids detached row measurements, and publishes accepted history through its captured pane owner. Optional metadata retains its existing refresh flow. No configuration, schema or protocol change is added.

UI runtime delta against refreshed main 64d84290: +598/-596, net+2. Tests and test support: +2872/-606. Profiling support: +419/-30; generated boot manifest: +20/-12, separate from runtime. The captured publication boundary preserves connection/session ownership and reconciliation failure semantics without moving page policy into the generic history loader.

Evidence

Performance FAIL: 21/28 adverse cells, 1 STOP. This PR is not ready to merge.

Signed local candidate: 7f70cfa0a77b32c5f15adbbf443741ca530f3411; tree 47a5eb6bca5cb1fa32c5f87a36741ae244b86488. Native conflict resolution used frozen main 64d84290c4c7b4100d01faaca23433b42a918708. Published head remains fbb33335d3c6c2a08ccac813306d26359ce92ff3.

The refresh exposed one integration failure: a new group-reorder callback still referenced the session notification helper replaced by this PR. The compiler and real browser reproduced it. The callback now uses the existing session publication owner, preserving row invalidation for pending reorder and readiness-only notifications separately.

379 targeted tests across 21 files pass, including both group-reorder scenarios and New Session entry. Fresh isolated dependency qualification, canonical boot-manifest generation, UI build, UI typecheck and targeted lint pass. The committed manifest is the exact generated output used by that build. Independently reviewed conflict resolutions preserve command-catalog delivery, retained sidebar rows and scroll-to-latest behavior.

The complete performance run retained all24 arms /48 observations, including8 separate A/A observations. All30 archived members, source pins, independent UI tree/index hashes and native settlement were verified. Median and linear (n-1)*.95 p95; zero adverse cells required, inclusive20% STOP; no exclusions, adjustments or A/A pooling. Millisecond values below except unitless cls.

Phase Metric Median baseline → candidate Change p95 baseline → candidate Change
cold firstPaintedRowsMs 686 → 708 +3.21% 728.8 → 730.2 +0.19%
cold firstDetailsPaintMs 942 → 966 +2.55% 990.6 → 1124 +13.47%
cold fcpMs 36 → 42 +16.67% 46.2 → 62.2 +34.63%
cold helloPublishedMs 190.3 → 195.3 +2.63% 207.54 → 243.42 +17.29%
cold helloHandledMs 196.55 → 202.35 +2.95% 214.48 → 250.78 +16.92%
cold loafBlockingMs 143.2 → 161.55 +12.81% 222.59 → 189.845 -14.71%
cold cls 0.0033872915 → 0.0039606118 +16.93% 0.004658629 → 0.00403804228 -13.32%
warm firstPaintedRowsMs 530 → 546 +3.02% 859 → 635.4 -26.03%
warm firstDetailsPaintMs 530 → 546 +3.02% 741.4 → 621.2 -16.21%
warm fcpMs 530 → 546 +3.02% 570.2 → 621.2 +8.94%
warm helloPublishedMs 487.35 → 539.5 +10.70% 565.33 → 610.435 +7.98%
warm helloHandledMs 507.4 → 553.85 +9.15% 585.565 → 632.72 +8.05%
warm loafBlockingMs 88.5 → 94.25 +6.50% 184.52 → 166.785 -9.61%
warm cls 0 → 0 0% 0 → 0 0%

The STOP is cold FCP p95:46.2ms →62.2ms (+34.63%). Warm hello publication median also regresses487.35ms →539.5ms (+10.70%). The asset report additionally exceeds its total CSS gzip limit by30 bytes, chat-boot JS limit by1774 bytes and New Session boot JS limit by13 bytes.

Native performance command 410ee58f36b22494cef8bcf6413cd304d9e055a5b53fb82810a767fb5d233f30 exited0 and settled; that means the workload completed, not that performance passed. Summary SHA256 ddc86832c1b1ab68f10037c5b2af4efdd4c5e93646cd387792f53c73848dfa5e; verified analysis SHA256 bd0eadd42ba920a456cf3dfae0bff5631a94f1aa4e4149e8053b3fed71759555.

Independent build-proof SHA256 ce1837ce0ea8581ec9bb725bb5f2edb2c06ab297161621ab7c03c6767be275ff.

Remaining blocker: startup performance. It needs a source-backed repair and a complete passing requalification before native review/CI/landing can proceed. Prior 7a4b524 and73086 failures remain historical evidence, with their original baselines. No source push, merge, deployment or production Gateway restart. The unfinished task checkout and proof remain retained.

Previous complete performance failure on 7a4b524

Current correction: performance FAIL — 12/28 adverse cells, 5 STOP cells. Not ready to merge.

Signed local candidate: 7a4b524f1e0190467aeadcb59e3f279950c8db44; tree 7e63a6e7652bc31aea2d0f61a947f2c323868600; baseline 91722468db0d94acc0e0635ae09222d64fbccb6b. Published head remains fbb33335d3c6c2a08ccac813306d26359ce92ff3.

The correction publishes accepted history, its session descriptor and committed load state in one Solid update, while optional metadata stays in its existing refresh owner. The full-page regression test failed before the correction. 312 targeted tests pass, plus a 14-case rerun after a test-only lint correction; canonical UI typecheck, targeted lint and formatting pass. Independent source review found no actionable correctness issue. The row-measurement repair is separately landed in #207043.

The new full run completed 24 independent arms, 48 observations and 8 A/A controls, unprofiled, with all observations retained. Both UI tree/index hashes, all30 artifact members, source pins, arm order and native settlement were verified. Median and linear (n-1)*.95 p95; zero adverse cells required, inclusive20% STOP; no exclusions, A/A adjustment or pooling.

STOP metric Statistic Baseline Candidate Change
cold loafBlockingMs median 88.55 116.05 +31.06%
cold loafBlockingMs p95 126.65 157.585 +24.43%
cold cls median 0.00407412869 0.00585583112 +43.73%
cold cls p95 0.00719065419 0.0282033701 +292.22%
warm loafBlockingMs median 48.15 74.8 +55.35%

The other seven adverse cells are cold first-row p95, Details p95 and FCP median, plus warm hello publication and handling median/p95. All are retained in the verdict. LoAF values are milliseconds; CLS is unitless. The advisory asset check also exceeds its CSS gzip limit by48 bytes and chat-boot JS gzip limit by367 bytes.

Native performance command 4f7f3d5ad9ff446abec8beb91231623cf471c9c80fff55db0b2f0588e88142e4 and independent build-binding command 4996732b0a336dae2eaed602e843da0799c5973944d8e4c851c55b62329e3189 both exited0 and settled. Summary SHA256 f2f39a056e8acad01b5c51af9939373328946e01450d0499cdc8756fa7f7de25; verified analysis SHA256 18388784163361308f03a609b8f0e330636c1aa077a091d0ff787522f8fadc6e. Historical73086 remains FAIL16/28 with3 STOP; the preceding attachment-only run remains FAIL7/28 with2 STOP. Different runs do not isolate this correction as the cause of a timing change.

Next: localize the remaining blocking and layout shifts, then qualify a source-backed repair. Seven current-main conflicts also need resolution and exact final-source verification. No push, merge, deployment or production Gateway restart. The task checkout and proof remain retained.

Earlier published change, qualification and retained failure history

What Problem This Solves

Chat startup can repeat initial-history work, wait for optional tool presentation, and reproject unchanged sidebar rows when only readiness changes. An ordinary Gateway hello can invalidate pending initial-render recovery by replacing an already-cleared connection. Archived-session notices can also collapse below the normal composer surface and move the footer.

The first-row scheduling budget has a separate ordering defect: a cheap loading or empty projection consumes its one decision before populated history arrives. The first expensive transcript projection can then run without the existing cold-start yield.

User Impact

Live tool output and previews remain available while optional row rendering loads. Early boot editing retains its editor, draft, selection and scroll through pane adoption; authoritative archived/incognito/view-only state still replaces input through the existing banner owner. Ordinary replacement notices share the composer's responsive minimum height.

The first populated transcript projection now owns the existing 15 ms cold-start decision. Cheap projections, restored panes and accepted submissions remain immediate; loading and empty states stay visible. No configuration, migration, protocol change, deployment or restart is included. Final performance qualification failed below; the PR remains unmerged.

Why This Change Was Made

  • Transfer a matching early history/live-output lease into the pane. Preference changes replace the lease, and failed replacement retires the connection.
  • Keep optional rendering and retry inside the row boundary, with eager previews outside it. Remove the obsolete presentation facade; disclosure policy remains with the thread expansion owner.
  • Carry prepared snapshot/Details facts forward. Readiness-only updates leave unchanged sidebar rows stable while preserving status, approval, history/search, pagination and pin-wake consumers.
  • Preserve connection identity when hello has no bootstrap credentials to retire. Token/profile retirement still replaces the connection; stale-client, navigation, global and storage guards remain authoritative.
  • Preserve normal first-commit boot-editor adoption. The discarded metadata/chrome gate is absent: intentional early local editing must not wait for session metadata.
  • Share existing responsive composer minimum-height rules with ordinary replacement notices. Preserve narrow-container, landscape, native-resting and short-pane precedence, compact/hidden exceptions and natural growth. No Details animation change or arbitrary maximum height.
  • Keep the one-shot cold-row budget until the first projection that would render rows. Measure that projection alone, retain the existing threshold and task-yield owner, never re-hide admitted rows, and prevent a disposed pending task from publishing. The viewport, composer, header and Details remain mounted.

The scheduling defect predates this PR: the construction-time decision is present in PR #196482. Earlier pane admission exposes the loading-first order. The 15 ms measurement covers transcript projection preparation, not subsequent Markdown rendering, row mounting or geometry. The profile does not establish that the measured workload crossed that threshold; the fresh unprofiled comparison must establish the effect.

The existing real-Gateway benchmark also gains a default-off cold CPU diagnostic mode: --cold-cpu-profile --route chat --reloads 0 --prime-reloads 0. It retains full raw/mapped samples, native long-frame attribution and clock/counter snapshots, with explicit coverage limits and cleanup. The ordinary and existing warm-profile paths remain separate; diagnostic captures cannot become ordinary timing acceptance.

Candidate: fbb33335d3c6c2a08ccac813306d26359ce92ff3, tree 2ea06ed47877870945099c6a3d6759063198b072. Frozen integrated baseline: e11a36d08b9a9fc81d2c6634fd6e252f8f954dad. The native final-patch refresh preserved the signed correction history and integrated current-main tests; it did not replay abandoned readiness designs. Prior receipts retain their original source and baseline identities.

The Latest test correction now awaits the actual destination after clicking, then retains the existing idle wait and final distance ≤1 assertion. Its owner test demonstrates that stable geometry can coexist with a queued manual command; releasing the existing commit and animation-frame owners reaches the exact tail. Product scrolling is unchanged. This fixes the test's premature observation boundary without claiming that retained CI facts establish the exact cause of the earlier 846 px result.

Versus the frozen baseline: UI/runtime +216/−308 (net −92); diagnostic tooling production +383/−30 (net +353); combined production net +261. Tests +1955/−446 (net +1509), diagnostic docs +36, other workflow/manifest/allocation metadata +39/−11. Positive production growth supplies the missing cold CPU attribution capability and the first-populated-projection lifecycle boundary. The test ratchet passes with unchanged shared allowance 400 plus allocation 1109. No checker or performance threshold was relaxed.

Evidence

Publication status: NEEDS WORK; final performance failed, CI disposition pending. Exact-source native95166 passed UI types, scoped formatting/lint and all22 scroll-owner cases; its wrapper then failed an incorrect21-case expectation. That failed receipt remains unchanged. Remaining native proof86448 authenticated the six original evidence members byte-for-byte and passed lifecycle8 plus reply-attribution9, including both motion modes, zero skips/todos. The verified aggregate is 39 cases:22 carried+17 newly executed. Complete logs/reports, restored source, joined children, native completion and separate automatic cleanup were independently verified. Archive SHA256: aa3c2af824b0fe8a2ef7cde0d0f3802b1322a0130798bd1eb91bc04d3e151d33. The full unprofiled comparison85014 against frozen e11 completed all48 observations and failed as detailed below. Current merge CI has an external WebKit dependency-install failure and a separate Cron delivery-error visibility assertion under investigation. The exact-head ClawSweeper review is PASS, but it preceded the final performance result and does not accept that result. No current-source performance pass, merge or deployment is claimed.

Latest completion contract. 3492 merge CI observed 846 px from the bottom after the first Latest click and geometry-idle helper in the no-preference case; 464 sibling tests passed. The retained failure artifact had no scroll timeline. Source and existing sibling E2Es establish that geometry-idle does not certify queued afterCommit/animation-frame command completion. Both corrected sites poll the same exact ≤1 destination, wait for geometry idle and check ≤1 again. A missed command still fails; a transient arrival followed by drift still fails. The new owner test documents the pending-command contract and is not presented as a product RED or reconstruction of that CI capture. Later b8bd actual-merge CI passed, including the formerly failing shard; that does not causally attribute the difference to the Show correction.

Show callback contract. 3492 merge CI found TS2745/TS2769 for a zero-argument Show child. The canonical _deferred parameter satisfies Solid rc.18's API. Solid checks function.length, so evaluation intentionally moves into its conditional memo; this is not a type-only or emitted-runtime-equivalence claim. The threshold, yield and content policy stay unchanged. Exact b8bd native proof passed tsgo:ui and all eight lifecycle cases, zero skips/todos; full logs/report and separate native completion/automatic cleanup were verified. Archive SHA256: 2d950a2cdba313c62d039d25e5d6fabd36e3b534f7cbce34f44e6c6aba5f007b. Those owner bytes are unchanged in the integrated candidate; exact final-source UI types passed in95166, and lifecycle8 passed in86448.

Scheduling-owner regression. The original-order 3492 regression failed against its parent because populated rows appeared before the held yield, then passed with the correction. Disposal checks actual row rendering after unmount. The existing threshold measures projection preparation only; no claim is made that this explains all measured CPU work. Earlier scoped review passed. Final narrow autoreviews are complete with no findings: the b8bd Show invocation correction with full component/dependency/lifecycle context, and final fbb Latest tests/allocation with owner/caller/sibling context. Relevant runtime owner bytes are unchanged through integration; earlier unchanged scopes retain their prior reviews. Review did not execute tests.

Historical browser correctness, explicitly carried. The 3492 native proof passed nine full reports: lifecycle8, New Session6, inline7, menu1, guest2, Incognito1, auth5, boot9 and composer-height20 — 59 passed, zero skips/todos. All 11 complete logs and original reports were verified; paired assets passed. Native completion and automatic cleanup were separate verified outcomes. Archive SHA256: cb766a3eb6f3a1a118945809b309759e83f65158b68729a42b1e4b01609181eb. This is exact3492 proof, not a claim that all59 were rerun on the integrated candidate.

The earlier c5 browser proof passed all51 original browser cases. Six responsive-height cases failed under the original CSS with computed auto instead of 88/92/112/0/52/92 px, with no mixed setup/global error; restored final CSS passed all20 height cases. Three ordinary full-size modes also verify actual height equality. Compact/hidden behavior and natural growth remain covered; arbitrary expanded drafts or long notices are not promised equal heights. Archive SHA256: 3a51aecbec763645b626bb946b05e374847c3e1c741b4ae45706995b21efa090.

Two earlier test corrections retain their own proofs: the roles fixture installs its intended roster before navigation (14 cases passed); inline trail assertions await the real lazy row's exact attributes/titles rather than its visible placeholder (seven cases passed, plus held-import owner proof). Neither adds a production wait or weakens the expected result.

Final-source performance failed. 85014 compares exact fbb33335d3c6c2a08ccac813306d26359ce92ff3 against frozen e11a36d08b9a9fc81d2c6634fd6e252f8f954dad: all24 original-order arms,48 observations,28 median/p95 cells and eight A/A observations are complete, with no exclusions. The unchanged consumer returned 16 adverse /2 STOP /10 improved /2 equal; accepted=false. Cold long-frame blocking median rose111.05→147.05 ms (+36 ms/+32.418%); warm rose61.75→87.80 ms (+26.05 ms/+42.186%). Both were adverse in7/10 pairs. Cold row and Details paint medians rose670→680 and888→910 ms; warm rows/Details/FCP improved524→482 ms. A/A variation remains visible without subtraction or waiver. Both source and baseline differ from8037, so cross-run changes cannot isolate the Show correction or integration. Archive SHA256: 15fc2eb2a5d0e769703ed00ba716b3209f60793cd490b83bfbad4afe7eae55c5.

The complete workload returned0 with restored source and joined children. The original wrapper returned1 only because GitHub quota prevented its separate cleanup settlement; that receipt remains unchanged. One later native closeout reconciled the associated run and verified the exact claim/key absent. Performance failure remains independent of successful evidence collection and cleanup. A source-frozen, matched cold CPU diagnostic is being prepared to attribute the post-hello work; it is not a timing-acceptance rerun.

Historical performance remains visible. c5 run27555, against7ce, retained all24 arms/48 observations/28 median+p95 cells and eight A/A observations. Its unchanged consumer returned 11 adverse /5 STOP /accepted=false. STOPs were cold FCP p95 +25.6 ms/+43.986%, cold LoAF median +67.7 ms/+40.931% and p95 +94.13 ms/+44.574%, warm helloPublished p95 +174.465 ms/+30.570% and helloHandled p95 +174.845 ms/+29.351%. Cold LoAF was adverse in9/10 pairs; both warm hello metrics in8/10. Archive SHA256: b257f8254214d29b55e4a004d429523f6b7b824daa4dec2ff424968def670f6a.

3492 run8037, also against7ce, retained the complete same24/48 method and returned 6 adverse /0 STOP /20 improved /2 equal; accepted=false. Cold LoAF median improves139.15→135.60 ms and p95202.555→202.365 ms (4/10 pairs adverse). Residual adverse cells: cold helloPublished median +7.10 ms/p95 +11.045 ms; cold helloHandled median +7.20 ms/p95 +9.595 ms (each7/10 pairs adverse); cold CLS median +0.000346393 (5/10); warm helloPublished p95 +4.09 ms (4/10). All five prior STOP cells are below STOP in that run. A/A variation is retained without subtraction or waiver. Cross-run instrumentation differences prevent a pure source-effect estimate. Archive SHA256: 0cd08de4c91a8191f29dfd734f3456df2059355f42502d19a545bbebf3d7d63d.

The zero-adverse acceptance expression is the established agent-authored consumer, not a separately located repository rule. Its field remains unchanged and visible; the inclusive20% STOP rule is unchanged. The final comparison uses the same24 arms/48 observations/ten alternating pairs/seven metrics/median and linearp95, with common unprofiled instrumentation in both arms and explicit CPU/attribution-off checks. It now binds the final integrated product and e11 baseline; no historical performance result transfers to it.

Diagnostic limitations. The matched cold CPU pair identified extra/coalesced transcript construction, sanitization and commit geometry; lazy row-module evaluation occurred after the dominant frame. The pair also showed more work over the common recorded window. Sample weights are elapsed time; thread-clock counters and overlapping categories are separate. Missing source mappings and the unprofiled navigation prefix remain explicit. Both arms completed with required coverage, but the producer failed its9MiB uncompressed artifact cap. A separately reviewed native retrieval recovered all21 original files (14,620,735 raw bytes;987,249-byte archive) without rewriting that failure. Recovery SHA256: 07f9e4616400e98f0fae5310cef523b25588f590c407ac859e603300a16fb118. Diagnostic recovery is not ordinary timing acceptance.

Review moves. The durable ClawSweeper review, Revision13 on b8bd, has no source findings but requires Latest command-completion evidence and final-source performance qualification. The destination assertions/held-owner contract and exact reply-attribution9 proof, including both motion modes, address the first move. The completed final comparison failed two STOP cells; its required performance disposition remains open. The one exact-head review request produced durable Revision14 PASS on fbb with no source findings or before-merge items and the Latest move addressed. Its optional final-comparison move was still based on a pending result; the measured failure above supersedes that pending status and keeps this PR unmerged. No second same-head review was requested. The optional isolated real-Gateway first-frame capture remains unperformed; no extra capture was added solely to refresh a rating. Mounted ordering tests, mock-Gateway suites and built-fixture timing are cited only for their actual scopes.

History attribution remains preserved: 9cca9afa702d9d213139ca5ac37cb2945db88280 introduced unconditional connection replacement; PR #138964, commit 91095dcd9bf41721f4320d13618e885f1641fe21, later reordered retirement and added captured-connection guards. Native tooling prerequisites #205904 and #205926 are merged. Separate follow-ups remain redundant publication baseline validation and the observed task-owned Python pipe deadlock; neither expands this PR's runtime scope.

@vincentkoc vincentkoc self-assigned this Nov 19, 2026
@clawsweeper

clawsweeper Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 19, 2026
@clawsweeper

clawsweeper Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: passed.

What this changes

This PR separates chat startup and live previews from optional tool rendering, preserves composer geometry, and corrects first-populated-transcript scheduling.

Example: Reload a conversation with Inline command trail enabled while the tool-row module is delayed.

  • Before: Optional rendering can delay pane readiness and live-output admission.
  • After: The pane and live previews remain available while individual tool rows load.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The source correction appears sound, but required final-source performance qualification is incomplete.
Proof confidence 🧂 unranked krab (1/6) The reported exact-source checks support the Latest correction, and historical browser suites cover startup and lazy rows, but the final-source real-Gateway comparison is still running and establishes no accepted performance result yet. The inspected images show unrelated screens. The optional first-frame capture is not requested again. Publish the completed evidence with IPs, API keys, phone numbers, and non-public endpoints redacted.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

The scores reflect the reviewer's assessment. Real behavior proof is not required for maintainer- or bot-authored pull requests.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Chat startup and live output can wait on optional row code, while initial rendering and replacement notices can disrupt responsiveness or layout.
Reason: The maintainer-authored direction addresses source-supported failures using existing owners and removes obsolete presentation machinery.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR contains useful startup repairs, and the Latest correction preserves the intended destination checks; no new actionable source defect was identified.

Reviewed head: fbb33335d3c6c2a08ccac813306d26359ce92ff3

Before merge

None.

Findings

None.

Agent review details

How this fits together

The Control UI receives Gateway history and live events, transfers their subscription into the chat pane, and projects them into transcript rows, previews, sidebar entries, and composer surfaces.

flowchart TD
  Gateway[Gateway history and events] --> Early[Early subscription]
  Early --> Pane[Chat pane owner]
  Pane --> Transcript[Transcript projection]
  Transcript --> Preview[Eager live preview]
  Transcript --> Rows[Lazy tool rows]
  Pane --> Composer[Composer surface]
Loading

Technical review

Best possible solution:

Retain the existing subscription and presentation owners, preserve the Latest completion correction, and qualify the final runtime before landing.

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

Current-main source shows renderer-dependent pane admission and a row-budget decision consumed before populated history; the body reports targeted red/green regressions, but this review ran no target code.

Is this the best way to solve the issue?

Moving optional rendering into the existing row boundary and retaining the first-row budget until populated history are coherent owner-level repairs; final performance benefit remains unestablished.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 3c66f9c623b7.

Provenance checked

  • Inline renderer admission changes intended behavior with a stated reason (d90d52c: The optional command trail prepared its renderer before admitting inline presentation and output.)
  • Cold transcript scheduling keeps the original intent (380f2f9: Separate expensive cold transcript preparation from row rendering while preserving restored frames.)
  • Hello-time connection replacement keeps the original intent (9cca9af: Retire a dashboard bootstrap token after successful hello; the original patch unconditionally replaced the connection object.)
  • Sidebar projection invalidation keeps the original intent (6f24d83: Avoid projecting unchanged sidebar rows while explicitly invalidating every row-affecting input.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 4420648 adds ui/src/api/gateway-boot.ts:24 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 4420648c4046; files: ui/src/api/gateway-boot.ts)
  • Josh Avant: Raw commit d90d52c adds ui/src/api/gateway-boot.ts:28 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: d90d52cce941; files: ui/src/api/gateway-boot.ts)
  • Vyctor H. Brzezowski: Raw commit 18136c9 adds ui/src/pages/chat/components/chat-tool-cards.solid.tsx:228 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 18136c960eaf; files: ui/src/pages/chat/components/chat-tool-cards.solid.tsx)
  • Vincent Koc: Raw commit 671bf96 adds ui/src/pages/chat/components/chat-thread-view.tsx:131 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 671bf969d5dc; files: ui/src/pages/chat/components/chat-thread-view.tsx)

PR surface

Source -93, Tests +1509, Docs +36, Config 0, Other +382. Total +1834 across 72 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 34 222 315 -93
Tests 32 1955 446 +1509
Docs 1 36 0 +36
Config 1 4 4 0
Generated 0 0 0 0
Other 4 412 30 +382
Total 72 2629 795 +1834

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Review metrics

Metric Value Why it matters
Production versus test growth Production net +261 lines; tests and support net +1509 lines. UI runtime shrinks by 92 lines; diagnostic tooling adds 353, while tests cover distinct startup, import-recovery, scheduling, geometry, and cleanup boundaries.
Diagnostic option One new default-off flag: --cold-cpu-profile. The flag adds cold CPU attribution to the existing benchmark and explicitly excludes diagnostic captures from ordinary timing acceptance.

Labels

Label changes:

No label changes.

Label justifications:

  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rank-up moves

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

  • Finish the existing final-source comparison and disposition its adverse metrics without transferring historical acceptance.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall readiness starts with the lower of the proof and patch scores. It is capped at 3/6 if the fix is partial, the change offers little benefit, a product decision is still open, or the PR reverses an earlier decision without saying why. ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (13 earlier review cycles; latest 8 shown)
  • reviewed 2026-11-26T16:12:57.771Z sha 45ab46e :: blocked before merge. :: [P2] [P2] Cover retained test growth in the allocation record
  • reviewed 2026-11-26T17:12:53.510Z sha 683f4c4 :: blocked before merge. :: none
  • reviewed 2026-11-26T18:09:13.275Z sha c7b7bc0 :: blocked before merge. :: none
  • reviewed 2026-11-26T18:47:26.233Z sha c5da1e6 :: blocked before merge. :: none
  • reviewed 2026-11-26T19:15:20.486Z sha a420cef :: blocked before merge. :: none
  • reviewed 2026-11-26T19:38:21.906Z sha f1a59c0 :: ready, awaiting a maintainer decision. :: none
  • reviewed 2026-11-26T21:30:35.629Z sha 3492edf :: blocked before merge. :: none
  • reviewed 2026-11-26T21:55:38.655Z sha b8bdc8e :: blocked before merge. :: none

Reviewed November 26, 2026, 5:58 PM ET / 22:58 UTC (Revision 14).

Baseline-Refresh: dd46f446851f6542fbaa15180cf5185d0eb1b3e8
Transfer the early combined subscription to the prepared foreground pane. Replace its lease only when presentation demand changes and retire the connection if replacement fails. Cover buffered and quiet output, changed settings, and failure cleanup.

Validation: 81 focused tests across the early Gateway, pane readiness, history admission, and shared subscription coordinator; targeted oxfmt and diff checks. Full paired browser proof remains pending.
@openclaw-barnacle openclaw-barnacle Bot added the cli CLI command changes label Nov 21, 2026
Choose the existing task boundary from the document warm-frame hold. Fresh session metadata can retire cached presentation before the transcript mounts; it must not switch that warm start onto an extra animation-frame and timer wait.

Cover both metadata states, deadline expiry, current rows, disposal and initial submissions. Allocate five net test lines above the default budget to retain these regression cases through the existing real-pane fixture.
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Please review exact head a420cefc086bc7f17668fc116fa01848aedb8780. Its sole change from reviewed c5da1e6c585c4052dd75ca50cb1f8bc968ea47a2 installs the roles saved-assignment fixture before navigation through the existing usersList option; the exact assignment assertion is unchanged. All other tracked bytes and modes, including production/build/dependency/performance inputs, are identical.

The actual merge CI failure is retained as RED: https://github.com/openclaw/openclaw/actions/runs/45876957362/job/140107110237 . The complete original roles suite now passes 14/14 on the exact successor, with verified logs/artifacts, native exit0 and automatic cleanup: https://github.com/openclaw/openclaw/actions/runs/45880721725 . Scoped lint, format and the unchanged test-line ratchet also pass.

The c5 correctness proof remains exact-source 51 GREEN plus six expected original-CSS RED assertions. Its sealed full 24-arm timing comparison is still running: https://github.com/openclaw/openclaw/actions/runs/45878083907 . New ordinary merge CI: https://github.com/openclaw/openclaw/actions/runs/45881074505 . No timing acceptance or deployed-latency claim is made. The PR body explicitly dispositions the optional isolated real-Gateway first-frame capture as unperformed; existing mocked-browser and built-fixture evidence is not represented as that capture.

@clawsweeper

clawsweeper Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added the status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. label Nov 26, 2026
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Please review exact head f1a59c059cd8744956ad4f9a94d17fa840ca71bf. This successor only repairs two inline E2E assertions to await the actual lazy row and adjusts the exact test allocation by two lines. Expected command titles/order, collapsed state and existing polling defaults are unchanged. All production, build, dependency and performance bytes/modes match measured c5.

The complete original inline suite now passes 7/7, including held/failed imports at three widths, with verified source/artifact/native closeout. Exact prior CI remains RED. Roles14 and c5 browser51/geometry6RED are separately qualified in the PR body.

Landing remains held: complete c5 timing27555 reports 11 adverse cells / 5 STOPs / accepted=false. The body records absolute effects, paired directions and the unresolved causal investigation; this test repair does not waive that result. Final merge CI and performance disposition remain pending. The optional isolated real-Gateway first-frame capture is explicitly unperformed; the existing proofs are cited only for their actual scope.

@clawsweeper

clawsweeper Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added status: ⏳ waiting on maintainer Only explicit maintainer approvals or decisions remain; merge is still blocked. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Nov 26, 2026
@openclaw-barnacle openclaw-barnacle Bot added the scripts Repository scripts label Nov 26, 2026
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Please review exact head 3492edf3826cb46fa0f3af1e6a7808763ef68b57.

The latest runtime repair preserves the existing cold-row budget through loading/empty projections until the first populated transcript projection. It retains the 15 ms threshold, native one-shot yield, restored/accepted-submission exemptions and owned disposal; viewport, composer, header and Details remain mounted. Original lease/hello/sidebar/optional-row repairs, boot-editor continuity and shared responsive replacement floors are preserved. The added default-off cold CPU diagnostic capability remains separate from ordinary timing acceptance.

Both independent source reviews and scoped autoreview pass with no current findings. Exact-source native proof passed all 59 cases (lifecycle 8 plus the full prior 51 browser cases), paired release assets, complete artifact verification and automatic cleanup. The body identifies historical CI REDs and the corrected fixture/assertion contracts.

Historical c5 run 27555 remains 11 adverse / 5 STOP / accepted=false. A matched CPU diagnostic supports construction/geometry investigation but does not prove the repaired threshold was crossed. The new full unprofiled comparison is running with all original arms, metrics, controls and acceptance fields. Actual merge CI and final performance disposition remain pending; no merge is requested. The optional isolated real-Gateway first-frame capture is explicitly unperformed, with existing proof cited only for its actual scope.

@clawsweeper

clawsweeper Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot removed the status: ⏳ waiting on maintainer Only explicit maintainer approvals or decisions remain; merge is still blocked. label Nov 26, 2026
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Please review exact head b8bdc8eb9a7c208f762677173f2f2cd303f3f508.

The latest change corrects the Solid rc.18 Show callback contract found by actual3492 merge CI: use the canonical one-parameter function child. Solid branches on function.length, so the callback now belongs to its conditional memo; this is an intentional ownership/API correction, not a type-only or emitted-runtime-equivalence claim. The 15 ms threshold, native yield, content policy and prior boot/Details behavior are unchanged. Direct dependency and independent exact-byte reviews pass; local lifecycle8/8 passes. Exact native68586 canonical tsgo:ui and lifecycle8/8 now pass with no skips/todos; complete archive/log/report hashes, source restoration, native completion and separate automatic cleanup are qualified.

The prior3492 full59 browser/lifecycle proof and scoped autoreview remain historical evidence for their exact source. Its complete unprofiled comparison8037 reports6 adverse/0 STOP/accepted=false and remains3492-only evidence. The separate3492 Latest-scroll failure is explicitly open: first Latest return measured846px versus≤1 after geometry-idle; no cause or b8bd-fix claim. Please inspect the command-completion boundary as well as the callback owner. Historical c5 run27555 remains11adverse/5STOP/accepted=false. Final-source performance disposition and fresh actual merge CI remain pending; no merge is requested. The body explicitly records the optional isolated real-Gateway first-frame capture as unperformed and limits existing proof claims to their actual scope.

@clawsweeper

clawsweeper Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Please review exact head fbb33335d3c6c2a08ccac813306d26359ce92ff3, integrated through the native baseline-refresh owner onto frozen e11a36d08b9a9fc81d2c6634fd6e252f8f954dad.

This addresses Revision 13's Latest command-completion move: both sites now poll the unchanged distance ≤1 destination, retain the existing idle wait, and check ≤1 again. The existing deferred commit/rAF owner test establishes that stable geometry can precede command settlement. Product scrolling is unchanged; this does not claim a reconstructed cause for the historical 846 px capture.

Exact-source correctness is complete: canonical UI types, scoped format/lint and all22 scroll-owner cases passed in95166. Its wrapper incorrectly expected21 and remains failed. The separate86448 proof authenticated the original evidence unchanged and passed lifecycle8 plus reply-attribution9, including both motion modes:39 aggregate cases, zero skips/todos. Full logs/reports, native completion and separate cleanup were independently verified. Fresh scoped autoreviews of the Latest correction and canonical Solid Show invocation/cleanup contract have no findings. The callback owner change is not described as type-only.

Final-source unprofiled comparison85014 is running against frozene11 with the unchanged24-arm/48-observation/28-cell/eight-A/A method. Historical c5/27555 remains11 adverse/5 STOP/accepted=false;3492/8037 remains6 adverse/0 STOP/accepted=false, without transfer to this head. Current merge CI is running; one UI shard failed before tests on a package-repository HTTP403, with no product assertion. Final performance disposition and CI remain pending. The body records the optional isolated real-Gateway first-frame capture as unperformed. Please review this exact head and the completed Latest evidence; no merge is requested.

@clawsweeper

clawsweeper Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. labels Nov 26, 2026
@vincentkoc

Copy link
Copy Markdown
Member Author

Successor status after the row-attachment fix: #207043 merged as ecea222. That fixes premature row measurement; it does not establish startup-performance acceptance for this PR.

The unpublished signed candidate 4fc87b02278e23c7369a3f232594fbdb8d728bca was recovered without changing the published head fbb33335d3c6c2a08ccac813306d26359ce92ff3. The preserved three-file attachment repair reconstructs snapshot tree 854ea69b59fb4e9faea4d70994cd4c1708ce9613 exactly.

I independently recomputed the complete 73086 comparison: 24 arms, 48 observations, including eight separate A/A observations; ten comparison samples per source and mode; standard median and linear (n-1)*.95 p95. 16 of 28 cells are adverse; three reach the inclusive 20% STOP threshold; acceptance remains FAIL. No samples were removed or noise-adjusted.

  • Cold LoAF blocking median: 146.15 → 195.55 ms (+33.80%).
  • Cold LoAF blocking p95: 163.04 → 260.145 ms (+59.56%).
  • Cold CLS median: 0.003273085179 → 0.005582577203 (+70.56%).

Further source and existing-diagnostic inspection did not establish another production repair. In diagnostic 49569, one cold candidate crossed the existing projection threshold (15.5 ms) and yielded; the other was below it (8.9 ms) and did not. Both had worse blocking, and both warm observations regressed with the cold-row gate inactive. A proposed explanation based on excluded session construction was rejected after checking Solid rc.18: those memos are eager before either timer. Threshold changes or a new scheduling fallback are not justified.

The next bounded discriminator is an unchanged-source B/C/C/B diagnostic that pairs the first populated projection and render-row identities with native browser task/LoAF intervals, measuring total callback time and exclusive owner spans. It must distinguish repeated construction from work grouped into one longer task. It requires fresh native source/runtime/hardware qualification; historical launchers are not replayable operational state. This is diagnostic-only; any repair still needs the full original 28-cell acceptance run, exact-head review, and native landing gates. No merge, deployment, runtime change, or performance PASS is claimed for this PR.

@vincentkoc

vincentkoc commented Nov 28, 2026 •

Copy link
Copy Markdown
Member Author

The refreshed correction is not qualified to land. Signed local head 7f70cfa0a77b32c5f15adbbf443741ca530f3411 remains unpublished.

The native baseline refresh and the resulting session-publication callback failure are repaired. 379 tests across21 files, dependency qualification, generated boot manifest, UI build, typecheck and targeted lint pass.

The complete new performance run fails 21/28 cells, with1 STOP. Cold FCP p95 increases46.2ms →62.2ms (+34.63%); warm hello publication median increases487.35ms →539.5ms (+10.70%). All24 arms/48 observations and8 separate A/A observations are retained, with unchanged zero-adverse acceptance and inclusive20% STOP. The PR body lists every median/p95 cell.

All30 artifact members, source pins, independent UI tree/index hashes and native completion are verified. Analysis SHA256: bd0eadd42ba920a456cf3dfae0bff5631a94f1aa4e4149e8053b3fed71759555.

Remaining blocker: a source-backed startup-performance repair, then complete requalification before native review/CI/landing. No source push, merge, deployment or production Gateway restart. The task checkout and proof remain retained.

This branch has not been deployed

No deployments
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 P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. scripts Repository scripts 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