Skip to content

perf(control-ui): render cached Subagents without awaiting live activity - #194263

Merged
steipete merged 2 commits into
mainfrom
steipete/coldload-details-subagents-sync
Nov 6, 2026
Merged

steipete merged 2 commits into
mainfrom
steipete/coldload-details-subagents-sync

Conversation

@steipete

@steipete steipete commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

A signed-in warm reload with cached ordinary child activity holds every Details section until the live observer module loads. The cached display receipt already has the row geometry. This removes that admission wait and unblocks #194142's synchronous Details composition; that lane owns co-framing integration.

Why This Change Was Made

Delete the composition-wide prepared() memo/Show and the unused activity preload import/export. Reuse the existing static SubagentActivity as the existing lazy boundary's fallback. The fallback receives receipt rows, or current query rows if the receipt retires before the module resolves, strictly as noninteractive presentation. The live observer remains behind the existing createIdleImport and dynamic import. Error containment and localized Reload recovery are unchanged.

There is still one receipt/projection owner. Empty/denied retirement, scope, caps, protocol and cache shape are unchanged. Cached rows confer no open/stop actions. Emitted source maps put the static row and live observer in separate deferred activity chunks, not startup/shared chunks.

User Impact

Cached Subagents and the other Details sections render without waiting for live activity. Outputs and Automations remain stationary through the static-to-live handoff. Native first populated Details is earlier in 10/11 pairs: paired median −32.3 ms, just over half of the prior 60.4 ms admission. Unpaired medians are 1,394.3 → 1,328.8 ms, with separated IQRs. Team-scale improves by a paired median 8.8 ms, descriptive only.

Open follow-up, deliberately outside this change: four-or-more ordinary rows in the default expanded desktop section still exceed the bounded cached preview.

Evidence

Before/after (synthetic fixture)

Base e27b909e49d3: with two ordinary children already cached, the activity chunk held and connect deferred, the open Details panel still has no populated sections.

Base held chunk; Details empty

Candidate e3b66a3a94b2: the first populated held state shows both display-only cached children in the final 203 px Subagents group, with Outputs and Automations already in place while connect remains deferred.

Candidate held chunk; cached ordinary children

Candidate after the module and connect resolve: both live rows retain exactly the same Subagents, Outputs and Automations bounds as the first populated held frame (0 px maximum difference).

Candidate live rows; unchanged Details geometry

Base e27b909e49d33bd723a2cfc10e944845f00249b7; candidate e3b66a3a94b2c50dc5ddff763e8f2a7b5da4b2cb. One dedicated AWS c7a.4xlarge, lease cbx_267469c1ce10, observed 16 vCPUs / 32 GiB, repository Playwright Chromium 156.0.8078.4. Native RTT 80 ms and Team-scale live-capped, 240 messages / 12 widgets, seeded ordinary children, warm cache, open Details, no persistent-children owner-filter override. Existing committed native and Team-scale workloads; unprofiled, eight-second windows, standing LoAF/mutation and RPC probes. Native alternates pair order; Team interleaves ABAB. Acceptance was recorded on this draft before capture.

The compared UI directories are frozen clean-source pnpm ui:build outputs. The Gateway uses node scripts/prepare-native-protocol.mjs, OPENCLAW_BUILD_PRIVATE_QA=1 OPENCLAW_RUN_NODE_SKIP_DTS_BUILD=1 node --import ./scripts/tsx.mjs scripts/build-all.mts gatewayWatch, then node --import ./scripts/tsx.mjs scripts/write-build-info.ts. Build/fixture preparation is outside capture. BASE_UI / CANDIDATE_UI name those frozen directories; PROBE_DIR contains the unchanged standing init probes. A/A replaces CANDIDATE_UI with BASE_UI in both commands.

node --import ./scripts/tsx.mjs scripts/perf/warm-reload-proof.ts \
  --dist dist --ui-root "$CANDIDATE_UI" --base "$BASE_UI" --candidate "$CANDIDATE_UI" \
  --output .local/l295-sync/proof/native-ab --transcript-late-paint --details-session-facts \
  --active-targets --route chat --reloads 11 --rtt-ms 80 --capture-ms 8000 \
  --init-script "$PROBE_DIR/loaf-mutation.init.js" --init-script "$PROBE_DIR/ws-rpc-census.init.js"
node --import ./scripts/tsx.mjs scripts/bench-control-ui-cold-load.ts \
  --bundle-dir "$BASE_UI" --compare-bundle-dir "$CANDIDATE_UI" --runs 22 \
  --warm-reload --untraced --latency-profile live-capped --gateway-http --port 19670 --sandbox-port 19671 \
  --row-facts --pane-chrome-facts --details-session-facts --details-subagent-activity \
  --sidebar-presentation --sidebar-cached-parity --full-uuid-route --face chat \
  --init-script "$PROBE_DIR/loaf-mutation.init.js" --init-script "$PROBE_DIR/ws-rpc-census.init.js" \
  --capture-ms 8000 --output .local/l295-sync/proof/bench-ab

First post-hello RPC send means the first serialized non-connect request on the authenticated WebSocket. Hello-handled is the application microtask completion mark; a request sent during handling can precede that mark.

Each harness has 11 A/B pairs plus 11 A/A pairs. All 88 scored captures valid; no discarded/replayed samples, missing hard metrics, truncated buffers or censored tails. At least 6.05 s native / 5.52 s Team quiet tail remains after final rows, last Details sample and visual/layout/mutation activity. Native A/A and Team A/A use identical frozen baseline bundles. Per-file hashes bind each bundle to its pinned clean source; native quiet-host idle samples were 81.0% and 75.9% on the dedicated 16-vCPU box.

Primary A passes 11/11 on both harnesses: first populated Subagents is already at final height (native 112→112 px, Team 142→142 px); Outputs/Automations movement is 0/0 px on every base and candidate capture, including A/A, with no later section insertions/removals. Primary B passes natively: 10/11 earlier, paired median −32.3 ms, and 6/11 recover more than the preregistered 30.2 ms. Native A/A is only 6/11 earlier, paired median −5.8 ms.

No hard secondary crosses the standing regression rule. Native hello/first-RPC paired rises are +21.7/+22.9 ms, with mixed 5-better/6-worse signs and overlapping IQRs; identical-bundle A/A has +38.5/+38.8 ms and the same sign split. Team LoAF is +17 ms paired median, 8/11 worse with overlapping IQRs; final rows are +27.4 ms, 7/11 worse (A/A +31.2 ms, 8/11 worse). These are reported as noise/inconclusive secondaries, not claims of unchanged execution cost.

Three separate unscored native pairs establish causality: first populated Details follows live-module response by +15.7/+36.1/+36.3 ms on base, but precedes it by 24.3/12.2/10.1 ms on candidate. All retain final geometry. The regression also holds the actual activity request until cached rows are asserted, rather than substituting a mocked lazy component.

CI-owned byte check

corepack pnpm ui:check-performance:base e27b909e49d33bd723a2cfc10e944845f00249b7 passes, Node 24.19.0 / Vite 8.3.5 / Pako 3.0.3. These are its hash-normalized source-comparison values, not full-build or served-gzip sizes. No caps changed.

Route JS gzip Pinned main base Candidate Delta Unchanged cap
Chat 1,288,347 B 1,287,931 B −416 B 1,287,197 B
New 796,318 B 796,318 B 0 B 796,484 B
Startup 89,478 B 89,478 B 0 B 89,946 B comparison enforcement limit

Chat has inherited absolute excess on both arms (1,150 → 734 B); the repository comparison accepts the reduction. The largest ordinary shared chunk also has inherited excess. This is not a claim that every absolute cap is below its limit. Request counts are unchanged: Chat 20, New 15, startup 3. An earlier pre-rebase candidate exceeded Chat; that result is superseded by this exact-head/current-base comparison.

Native target snapshot: 114,800 → 114,800 B. Team target snapshot: 61,967 → 62,223 B (+256); identical-bundle A/A also differs 61,741 → 61,966 B (+225), so the whole difference cannot be attributed to code. No cache fields changed. Native RPC counts are base 66–67 / candidate 66; median request payload size is 37,701 B on both, response 563,156 → 562,625 B (A/A also varies). Team is 54–55 RPCs on both arms.

native-ab — 11 pairs

All times are ms from navigation. Entries are median [Q1, Q3]; delta is candidate minus base. A/A labels are positional, with identical source bytes.

Metric Base Candidate Paired delta Better / worse
First populated Details 1394.3 [1366.9, 1433.0] 1328.8 [1310.0, 1353.7] -32.3 [-100.2, -10.9] 10/1
Hello handled 783.8 [747.5, 794.5] 799.8 [756.0, 803.6] 21.7 [-39.8, 55.3] 5/6
First post-hello RPC send 807.9 [774.3, 820.8] 827.5 [782.1, 830.1] 22.9 [-39.8, 56.7] 5/6
FCP 63.2 [61.9, 63.5] 63.6 [62.4, 64.4] -0.1 [-0.6, 3.2] 6/5
First painted rows 599.5 [569.5, 613.5] 615.4 [573.5, 619.5] -8.0 [-36.0, 53.9] 6/5
Final rows 534.1 [503.6, 545.6] 546.2 [507.8, 552.7] -9.8 [-36.1, 49.5] 6/5
LoAF blocking 390.5 [368.9, 408.7] 398.9 [369.6, 405.1] 9.3 [-36.2, 40.4] 5/6
CLS 0.000855 [0.000855, 0.000855] 0.000855 [0.000855, 0.000855] 0.000000 [0.000000, 0.000000] 0/0
Snapshot bytes 114,800 [114,800, 114,800] 114,800 [114,800, 114,800] 0 [0, 0] 0/0
Pair Base Details Candidate Details Δ Details Δ hello Δ first RPC Δ FCP Δ painted rows Δ final rows Δ LoAF Δ CLS
1 1530.6 1563.6 33.0 21.7 22.9 0.5 -8.0 -9.8 9.3 0.000000
2 1442.7 1307.0 -135.8 -45.7 -47.3 9.5 -36.1 -39.6 -45.3 0.000000
3 1344.7 1332.0 -12.7 51.8 55.3 -1.7 43.9 39.3 41.0 0.000000
4 1394.3 1313.1 -81.2 -35.6 -35.8 -0.3 -24.0 -24.4 -9.9 0.000000
5 1352.0 1319.7 -32.3 58.8 58.0 4.1 51.9 45.9 28.5 0.000000
6 1423.2 1328.8 -94.4 -30.3 -30.4 -0.1 -40.1 -33.1 -27.1 0.000000
7 1381.9 1376.5 -5.4 60.5 60.5 2.2 60.1 60.6 39.9 0.000000
8 1455.4 1299.3 -156.1 -44.1 -43.8 11.8 -36.0 -39.2 -48.7 0.000000
9 1389.6 1375.3 -14.3 49.3 48.3 -0.9 55.9 53.1 53.3 0.000000
10 1410.9 1305.0 -106.0 -58.4 -58.9 -1.6 -48.1 -47.1 -47.3 0.000000
11 1340.9 1331.7 -9.1 63.7 62.3 -0.3 60.0 55.9 41.1 0.000000

All 11 geometry pairs: base/candidate first→final Subagents height and 0/0 px Outputs/Automations movement match the values above; no insertions/removals.

native-aa — 11 pairs

All times are ms from navigation. Entries are median [Q1, Q3]; delta is candidate minus base. A/A labels are positional, with identical source bytes.

Metric Base Candidate Paired delta Better / worse
First populated Details 1423.6 [1403.7, 1448.4] 1417.8 [1400.4, 1445.1] -5.8 [-45.0, 18.9] 6/5
Hello handled 800.8 [754.7, 811.0] 788.8 [757.8, 804.6] 38.5 [-49.0, 43.5] 5/6
First post-hello RPC send 826.5 [781.8, 839.0] 816.7 [786.4, 833.8] 38.8 [-48.5, 44.9] 5/6
FCP 64.3 [61.8, 70.0] 63.3 [62.5, 63.6] -1.9 [-5.5, 0.9] 8/3
First painted rows 615.6 [575.5, 623.5] 603.5 [575.5, 615.5] 4.0 [-46.0, 37.9] 5/6
Final rows 548.0 [510.6, 553.9] 538.0 [508.5, 547.3] 8.1 [-42.6, 36.1] 5/6
LoAF blocking 399.4 [382.3, 414.6] 401.7 [377.4, 414.9] -15.5 [-39.7, 31.8] 6/5
CLS 0.000855 [0.000855, 0.000855] 0.000855 [0.000855, 0.000855] 0.000000 [0.000000, 0.000000] 1/0
Snapshot bytes 114,800 [114,800, 114,800] 114,800 [114,800, 114,800] 0 [0, 0] 0/0
Pair Base Details Candidate Details Δ Details Δ hello Δ first RPC Δ FCP Δ painted rows Δ final rows Δ LoAF Δ CLS
1 1564.2 1533.8 -30.4 78.4 81.0 -3.1 4.0 8.1 -37.8 -0.000855
2 1447.7 1363.2 -84.4 -54.3 -57.3 -1.9 -44.0 -45.6 -41.6 0.000000
3 1370.5 1453.9 83.4 40.5 40.4 14.3 32.0 30.0 20.8 0.000000
4 1424.6 1376.1 -48.4 -43.6 -41.1 -2.0 -60.0 -62.3 -46.0 0.000000
5 1414.7 1444.0 29.3 57.9 57.5 -11.2 48.0 49.7 36.2 0.000000
6 1449.2 1407.6 -41.6 -54.8 -55.9 2.5 -43.9 -39.6 -33.5 0.000000
7 1423.6 1417.8 -5.8 39.2 38.8 -7.8 35.9 33.9 29.4 0.000000
8 1504.2 1400.7 -103.5 -71.1 -75.6 -0.7 -51.9 -52.0 -45.2 0.000000
9 1379.8 1446.2 66.3 46.5 49.3 -1.3 40.0 38.2 34.2 0.000000
10 1396.1 1400.1 3.9 -43.4 -38.5 2.6 -48.1 -39.1 -15.5 0.000000
11 1411.2 1419.7 8.4 38.5 39.6 -12.4 39.9 41.2 35.7 0.000000

All 11 geometry pairs: base/candidate first→final Subagents height and 0/0 px Outputs/Automations movement match the values above; no insertions/removals.

bench-ab — 11 pairs

All times are ms from navigation. Entries are median [Q1, Q3]; delta is candidate minus base. A/A labels are positional, with identical source bytes.

Metric Base Candidate Paired delta Better / worse
First populated Details 598.8 [593.0, 608.3] 591.1 [587.0, 593.8] -8.8 [-27.3, -2.1] 9/2
Hello handled 668.9 [662.0, 686.8] 672.8 [661.1, 682.1] -4.0 [-14.8, 12.3] 7/4
First post-hello RPC send 644.7 [637.4, 660.8] 648.9 [637.1, 657.8] -5.3 [-14.1, 14.9] 7/4
FCP 96.0 [96.0, 100.0] 100.0 [96.0, 100.0] 0.0 [0.0, 2.0] 0/3
First painted rows 376.0 [376.0, 378.0] 380.0 [376.0, 382.0] 4.0 [0.0, 8.0] 2/6
Final rows 1702.2 [1687.5, 1750.5] 1743.1 [1700.6, 1790.5] 27.4 [-34.2, 41.1] 4/7
LoAF blocking 225.0 [220.0, 243.5] 238.0 [222.0, 255.5] 17.0 [0.5, 24.5] 3/8
CLS 0.000400 [0.000386, 0.000400] 0.000371 [0.000371, 0.000400] 0.000000 [-0.000029, 0.000000] 5/1
Snapshot bytes 61,967 [61,967, 61,967] 62,223 [62,223, 62,223] 256 [256, 256] 0/11
Pair Base Details Candidate Details Δ Details Δ hello Δ first RPC Δ FCP Δ painted rows Δ final rows Δ LoAF Δ CLS
1 600.6 591.8 -8.8 -4.0 -5.3 0.0 0.0 40.7 12.0 -0.000029
2 594.1 593.3 -0.8 43.9 41.3 0.0 0.0 247.3 23.0 0.000000
3 583.3 628.8 45.5 14.6 18.7 0.0 4.0 27.4 -20.0 0.000000
4 610.4 576.9 -33.5 -14.5 -13.8 0.0 -4.0 -50.1 -6.0 -0.000029
5 658.4 594.2 -64.2 -33.2 -32.4 0.0 16.0 -33.9 26.0 0.000029
6 642.8 590.9 -51.9 -45.9 -44.8 0.0 12.0 0.1 28.0 0.000000
7 598.8 591.1 -7.7 10.1 11.0 4.0 4.0 41.5 31.0 -0.000029
8 591.3 573.8 -17.5 -10.6 -10.3 0.0 0.0 -34.5 17.0 -0.000029
9 592.2 588.8 -3.4 -2.4 -0.7 4.0 4.0 -172.2 3.0 0.000000
10 606.3 585.1 -21.2 -15.0 -14.5 0.0 -8.0 28.7 19.0 0.000000
11 593.9 606.2 12.3 25.8 26.4 16.0 24.0 61.9 -2.0 -0.000029

All 11 geometry pairs: base/candidate first→final Subagents height and 0/0 px Outputs/Automations movement match the values above; no insertions/removals.

bench-aa — 11 pairs

All times are ms from navigation. Entries are median [Q1, Q3]; delta is candidate minus base. A/A labels are positional, with identical source bytes.

Metric Base Candidate Paired delta Better / worse
First populated Details 610.3 [607.0, 624.5] 609.9 [596.5, 649.9] -2.6 [-28.1, 39.3] 6/5
Hello handled 673.4 [669.2, 682.4] 673.8 [666.1, 712.8] 5.9 [-19.3, 40.8] 5/6
First post-hello RPC send 648.0 [643.3, 657.2] 648.5 [640.6, 687.9] 4.9 [-18.5, 41.5] 5/6
FCP 100.0 [96.0, 100.0] 96.0 [96.0, 100.0] 0.0 [-2.0, 0.0] 3/2
First painted rows 380.0 [378.0, 382.0] 380.0 [376.0, 384.0] -4.0 [-8.0, 8.0] 6/5
Final rows 1726.5 [1703.9, 1793.5] 1776.3 [1740.0, 1804.9] 31.2 [-17.6, 97.2] 3/8
LoAF blocking 237.0 [229.5, 256.0] 237.0 [226.0, 247.0] 5.0 [-19.0, 11.0] 4/7
CLS 0.000400 [0.000371, 0.000400] 0.000400 [0.000371, 0.000400] 0.000000 [-0.000029, 0.000029] 4/4
Snapshot bytes 61,741 [61,741, 61,741] 61,966 [61,966, 61,966] 225 [225, 225] 0/11
Pair Base Details Candidate Details Δ Details Δ hello Δ first RPC Δ FCP Δ painted rows Δ final rows Δ LoAF Δ CLS
1 606.1 589.7 -16.4 -15.3 -16.3 -4.0 -8.0 65.1 5.0 -0.000029
2 594.6 660.0 65.4 67.4 67.1 0.0 16.0 98.5 4.0 0.000000
3 610.3 641.7 31.4 35.6 35.3 0.0 -12.0 31.2 -28.0 0.000000
4 626.5 591.8 -34.7 -16.3 -16.1 0.0 -8.0 105.6 32.0 0.000029
5 607.8 609.6 1.8 6.0 6.9 -4.0 4.0 20.3 -10.0 0.000029
6 772.9 609.9 -163.0 -40.7 -21.2 -4.0 8.0 -123.2 5.0 0.000029
7 593.8 591.2 -2.6 5.9 4.9 0.0 -4.0 96.0 20.0 -0.000029
8 610.9 658.1 47.2 45.9 47.6 4.0 -4.0 10.7 -54.0 -0.000029
9 622.5 601.1 -21.4 -22.3 -20.7 0.0 -8.0 -121.4 -69.0 0.000000
10 661.3 615.8 -45.5 -38.1 -42.5 0.0 8.0 -45.9 14.0 -0.000029
11 608.1 669.8 61.7 58.9 57.9 4.0 8.0 112.3 8.0 0.000029

All 11 geometry pairs: base/candidate first→final Subagents height and 0/0 px Outputs/Automations movement match the values above; no insertions/removals.

Validation and remaining gap

  • AWS focused 31/31 pass: Details arrival 11, composition 18, existing ordinary-child reload 2 (normal and actual activity-chunk abort). pnpm test ui/src/e2e/chat-details-subagents-reload.e2e.test.ts --maxWorkers=1 wall 35.13 s. The exact strengthened normal case is red on pinned base: actual module request is held, cache priming succeeds, but section.chat-details-session never appears (10 s assertion timeout).
  • UI types, focused lint, test-line ratchet and official paired byte check pass. Test changes have zero net lines, no allocation/ceiling raise, no extra case/browser boot/timer/production seam.
  • Independent local review of the full final-head diff and unchanged presentation/live/boundary owners is clean through P2.
  • Full UI suite attempted, BLOCKED in build preflight before any test cases ran, exit 2 on candidate and current main 650091daacdc10aa374e82a6327e8beffe136072. Both fail extensions/deep-research/browser/index.tsx importing missing ./client.js. Candidate wall 11.25 s; current-main control 11.36 s. Chromium, Firefox and WebKit (including OS dependencies) were installed; checkout ancestry was not group/world-writable. No missing-browser/private-boundary exception was applied. No whole-suite pass is claimed; this remains a landing-proof gap until the unrelated main build is repaired.
  • Native comparison used the supported gatewayWatch runtime profile plus normal UI builds from separate clean pinned source checkouts because the ordinary full build hits that same inherited research error. Both UI bundles use the same build method; the unchanged candidate Gateway backend serves both through the existing comparison owner. Native browsers/Gateways were stopped.
  • Exact-head ready CI is green: run 42282766136, head e3b66a3a94b2c50dc5ddff763e8f2a7b5da4b2cb, 26 successful / 29 skipped jobs. All three selected checks-ui shards, the selected UI e2e shard and control-ui-performance pass. This selected CI coverage does not replace the full-suite gap above. No merge/auto-merge is authorized.

AWS provenance: final proof lease/run, cbx_267469c1ce10. Subsequent comparison stages ran serially over its native SSH transport without another checkout sync. Earlier setup-only leases cbx_dad6a50dd97e and cbx_756f15385e23 were released before this comparison; their measurements were not mixed into it. Reusing fresh-PR checkout once reset ignored build artifacts before capture; that failed setup stage was corrected, not treated as a product result.

Production LOC

git diff --stat origin/main...HEAD -- ':!*.test.ts' ':!*test-support*' ':!docs/*':

chat-details-session.tsx          | 16 ++--------------
chat-subagent-activity-lazy.tsx   |  7 ++++---
2 files changed, 6 insertions(+), 17 deletions(-)

Runtime −11 LOC. Third touched file: ui/src/e2e/chat-details-subagents-reload.e2e.test.ts (37 added / 37 deleted). No schema, config, global boot/mount ordering, L293 docking/loader/prewarm, sidebar or transcript edits.

Inspected synthetic before/after

The attached strips are raw crops of the same viewport region, from native pair 5 (the median paired Details delta, −32.3 ms). Main at 1,336 ms still has empty Details; candidate at 1,333 ms has the complete 112 px Subagents group, Outputs and Automations. Their DOM first-populated milestones are 1,352 / 1,320 ms. Screencast samples support the visible state; they do not claim every-vsync precision. Full frames were inspected for incidental data before cropping/upload; all content is synthetic.

Main — 1,336 ms Candidate — 1,333 ms
Baseline Details still empty Complete cached Details

All three task leases are released with provider cleanup complete; no task Gateway listeners remained before release.

@clawsweeper

clawsweeper Bot commented Nov 6, 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: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on maintainer Only explicit maintainer approvals or decisions remain; merge is still blocked. 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 6, 2026
@clawsweeper

clawsweeper Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge.

What this changes

This PR renders cached Subagents immediately while the live activity module loads, removing the wait that holds all desktop Details sections.

Example: Reload an open desktop Details panel with two cached ordinary child sessions while the activity chunk is delayed.

  • Before: The composition waits for the activity module before showing its sections.
  • After: Both cached rows appear without navigation actions while sibling sections render, then the live body takes over.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The focused patch has no identified correctness defect, while evidence currently supports harness-level behavior rather than qualified performance.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored draft is outside the ordinary contributor proof gate; its supplied evidence describes browser smoke against a mock Gateway, while the explicitly required native and Team-scale real-Gateway comparison, source-byte qualification, and visual captures are pending.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Performance · Worth it: Yes · Fix scope: Complete
User problem: An open Details panel waits for optional live activity code even when cached child rows are already available.
Reason: The maintainer-authored direction removes an identifiable unnecessary dependency while retaining the earlier geometry and display-only contracts.

Merge readiness

⛔ Blocked before merge - 1 item remains

Keep this maintainer-owned experiment open under its explicit do-not-merge hold; source review found no actionable introduced defect.

Priority: P2
Reviewed head: 39356d57bd0cfc643c40910847c258284adbc529

Before merge

  • Await maintainer action - The lead must explicitly clear the do-not-merge hold before this PR can land.

Findings

None.

Tests

  • Missing end-to-end proof: The body reports baseline-red/candidate-green browser smoke, but current-head real-Gateway performance qualification, inspected before/after captures, source-byte comparison, and final broad validation remain pending.
Agent review details

How this fits together

Control UI Details consumes scoped cached display receipts and live session queries, renders child activity, and enables navigation through the existing live owners.

flowchart TD
  A[Warm chat reload] --> B[Scoped Details receipt]
  B --> C[Desktop Details composition]
  C --> D[Static activity fallback]
  C --> E[Outputs and Automations]
  F[Lazy live activity module] --> G[Live activity renderer]
  D --> G
Loading

Technical review

Best possible solution:

Use the existing static renderer inside the activity loading boundary while preserving live query ownership and localized recovery.

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

Current main explicitly awaits activity-module preparation before mounting the desktop composition when ordinary cached rows exist; the strengthened browser case holds that request, but no reproduction was executed during this review.

Is this the best way to solve the issue?

The patch is the smallest complete source change for removing this dependency: it reuses existing rendering, loading, and recovery owners without adding state or another presentation implementation.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 097f990aa244.

Provenance checked

  • Composition readiness and activity preloading changes intended behavior with a stated reason (1ce2601: Prevent independent Details roots from painting before cached ordinary activity, accepting a measured admission delay.)
  • Cached reload regression keeps the original intent (1ce2601: Protect first-populated-frame geometry and localized chunk-failure recovery; the changed test retains these checks while deliberately delaying the chunk.)
  • Lazy activity ownership keeps the original intent (faeacc7: Fold inert single-consumer import shells while preserving lazy-loading boundaries; the live observer body remains lazy under the same owner.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 1ce2601 adds ui/src/pages/chat/components/chat-subagent-activity-lazy.tsx:6 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 1ce2601c0831; files: ui/src/pages/chat/components/chat-subagent-activity-lazy.tsx)
  • Vyctor H. Brzezowski: Raw commit 4813399 adds ui/src/pages/chat/components/chat-details-session.tsx:649 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 4813399c4aba; files: ui/src/pages/chat/components/chat-details-session.tsx)

PR surface

Source -11, Tests +11, Other +2. Total +2 across 4 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 2 6 17 -11
Tests 1 32 21 +11
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 2 0 +2
Total 4 40 38 +2

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 changes Production +6/−17 lines; tests +32/−21 lines The change removes the shared wait and extends an existing browser case to hold the actual activity chunk without adding another case or production seam.

Labels

Label changes:

  • add P2: This improves warm-reload responsiveness in the Details panel with limited user impact and no established urgent workflow failure.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: ⏳ waiting on maintainer: Only explicit maintainer approvals or decisions remain; merge is still blocked.

Label justifications:

  • P2: This improves warm-reload responsiveness in the Details panel with limited user impact and no established urgent workflow failure.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: ⏳ waiting on maintainer: Only explicit maintainer approvals or decisions remain; merge is still blocked.

Rank-up moves

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

  • Complete the predeclared comparison and publish inspected synthetic before/after captures and unchanged-budget source-byte results.

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 6, 2026, 1:19 PM ET / 18:19 UTC.

@steipete
steipete force-pushed the steipete/coldload-details-subagents-sync branch from 39356d5 to e3b66a3 Compare November 6, 2026 18:36
@steipete steipete changed the title experiment(control-ui): synchronous cached Subagents [do not merge] perf(control-ui): render cached Subagents without awaiting live activity Nov 6, 2026
@steipete
steipete marked this pull request as ready for review November 6, 2026 19:47
@chatgpt-codex-connector

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

Copy link
Copy Markdown
Contributor

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-06T19:50:11.654888Z e3b66a3 Draft marked ready
ℹ️ 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 merged commit d482d76 into main Nov 6, 2026
176 of 178 checks passed
@steipete
steipete deleted the steipete/coldload-details-subagents-sync branch November 6, 2026 20:20
@steipete

steipete commented Nov 6, 2026

Copy link
Copy Markdown
Contributor Author

Landed as d482d76 (squash of e3b66a3).

Land-ready evidence at the pinned head:

  • Gate on AWS c7a.4xlarge, 11 pairs plus A/A per harness: Outputs/Automations movement 0 px in 11/11 (native and Team-scale); first populated Details earlier natively in 10/11 (paired median -32.3 ms), Team-scale -8.8 ms; no hard secondary crosses the standing rule.
  • Strengthened reload e2e holds the real activity chunk and asserts cached rows in the first Details frame (red on main, green here); synthetic before/after stills above were inspected before landing.
  • Exact-head CI run 42282766136 green, including the selected checks-ui shards, UI e2e shard and control-ui-performance (Chat -416 B vs base, no caps changed).
  • ClawSweeper: no findings; its rank-up move (inspected synthetic before/after captures plus the unchanged-budget byte result) is applied in the PR body. Codex review at the exact head: no findings.

Known gap: the full UI suite could not run because current main fails to build the Deep Research browser pane (missing client.js); the same failure reproduces on main 650091d, and #194283 restores it.

Follow-up: four or more ordinary children on the default expanded desktop Subagents section still cache three rows while live shows all of them.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 7, 2026
…ity (openclaw#194263)

Follow-up to openclaw#193913. That change made the whole native Details composition wait for the live subagent-activity chunk whenever the cached receipt held ordinary children, because independent section roots could otherwise paint before the activity body. The wait cost 60.4 ms natively before the first populated Details frame. It also made it impossible to draw Details in the same frame as the first cached transcript rows, which openclaw#194142 needs.

The composition-wide prepared() memo and its Show wrapper are gone, along with the now-unused preloadChatSubagentActivity export. The existing static SubagentActivity presentation becomes the fallback of the activity's existing ChatLazyBoundary. It receives the receipt rows (or the current query rows if the receipt retires first) strictly as noninteractive presentation, at the same geometry as the live row. When the live observer module resolves through its unchanged createIdleImport owner, live rows replace the cached ones in place. A failed chunk still stays inside the boundary's local error view with Reload, and the other sections still render. The receipt, projection, empty/denied retirement and the display-only rule are unchanged.

Proof: 11 interleaved pairs plus A/A on a quiet AWS c7a.4xlarge, native and Team-scale, with active chat and seeded ordinary children. Outputs/Automations movement stays 0 px in 11/11 pairs on both harnesses. First populated Details is earlier natively in 10/11 pairs (paired median -32.3 ms, 1,394 -> 1,329 ms) and at Team scale by -8.8 ms. No hard secondary crosses the standing regression rule. The strengthened e2e holds the real activity chunk request and asserts cached rows in the first Details frame; it fails on main, where Details never appears while the chunk is held. Synthetic before/after stills of that held state are in the PR. Exact-head CI is green, including all selected checks-ui shards, the UI e2e shard and control-ui-performance. The full UI suite could not run because current main fails to build extensions/deep-research/browser (missing client.js, fix in flight as openclaw#194283); that gap is identical on main.

Size: UI runtime -11 LOC. CI Chat boot JS -416 B against its base, New and startup unchanged, no caps or baselines touched. Test changes are line-neutral.

Open follow-up: on the default expanded desktop section, a session with four or more ordinary children still caches three rows while live shows all of them.
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: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: S status: ⏳ waiting on maintainer Only explicit maintainer approvals or decisions remain; merge is still blocked.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant