Skip to content

fix(ui): admit chat transcripts after the first paint - #196198

Merged
steipete merged 3 commits into
mainfrom
solid2/census-8-boot-admission-1109
Nov 9, 2026
Merged

steipete merged 3 commits into
mainfrom
solid2/census-8-boot-admission-1109

Conversation

@steipete

@steipete steipete commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Initial chat transcript admission waits for two animation-frame callbacks. The second frame delays the useful transcript after the composer is already available, especially in Firefox. Keep the first frame boundary, then admit the transcript through the existing cancellable task timer. The timer rechecks presentation before revealing, and cleanup cancels both the pending layout and task. Restored panes keep their immediate-ready path and revealed panes retain DOM/focus. ChatThread remains the admission owner; no new state owner, option or lazy import is introduced.

The test mounting helper now drains only zero-delay tasks scheduled by the captured frames, preserving caller timers and restoring scheduling globals even on throw. The existing transcript test covers first-frame loading, task admission without a second frame, hidden/closed cancellation, latest props, restored readiness and retained DOM/focus. Two helper tests protect timer isolation/restoration.

Historical attribution, separate from fix timing

An exact #194200 parent/merge comparison (650091daacdc10aa374e82a6327e8beffe136072 → cddc5ee4baa2e466a27ff76d5243d6a7372b1ced) reproduced the earlier-composer/readiness tradeoff in Firefox mobile cold/large flows: 20 rotated triplets per flow, 120 observations. Matched readiness became +61.75 ms/+15.02% cold and +56.75 ms/+12.17% large, while the composer became 68/101.25 ms earlier. The post-history delay increased 65/53.5 ms; transport and CSS matched changes were negligible. This localizes the regression to admission scheduling. Those historical medians are not subtracted from the following independent fix cohorts to claim a recovered percentage.

The separate exact historical Firefox desktop cold cohort also validates 60/60 observations (20 rotated triplets): parent/merge/control readiness is 413.5/446 → 456.5/522 → 410.5/428 ms (median/p95). Its paired readiness cost is +46.25 ms/+11.124%, versus 3.298% median absolute A/A, while composer readiness improves by 77.5 ms. The post-history interval adds 49.25 ms. This confirms the same admission tradeoff on desktop; it is not repair timing and is not pooled with the mobile history.

Frozen candidate proof

Base dfc053fd4c6e831cc27f6722eace4ab6f16b96c7, candidate 70a705da4b3809b40c578fea10edfda56677b1aa, harness 267255ff19fa4a1bfc7de9901fd5eb7d56124f13. All arms use fresh headless browsers, localhost, default configuration and 1× CPU. Each triplet rotates base/candidate/identical base; B and A below are those two controls. All values are milliseconds, median/p95. With n10, nearest-rank p95 is the maximum. Firefox native-input frame p95 and max coincide per observation; they are not a page-wide rAF distribution.

The original cohort is 300/300 valid observations: Firefox mobile cold/large at 20 triplets each (120), plus Chromium/Firefox desktop fork, split and session-open at ten triplets each (180). Both terminal receipts exit 0, full grid and inventories are intact; 158 populated metric arrays were independently recomputed. No failed or high-load samples were filtered.

Cell/metric Base B med/p95 Candidate med/p95 Base A med/p95 Candidate median vs B / A Candidate p95 vs B / A A/A median / p95
Firefox cold-boot 484.5/522 453/469 472.5/501 -6.50% / -4.13% -10.15% / -6.39% -2.48% / -4.02%
Firefox cold-boot composer 357.5/377 354.5/361 351/373 -0.84% / +1.00% -4.24% / -3.22% -1.82% / -1.06%
Firefox large-transcript-open 522/553 495/508 532/551 -5.17% / -6.95% -8.14% / -7.80% +1.92% / -0.36%
Firefox large-transcript-open composer 365.5/378 365.5/375 367.5/382 +0.00% / -0.54% -0.79% / -1.83% +0.55% / +1.06%
Chromium chat-actions-fork 437.45/458.6 437/466.6 439.05/474.6 -0.10% / -0.47% +1.74% / -1.69% +0.37% / +3.49%
Firefox chat-actions-fork 453.5/461 451.5/469 439.5/462 -0.44% / +2.73% +1.74% / +1.52% -3.09% / +0.22%
Chromium chat-actions-session-open 458.05/471.8 466.05/483.2 462.3/478.7 +1.75% / +0.81% +2.42% / +0.94% +0.93% / +1.46%
Firefox chat-actions-session-open 622/640 628/649 612/655 +0.96% / +2.61% +1.41% / -0.92% -1.61% / +2.34%
Chromium chat-actions-split-open 149.3/163.2 146.55/160 150.35/166.9 -1.84% / -2.53% -1.96% / -4.13% +0.70% / +2.27%
Firefox chat-actions-split-open 224/241 232.5/241 224/238 +3.79% / +3.79% +0.00% / +1.26% +0.00% / -1.24%

Matched mobile readiness improves 28.25 ms/5.88% cold and 29.5 ms/5.62% large. The candidate is lower than both controls in 14/20 cold and 18/20 large triplets and never greater than both. Cold is not uniformly >5% faster against both control arms. Composer medians remain within about 1%; their tails improve. Post-history delay improves 27.75/29.25 ms; matched history and CSS changes are under 1 ms. The six desktop action cells stay within 5% in median and 2.42% in adverse p95 against both controls.

CPU and secondary-frame disclosure

Chromium CPU results below show no demonstrated broad task/script CPU regression; no CPU-win claim is made. The positive session-open task median is +3.55% against B but −2.19% against A, alongside +5.86% task and +6.21% script A/A median drift. Fork style median is +3.44/+2.93%; session-open style is +4.28/+1.44%. Split has exactly one extra layout in every candidate sample (39/40/39), but its measured task/script/style medians and tails are lower. Firefox CPU and long-task metrics are unavailable, never zero-filled.

Cell/metric Base B med/p95 Candidate med/p95 Base A med/p95 Candidate median vs B / A Candidate p95 vs B / A A/A median / p95
Chromium chat-actions-fork taskMs 201.348/224.593 199.019/212.182 201.965/212.598 -1.16% / -1.46% -5.53% / -0.20% +0.31% / -5.34%
Chromium chat-actions-fork scriptMs 106.163/119.919 106.36/114.548 107.022/110.93 +0.19% / -0.62% -4.48% / +3.26% +0.81% / -7.50%
Chromium chat-actions-fork styleMs 27.873/31.051 28.832/30.32 28.011/29.552 +3.44% / +2.93% -2.35% / +2.60% +0.50% / -4.83%
Chromium chat-actions-fork layoutMs 3.944/4.317 3.8/4.102 3.869/4.163 -3.64% / -1.78% -4.98% / -1.47% -1.89% / -3.57%
Chromium chat-actions-session-open taskMs 252.866/270.022 261.834/275.668 267.692/277.105 +3.55% / -2.19% +2.09% / -0.52% +5.86% / +2.62%
Chromium chat-actions-session-open scriptMs 153.311/163.407 157.13/166.756 162.827/167.332 +2.49% / -3.50% +2.05% / -0.34% +6.21% / +2.40%
Chromium chat-actions-session-open styleMs 39.763/41.794 41.465/43.337 40.877/45.16 +4.28% / +1.44% +3.69% / -4.04% +2.80% / +8.05%
Chromium chat-actions-session-open layoutMs 12.476/13.364 12.761/13.556 12.79/13.505 +2.28% / -0.23% +1.44% / +0.38% +2.52% / +1.06%
Chromium chat-actions-split-open taskMs 165.097/180.38 162.284/175.919 164.627/183.871 -1.70% / -1.42% -2.47% / -4.32% -0.28% / +1.94%
Chromium chat-actions-split-open scriptMs 99.453/109.346 97.103/105.991 99.646/111.663 -2.36% / -2.55% -3.07% / -5.08% +0.19% / +2.12%
Chromium chat-actions-split-open styleMs 38.197/41.274 37.46/40.33 37.859/41.781 -1.93% / -1.06% -2.29% / -3.47% -0.88% / +1.23%
Chromium chat-actions-split-open layoutMs 4.964/5.466 4.896/5.394 4.867/5.503 -1.36% / +0.60% -1.32% / -1.98% -1.94% / +0.68%

Original desktop native-frame cohort:

Cell/metric Base B med/p95 Candidate med/p95 Base A med/p95 Candidate median vs B / A Candidate p95 vs B / A A/A median / p95
Chromium chat-actions-fork native frame 25.1/26.5 25.25/26.6 25.1/27.9 +0.60% / +0.60% +0.38% / -4.66% +0.00% / +5.28%
Firefox chat-actions-fork native frame 81/86 73.5/90 81.5/85 -9.26% / -9.82% +4.65% / +5.88% +0.62% / -1.16%
Chromium chat-actions-session-open native frame 34.85/38.8 32.2/37.5 33.5/45.1 -7.60% / -3.88% -3.35% / -16.85% -3.87% / +16.24%
Firefox chat-actions-session-open native frame 45/47 44/48 43/46 -2.22% / +2.33% +2.13% / +4.35% -4.44% / -2.13%
Chromium chat-actions-split-open native frame 66.1/71.2 63.8/69.6 65.15/73.5 -3.48% / -2.07% -2.25% / -5.31% -1.44% / +3.23%
Firefox chat-actions-split-open native frame 88/97 89/99 89/92 +1.14% / +0.00% +2.06% / +7.61% +1.14% / -5.15%

A separate, unpooled 60-observation Firefox follow-up covers fork and split at ten rotated triplets each on the same pinned builds/harness. It also exits 0, validates 60/60 and retains intact inventories. Twelve populated metric arrays were independently recomputed.

Cell/metric Base B med/p95 Candidate med/p95 Base A med/p95 Candidate median vs B / A Candidate p95 vs B / A A/A median / p95
chat-actions-fork application 460/492 469/481 452.5/466 +1.96% / +3.65% -2.24% / +3.22% -1.63% / -5.28%
chat-actions-fork native frame 86/93 75/95 85.5/90 -12.79% / -12.28% +2.15% / +5.56% -0.58% / -3.23%
chat-actions-split-open application 235.5/253 236/250 233.5/239 +0.21% / +1.07% -1.19% / +4.60% -0.85% / -5.53%
chat-actions-split-open native frame 93.5/99 93.5/96 91.5/96 +0.00% / +2.19% -3.03% / +0.00% -2.14% / -3.03%

Coordinator-accepted tradeoff: native fork frame medians improve 9.26–9.82% against the controls in the original cohort and 12.28–12.79% in the separate follow-up, while the follow-up fork maximum remains +2/+5 ms against the two arms. Fork is faster than both controls in 9/10 triplets and no triplet exceeds both by >5%. Its maximum triplet is B93/candidate95/A85 ms, a +6 ms candidate difference from the paired control mean within an 8 ms A/A spread. The follow-up fork application matched median is +13 ms/+2.85%, explicitly retained. Split's follow-up frame p95 is lower than B and equal to A. These facts justify the measured mobile readiness gain; they do not establish that every tail is flat. The tradeoff was accepted by the coordinator.

Chromium CLS is zero throughout the action observations. Split's user-initiated all-shift-sum median/p95 is identical at 0.0986106 across arms and is distinct from CLS. Firefox CLS is unavailable. WebKit is unavailable on this host after launch timeouts; there is no WebKit timing claim. Re-run WebKit cold/large mobile readiness and desktop fork/split/session-open after the host recovers.

The original action stage overlapped coordinator-observed native review dependency materialization from 18:20:50–18:22:00Z; all observations are retained. The separate follow-up host one-minute load rose from 6.29 to 12.47, with application A/A p95 movement −5.28% fork and −5.53% split. Arms stayed interleaved.

Separate desktop cold and large qualification

Two additional, separately validated 20-triplet Firefox desktop cohorts use the same frozen dfc053fd4c6e / 70a705da4b38 runtime pair and harness. Each completes 60/60 with intact inventories and no excluded observations. The original base source checkout had advanced; a clean relocated source checkout and the retained exact 4,871-file base bundle were verified before either cohort. This was a source-address handoff, not a rebuild or a replacement of any prior observation.

Cell/metric Base median/p95 Repair median/p95 Control median/p95 Paired median Median absolute A/A
Desktop large readiness 498/523 453/475 479/531 −36 ms / −7.361% 6.705%
Desktop large composer 359.5/381 362.5/375 367.5/378 0 ms / +0.006% 4.324%
Desktop cold readiness 422.5/524 430/451 442.5/501 −11.5 ms / −2.593% 8.566%
Desktop cold composer 352/369 351.5/371 349/366 −4.5 ms / −1.252% 3.757%

Large readiness is faster than its paired control mean in 19/20 triplets and faster than both controls in 16/20; readiness and composer p95 improve against both controls. A/A variation is nearly as large as the paired 7.361% estimate, so this supports the direction and the no-regression band, not a precise recovered fraction. Cold primary readiness stays within the band and has lower p95; its wide A/A does not resolve a median win.

Cold composer tails remain a caveat: repair p95 is +2/+5 ms against the two arms, and three observations exceed both controls by 5%. Their paired composer changes are +36/+20/+31.5 ms; some excess precedes history arrival and some follows it. These are retained secondary tail signals, not silently dismissed as host noise or described as unqualified all-metric cold acceptance. No Firefox CPU, Long Task, or CLS values are available.

Evidence

Proof Result
Regression red on base Original production gate fails the task-admission assertion at chat-pane-transcript-mount.test.tsx:134; production candidate restored byte-for-byte
Focused tests 3 files, 5 tests pass; transcript mount, scheduler helper and projection run-id
Typecheck pnpm tsgo:ui passes
Format / lint / diff Four touched files pass; two unchanged Solid warnings remain
Source review Independent source-only autoreview completed, no actionable P0–P2 findings
Build and strict bytes Both pinned builds complete; strict paired checker passes with zero violations
Browser timing Original 300/300 and separate follow-up 60/60 validate, full inventories intact
Visuals Synthetic ready-state mobile cold and large pairs inspected; each before/after pair is byte-identical
Production Knip Final integrated d53921ac1424 / 85378d692d72: each run once; both exit 1 with byte-identical existing export/type findings; no ignores added
Broad UI CI Current ci:full run completed: units, real-Gateway, bytes, types and ratchet pass; all remaining E2E/lint failures match scheduled main as detailed below

Normalized startup JS is unchanged at 91,695 B gzip / 3 requests, startup CSS 38,669 B / 1 request. Chat JS drops 1,298,171 → 1,297,958 B (−213 B) with 20 requests; chat CSS is unchanged at 133,182 B / 3 requests. New-view JS stays 803,742 B / 15 requests and CSS 98,868 B / 3 requests. No lazy boundary changes.

Production LOC 486 → 493 (+7); tests/helper 192 → 301 (+109); runtime/test total 678 → 794 (+116 net; +124/−8 diff). The allocation record adds two configuration lines, giving +126/−8 overall. The seven production lines use the existing timer owner to remove the second-frame delay while preserving cancellation. No dependencies added; no leases used. Scoped Solid checklist counts are unchanged: zero rendering controllers, effects/render effects, untrack, direct listeners, DOM queries, flush, owner APIs and component cleanup; the same two manual imports remain.

Before and after

The four inspected screenshots are 390×844 synthetic mobile ready states, proving stable final rendering. They do not prove intermediate frame/compositor behavior. The matching before/after pairs are embedded below.

State Before After
Cold boot ready Synthetic ready state Synthetic ready state
Large transcript ready Synthetic ready state Synthetic ready state

Final production Knip findings are unchanged between integrated base/head in src/daemon/launchd.ts, src/gateway/server-methods/config-write-flow.ts, src/plugins/provider-external-auth.ts, src/plugins/provider-runtime.ts, ui/src/pages/dashboards/dashboard-tools.tsx and exported types in src/plugins/types.ts. Output SHA-256 on both exact commits: 6052ae3938519fd323be1c02a88e44dce31ab8a4d3e975051c74619416e5263e. The extra config-write export arrived on main; old Knip output is not relabeled as a current-head run.

Test-line allocation

CI identified that this change needs its own exact regression-test allocation: 109 lines for task admission, cancellation, and isolated mount-helper timers. The follow-up 964614e381c adds config/test-lines-allocations/196198-transcript-task-admission.txt; the shared scalar is unchanged. The scoped ratchet and independent allocation review pass. Runtime, tests, and build inputs are unchanged by the allocation commit, so the earlier pinned proof remains applicable to those inputs.

Current CI qualification

Run 42697480882 at integration head 85378d692d725ca9acb1df0c5c1b6afd815971ee completed. The inspected tested merge is 4443e1bad8c0f6cca10d8e5dfaa701ced7f70748, with ordered parents d53921ac1424 and 85378d692d72; its tree equals this PR head. UI unit, real-Gateway, performance, types and test-ratchet jobs pass. The remaining failures are identical to latest completed scheduled main run 42692902936, at e64c3514e419:

Full failing test / diagnostic PR job Scheduled main job Exact attribution
[ui-e2e-bundled] ui/src/e2e/session-ownership.e2e.test.ts > Control UI session ownership > aligns Person left status at 390 px 129434140896 129418188339 Same 14 vs 13 geometry assertion
[ui-e2e-bundled] ui/src/e2e/session-ownership.e2e.test.ts > Control UI session ownership > aligns Person left status at 1200 px 129434140896 129418188339 Same 14 vs 13 geometry assertion
[ui-e2e-bundled] ui/src/e2e/native-conversation.e2e.test.ts > Control UI mocked Gateway E2E > keeps a single web conversation with in-page native navigation and Dashboard handoff 129434140669 129418188597 Same 56 vs 64 header-height assertion
[ui-e2e-bundled] ui/src/e2e/chat-flow.sidebar-presentation.e2e.test.ts > Control UI mocked Gateway E2E > keeps session titles on the first line and collapses rows that have no second line 129434140669 129418188926 Same four soft-assertion annotations: transparent spinner vs accent
eslint(no-shadow): row, sidebar-rail-alignment.e2e.test.ts:201 shadowing line 80 129435691449 129418191829 Same parsed lint error in core:stripe:4:ui; PR groups stripes 3/4/5 under outer job core-2

All four failed input files are byte-identical at scheduled main, the actual CI baseline, PR head and tested merge. Full Vitest names, every repeated annotation, exact messages and source objects were compared; matching shard labels alone were not treated as evidence. No test rerun was used to obtain attribution. Native recovery retains the red CI result and uses the documented inherited-failure route.

The earlier allocation run's 342-line deficit was inherited from exact CI base e2320c33ac8a: 6,604,592 test LF against a 6,604,250 ceiling. This PR adds and allocates exactly 109 LF. Main repaired the old debt in #196234; final exact-base ratchet on 85378d692d72 passes 6,606,437 LF / 6,606,437 ceiling, with no extra grant or padding. The main merge is conflict-free and preserves the entire reviewed five-file patch. Historical runtime/build/timing results above keep their original pins; current integrated-head results are separately identified. The confirmed-cancelled auto request is completed through native replacement recovery, not re-armed.

Replace the second animation-frame gate with the existing cancellable task timer. Preserve hidden-pane cancellation, restored transcript readiness, and revealed DOM identity while removing an extra frame from initial transcript admission.

Extend synchronous transcript test mounting to settle newly scheduled zero-delay tasks without draining caller work. The admission assertion fails with the original two-frame gate; all five targeted tests and the UI typecheck pass.
@steipete steipete added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Nov 9, 2026
@clawsweeper

clawsweeper Bot commented Nov 9, 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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-09T20:57:07.344898Z 85378d6 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@steipete
steipete enabled auto-merge (squash) November 9, 2026 18:51
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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 Nov 9, 2026
@clawsweeper

clawsweeper Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR replaces the second animation-frame wait with an existing cancellable timer before mounting chat transcripts.

Example: Opening a large transcript in Firefox mobile in the supplied browser cohort.

  • Before: Readiness medians were 522 ms and 532 ms in the two base controls.
  • After: The candidate median was 495 ms while composer readiness remained essentially unchanged.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The scheduling repair is focused and supported by browser evidence, but its introduced test-budget failure needs a small repair.
Proof confidence 🐚 platinum hermit (4/6) The ordinary contributor proof gate does not apply to this maintainer-authored PR; its pinned browser measurements exercise built chat opening, fork, and split flows, and inspected screenshots support final-state parity, with WebKit timing explicitly unavailable.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Product

Kind: Performance · Worth it: Yes · Fix scope: Complete
User problem: The composer is available while useful chat history unnecessarily waits for another animation frame, particularly in Firefox.
Reason: The maintainer-authored direction has measured user value and preserves the earlier responsiveness contract, with the disclosed performance tradeoff explicitly accepted.

Regression provenance

Regression provenance — verified: source commit cddc5ee4baa2 by Peter Steinberger; canonical PR #194200 (blame-to-merge-commit).

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep this PR open: the focused scheduling change has clear user value, but its added tests cause the test-line budget check to fail.

Priority: P2
Reviewed head: 70a705da4b3809b40c578fea10edfda56677b1aa

Before merge

  • Allocate the added regression-test lines (P2) - The new helper suite and expanded mounting coverage add 109 counted test/helper lines without changing the test-line allocation. The base has only three lines of slack, so the reviewed head is 106 lines over its ceiling, matching the exact-head test-lines failure. Add a justified 109-line record under config/test-lines-allocations/ as required by the testing guide, preserving the shared baseline and the useful regression coverage.

Findings

  • [P2] Allocate the added regression-test lines — ui/src/pages/chat/test-helpers/chat-mount-frames.test.ts:1-3
Agent review details

How this fits together

ChatThread receives pane presentation and transcript props, schedules initial admission, and renders loading content or retained transcript rows.

flowchart TD
  A[Pane props and presentation] --> B[ChatThread admission]
  B --> C[Layout frame scheduler]
  C --> D[Cancellable task timer]
  D --> E[Presentation check]
  E --> F[Transcript content]
  A --> G[Hide or disposal]
  G --> D
Loading

Technical review

Best possible solution:

Keep the existing admission owner and cancellable timer change, and allocate the justified regression-test growth without raising the shared baseline.

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

Current main visibly waits for two scheduled frames, and the supplied pinned browser comparisons measure the resulting readiness delay; this review did not execute the product.

Is this the best way to solve the issue?

The change is the smallest complete production repair: replace the second wait at ChatThread, retain presentation checks and cleanup, and adapt the existing mounting helper rather than introduce another owner.

Full review comments:

  • [P2] Allocate the added regression-test lines — ui/src/pages/chat/test-helpers/chat-mount-frames.test.ts:1-3
    The new helper suite and expanded mounting coverage add 109 counted test/helper lines without changing the test-line allocation. The base has only three lines of slack, so the reviewed head is 106 lines over its ceiling, matching the exact-head test-lines failure. Add a justified 109-line record under config/test-lines-allocations/ as required by the testing guide, preserving the shared baseline and the useful regression coverage.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.96

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 56617cd00086.

Provenance checked

  • Transcript admission scheduling changes intended behavior with a stated reason (cddc5ee: Paint the pane shell and composer before preparing transcript rows, cancel pending admission on hide or disposal, and retain restored content immediately.)
  • Synchronous transcript mounting helper keeps the original intent (cddc5ee: Settle newly introduced deferred mounts without consuming frames already queued by the caller; the patch extends that isolation to task timers.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • pnpm check:test-lines-ratchet --base dfc053f
  • git diff --check

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit cddc5ee adds ui/src/pages/chat/components/chat-thread-view.tsx:103 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: cddc5ee4baa2; files: ui/src/pages/chat/components/chat-thread-view.tsx)

PR surface

Source +7, Tests +109. Total +116 across 4 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 1 12 5 +7
Tests 3 112 3 +109
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 124 8 +116

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 +7 lines; tests/helpers +109 lines Production growth reuses the timer owner; test growth covers admission, cancellation, restoration, and isolation of caller scheduling.

Labels

Label changes:

  • add P2: This is a bounded improvement to chat readiness with a narrow, mechanically repairable validation failure.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🐚 platinum hermit and patch quality is 🦐 gold shrimp.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P2: This is a bounded improvement to chat readiness with a narrow, mechanically repairable validation failure.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🐚 platinum hermit and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

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 follows the weaker of proof and patch quality; ✨ 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.

Reviewed November 9, 2026, 1:59 PM ET / 18:59 UTC.

@steipete
steipete disabled auto-merge November 9, 2026 19:03
@steipete
steipete merged commit d08c80f into main Nov 9, 2026
108 of 116 checks passed
@steipete
steipete deleted the solid2/census-8-boot-admission-1109 branch November 9, 2026 21:35
@steipete

steipete commented Nov 9, 2026

Copy link
Copy Markdown
Contributor Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 10, 2026
* fix(ui): admit chat transcripts after the first paint

Replace the second animation-frame gate with the existing cancellable task timer. Preserve hidden-pane cancellation, restored transcript readiness, and revealed DOM identity while removing an extra frame from initial transcript admission.

Extend synchronous transcript test mounting to settle newly scheduled zero-delay tasks without draining caller work. The admission assertion fails with the original two-frame gate; all five targeted tests and the UI typecheck pass.

* test(ui): allocate transcript admission regression coverage
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 ci:full Keep ordinary native-locale CI selection on the next PR run. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: S status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant