Skip to content

perf(control-ui): restore the cached sidebar sooner on warm reloads - #189791

Merged
steipete merged 5 commits into
mainfrom
steipete/coldload-sidebar-reload-regression
Nov 1, 2026
Merged

steipete merged 5 commits into
mainfrom
steipete/coldload-sidebar-reload-regression

Conversation

@steipete

@steipete steipete commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Warm reloads can discard already displayed cached sidebar rows during native host reparenting or while an expanded-child roster is still loading. A newly selected offscreen row can also be remounted when scrolling precedes scheduled geometry. The campaign's dashboard-deep-link reload evidence recorded 14 visual states; this supporting change targets the sidebar restoration work within that flow.

Why This Change Was Made

Keep the sidebar owner attached across same-turn host reparenting, matching the bridge view's existing lifetime. Transient menus and person cards still dismiss immediately at native detach. Remove the three-second forced partial handoff so the cached sidebar remains until the root and expanded-child reads settle. Preserve the DOM identity of a newly selected offscreen row while its scheduled geometry update is pending. The offscreen-row suppression and its scrolling-test adaptation are now upstream in #189821; their superseded L259 changes were removed.

The settings-correct Team-shape fixture and probes remain reusable by both the ordinary and transcript/short-visit warm-reload modes: involving-me/category/created, 97 groups, five collapsed sections, empty-groups policy, previews off, pins, archived dashboard-qualified chat targets and expanded children. The existing reconnect and delayed-child regression cases are retained.

Source attribution: immediate sidebar owner retirement was wired in e80558a4da0f (#168852); the three-second completeness bypass was introduced in c44496a0cb48 (#180569). Both precede r241 83c57bf3. No post-r241 introducing commit was established for the reported initial chat blank. This PR carries the independently reproduced supporting fixes; it does not claim a completed binary bisect or restoration of the entire first-app page.

User Impact

Cached rows remain displayed through same-turn reparenting and slow roster handoff; newly selected rows remain mounted while geometry catches up. No configuration, Gateway protocol or server schema changes.

This does not fix the chat-route initial blank or the deletion invalidation storm. The storm is handled separately in #189729. The initial chat owner/model and scheduled-geometry gap is assigned to a follow-up that builds on this branch. The initial chat gap remains observable. The deletion-storm fix is already in the rebased main and is not part of this diff.

Evidence

Final-head focused/native tests, both pre-fix red controls, runtime/UI builds, combined transcript/short-visit rig smoke and check-changed.mjs pass on fd439a456597ac9154be5889a192718e0216537d, based on main c2bbb1059f85c3fe542e1f6620dea0e6bd4f18b2. Fresh complete-candidate review is clean through P2. The full UI suite completed: 884 files passed, two failed, and three skipped; both failures reproduce unchanged on pristine main. Exact-head CI is green. The three sidebar runtime blobs are unchanged from the previously tested head. The merged rig shares one 97-category shape across both proof modes.

Historical combined comparison

The measurements below cover the earlier combined L259 prototype, including offscreen-row suppression now landed in #189821. They are retained for campaign provenance and the requested per-pair counts; they are not an isolated speedup claim for the remaining rebased diff. The historical 97-category probe reduced mounted sidebar rows from 154 to 19; that range suppression is now upstream.

Accepted supporting measurements: 11 interleaved pairs per route on one quiet AWS c7a.4xlarge (cbx_962e59f9fa51), repository Chromium, synthetic Team-scale data, real loopback Gateway, 80 ms network profile, unprofiled. Measurement candidate 1674aedfc2de, base 84133d32283a; the original combined candidate also precedes the immediate transient-menu/person-card dismissal repair at native detach. The remaining rebased diff is validated separately below. All 556 captured PNGs across 44 warm runs were inspected. The ordinary rig pauses peer JavaScript, so it does not prove storm behavior. Timings are not from the shared Mac.

Metric Historical base median Combined candidate median Better pairs
First populated sidebar pixels, chat 942.54 ms 783.61 ms 10/11
First populated sidebar pixels, dashboard 814.48 ms 665.78 ms 10/11
LoAF blocking, chat 460.80 ms 198.20 ms 11/11
LoAF blocking, dashboard 546.50 ms 300.70 ms 11/11
Continuity observation Historical base Combined candidate
Dashboard reloads with initially empty/partial sidebar 1/11 0/11
Chat reloads with initially empty sidebar 11/11 11/11
Chat empty captured frames 22 13
Final live/saved hosts 22/22 22/22

The tiny chat CLS increase has non-overlapping IQRs (0.003919 → 0.003967); raw deltas are included below. Other mixed/overlapping secondaries are reported without claiming improvement. The original complete-first-app chat gate did not pass; this PR is the separately approved supporting win.

Final-head validation

Head fd439a456597ac9154be5889a192718e0216537d, pristine main control c2bbb1059f85c3fe542e1f6620dea0e6bd4f18b2, AWS c7a.4xlarge lease cbx_5b32e482ac20 (run). Frozen-lockfile install and repository Chromium/WebKit setup pass. Times are whole command wall times, not performance measurements.

Command Result Wall time
pnpm test ui/src/components/app-sidebar-online.test.ts --maxWorkers=1 (Node) 22 pass 11.66 s
Same file under the verified repository-pinned Bun 22 pass 9.77 s
pnpm test ui/src/components/sidebar-snapshot.test.ts --maxWorkers=1 33 pass 4.93 s
pnpm test test/scripts/team-shape-fixture.test.ts --maxWorkers=1 7 pass 48.78 s
pnpm test ui/src/components/app-sidebar-session-visibility.browser.test.ts --maxWorkers=1 6 pass 9.29 s
pnpm test ui/src/e2e/sidebar-complete-roster.e2e.test.ts --maxWorkers=1 3 pass 50.63 s
pnpm test ui/src/e2e/session-management.sidebar.e2e.test.ts --maxWorkers=1 11 pass 45.63 s
pnpm check:test-lines-ratchet --base c2bbb1059f85c3fe542e1f6620dea0e6bd4f18b2 6367711; ceiling: 6385704; slack: 17993. Baseline unchanged. 0.98 s
pnpm build:runtime Pass 125.80 s
pnpm ui:build Pass 28.24 s
Warm-reload rig: transcript/short-visit mode, both routes, one warm each Pass; functional smoke only 137.66 s
Warm-reload rig: ordinary mode, both routes, one warm each Pass; functional smoke only 126.41 s
node scripts/check-changed.mjs Pass; every selected check 968.48 s
node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts 884 files pass / 2 fail / 3 skip; 3369 cases pass / 2 fail / 4 skip 5686.05 s
Exact-head PR CI Green on fd439a456597ac9154be5889a192718e0216537d —

Both new-main red controls fail at the intended assertions: selected-row DOM identity (.toBe(selected)) and the delayed-root three-second handoff (live versus cached). Both pass in the unchanged candidate suite. Reconnect/forced-handoff regression coverage is retained. Transient surfaces still dismiss synchronously at native detach; the unchanged person-card tests pass under Node and pinned Bun.

All export scans now pass on this base; the previous base's unused-export finding is gone. Lint reports one existing Solid reactivity warning in the window scheduler and no errors. No suppression or baseline exception was added. Validation uses the committed candidate unchanged; no skip flag, readiness condition or timeout was altered to obtain a passing rerun. Both rig modes passed on both routes. All four cache receipts report state=live, saved=true, one persisted sidebar snapshot and one target transcript snapshot; sidebar record byte sizes are positive. The 97-group/102-section-order shape, five collapsed sections and archived targets were asserted. These functional smokes are not a new performance comparison.

The full UI command exited 1. Fresh single-file candidate/main controls reproduce both failures with the same errors; neither was waived or fixed by this PR:

Failed full-suite file Matching error in full run and both controls Candidate cases / wall Pristine-main cases / wall
extensions/qa-lab/src/control-ui-automation-management.real-gateway.e2e.test.ts Private mutation boundary is writable by another POSIX principal. 1 pass / 1 fail; 87.02 s 1 pass / 1 fail; 222.33 s
ui/src/e2e/chat-outbox-migration.e2e.test.ts Control UI initial roster did not finish loading and rendering. 1 pass / 1 fail; 36.83 s 1 pass / 1 fail; 37.28 s

All other 884 full-suite files pass, including the native sidebar and active-panel dashboard tests. The three skipped files are the desktop-resize, deferred-steer-custody and DeepSeek-search fixtures. The complete 889-file pass/fail/skip manifest and logs are retained with the lane proof. The final source head and clean tracked tree were verified after validation. All lane leases are released; no local Gateway was started.

Scope and size

UI runtime: three files, net +4 LOC. Requested production filter including perf fixture/probe/runbook: +260/−103, net +157. The timeout/expired path is deleted; no second cache owner is added. Runtime growth preserves the separate contracts for immediate transient dismissal, retained data ownership during same-turn moves, and selected/focused rows in windowed lists. Most growth is the reusable settings-correct fixture and evidence probes. No changelog change; release-note context: grouped cached sidebars restore sooner and survive same-turn reparenting and slow child-roster handoff.

Historical combined synthetic before/after

These captures show the earlier combined candidate, including the window suppression now upstream. They document the historical timing result. Final-head matched handoff captures follow below.

Representative paired chat reload, original full-page headless captures with synthetic data only. These are different capture times, explicitly labeled: main is still empty at ~891 ms; the candidate has populated sidebar rows by ~806 ms. Both had an earlier empty first-app frame. This shows earlier fill, not a claim that the initial blank or later style/avatar settling is fixed.

Main, ~891 ms after navigation:

Main at approximately 891 ms: sidebar rows still absent

Candidate, ~806 ms after navigation:

Candidate at approximately 806 ms: sidebar rows already populated

Final-head matched handoff captures

These full-page synthetic captures use the same held roster read on the dashboard route. Main has already handed off to live at the three-second boundary; the candidate retains the cached roster with actions disabled until the read settles. The visible rows look similar in this fixture, so these pictures do not claim a visible row-count reduction. The regression assertions prove the retained row keys and DOM identity. The unrelated synthetic sandbox widget is unavailable in both arms.

Main, held-read handoff:

Main dashboard during held roster read

Candidate, retained cached roster during the same held read:

Candidate dashboard retaining cached rows during held roster read

All medians, IQRs and per-pair deltas

11 interleaved pairs per route on one fixed c7a.4xlarge. Pair warm-01 with warm-01, through warm-11; capture alternates AB/BA order. Candidate minus baseline; negative is lower. Quartiles use linear interpolation at (n−1)q. Values are the L248 report probe fields plus manual first populated sidebar/child-pixel timestamps.

The firstPaintedRowsMs field is transcript text Element Timing, not sidebar rows. finalRowsDomMs is the last observed transcript row-signature change, not final paint. LoAF and CLS cover the whole capture; costs are not attributed exclusively to sidebar. Faster fill does not pass the absolute first-app sidebar gate: candidate chat still has a gap in 11/11 runs.

Route Metric Baseline median [Q1,Q3] Candidate median [Q1,Q3] Per-pair deltas 01–11 Median paired delta Better/worse/equal Timing evidence
chat Hello handled (ms) 517.55 [505.73, 526.86] 506.59 [491.23, 511.14] -17.65 / -43.77 / -8.04 / -20.65 / -21.51 / 4.16 / -120.60 / -32.66 / 32.17 / -38.75 / 33.10 -20.65 8/3/0 mixed/overlap; no demonstrated regression
chat FCP (ms) 744.53 [713.64, 777.01] 743.25 [698.82, 773.54] -19.86 / -140.62 / -25.32 / 2.28 / 44.60 / 79.69 / 103.22 / -62.17 / 36.74 / -90.64 / 2.05 2.05 5/6/0 mixed/overlap; no demonstrated regression
chat First transcript text, Element Timing (ms) 747.57 [715.61, 777.47] 743.48 [701.58, 775.47] -19.85 / -143.97 / -24.04 / 3.95 / 43.89 / 80.06 / 103.90 / -64.16 / 35.87 / -87.75 / -0.10 -0.10 6/5/0 mixed/overlap; no demonstrated regression
chat Last transcript row-signature change, DOM (ms) 380.20 [360.32, 385.81] 371.76 [341.33, 375.54] -17.45 / -42.17 / -6.04 / -71.55 / -16.11 / 0.46 / 59.10 / -35.06 / 27.17 / -40.65 / 24.40 -16.11 7/4/0 mixed/overlap; no demonstrated regression
chat LoAF blocking total (ms) 460.80 [450.60, 464.60] 198.20 [185.85, 220.75] -235.60 / -276.00 / -249.10 / -281.30 / -255.40 / -239.40 / -241.00 / -267.80 / -188.10 / -286.20 / -227.20 -249.10 11/0/0 favorable timing evidence
chat CLS 0.003919 [0.003914, 0.003919] 0.003967 [0.003943, 0.003967] -0.000086 / 0.000134 / 0.000048 / 0.000048 / -0.000134 / 0.000134 / 0.000048 / 0.000048 / 0.000000 / 0.000048 / 0.000058 0.000048 2/8/1 adverse timing evidence
chat First inspected populated sidebar/children pixels (ms) 942.54 [936.07, 1000.12] 783.61 [757.56, 845.88] -173.81 / -155.99 / -89.44 / -268.59 / -164.71 / -158.93 / 104.65 / -55.77 / -183.09 / -343.84 / -143.51 -158.93 10/1/0 favorable timing evidence
dashboard Hello handled (ms) 873.33 [843.48, 920.26] 715.33 [690.41, 768.39] 104.69 / -208.65 / -117.18 / -267.30 / -99.47 / -249.33 / -64.11 / -240.39 / -78.91 / -250.28 / -67.59 -117.18 10/1/0 favorable timing evidence
dashboard FCP (ms) 953.21 [834.29, 982.35] 789.80 [775.71, 810.45] 32.72 / -147.71 / -64.82 / -283.07 / -163.48 / -181.85 / -20.00 / -110.88 / -161.02 / -148.29 / -105.85 -147.71 10/1/0 favorable timing evidence
dashboard First transcript text, Element Timing (ms) 955.41 [835.52, 983.48] 795.39 [789.43, 821.49] 140.09 / -147.95 / -64.08 / -284.00 / -164.07 / -183.93 / -20.01 / -107.99 / -159.91 / -147.88 / -108.09 -147.88 10/1/0 favorable timing evidence
dashboard Last transcript row-signature change, DOM (ms) 452.83 [425.77, 464.16] 445.69 [426.79, 466.59] 137.09 / -25.55 / 21.42 / -53.80 / 15.33 / -32.33 / 57.29 / -31.79 / 41.19 / -52.58 / 35.21 15.33 5/6/0 mixed/overlap; no demonstrated regression
dashboard LoAF blocking total (ms) 546.50 [535.45, 552.90] 300.70 [272.15, 312.70] -228.60 / -245.00 / -248.50 / -355.40 / -210.00 / -316.60 / -205.40 / -269.70 / -191.90 / -282.30 / -255.70 -248.50 11/0/0 favorable timing evidence
dashboard CLS 0.002427 [0.002427, 0.002475] 0.002475 [0.002198, 0.002475] 0.000000 / 0.000000 / 0.000048 / 0.000048 / -0.000554 / 0.000048 / -0.000506 / 0.000048 / 0.000000 / -0.000506 / 0.000048 0.000000 3/5/3 mixed/overlap; no demonstrated regression
dashboard First inspected populated sidebar/children pixels (ms) 814.48 [746.04, 839.79] 665.78 [581.73, 686.52] -331.80 / -132.87 / -84.09 / -270.77 / -189.59 / -137.29 / 45.13 / -191.12 / -131.40 / -146.16 / -85.81 -137.29 10/1/0 favorable timing evidence

Campaign secondary rule: adverse non-overlapping IQRs, or ≥9/11 worse pairs with median paired rise >max(10ms,3% baseline median). CLS has no invented millisecond paired threshold; its IQR and raw per-pair values are reported. Favorable timing evidence never replaces correctness, cache provenance, storm coverage, or the absolute ≥10/11 complete-first-sidebar requirement.

@clawsweeper

clawsweeper Bot commented Oct 31, 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.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui scripts Repository scripts size: L labels Oct 31, 2026
@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. labels Oct 31, 2026
@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: 👀 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 Oct 31, 2026
@clawsweeper

clawsweeper Bot commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR preserves cached sidebar rows during reload handoffs and avoids mounting ordinary rows in wholly offscreen categories.

Example: An expanded child-session query takes 4 seconds during a warm reload.

  • Before: The three-second deadline replaces cached rows with an incomplete live sidebar.
  • After: Cached rows remain until the relevant reads finish or report an error.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The source repair is focused and has no actionable finding; reported production measurements are detailed, but the inspectable images cover the remaining blank rather than the repaired continuity behavior.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored PR is outside the ordinary contributor proof gate: its body reports real loopback-Gateway Chromium measurements for grouped chat/dashboard reloads, while the inspected screenshots show only the acknowledged initial blank and do not independently demonstrate the continuity repairs.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Performance · Worth it: Yes · Fix scope: Complete
User problem: Large grouped sidebars restore slowly, and already displayed cached rows can disappear during native host moves or slow child-query handoffs.
Reason: The maintainer-authored direction is explicit, reported measurements show a substantial supporting improvement, and the remaining initial chat blank is expressly excluded and separately tracked.

Merge readiness

✅ Ready for maintainer review

Keep this maintainer-authored PR open: it makes a useful, focused improvement that current main lacks, with no concrete introduced correctness finding.

Priority: P2
Reviewed head: 77b030435e2c8be8b0ae83a9899e448fe3f479be

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: The supplied images do not demonstrate populated-sidebar recovery or slow-child/reparent continuity; those scenarios have reported measurements and regression assertions rather than inspectable recovery captures.
Agent review details

How this fits together

The Control UI sidebar combines an admitted browser snapshot with Gateway session queries; its existing lifecycle and windowing owners determine when cached rows yield and which rows mount.

flowchart LR
  A[Browser snapshot] --> B[Sidebar snapshot owner]
  C[Gateway roster queries] --> D[Readiness receipts]
  D --> B
  B --> E[Sidebar presentation]
  E --> F[Session window]
  F --> G[Visible and retained rows]
Loading

Technical review

Best possible solution:

Retain this focused repair in the existing sidebar owners and complete its draft validation before landing.

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

Current-main source shows the timed incomplete handoff, immediate owner detach during host moves, and two-row admission for below-viewport categories; supplied browser measurements support the report, but this review ran no reproduction.

Is this the best way to solve the issue?

The patch repairs the existing lifecycle, handoff, and windowing owners without adding another cache or renderer, while extending the existing fixture to exercise grouped nondefault-agent sidebars.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 828b81ad1f94.

Provenance checked

  • Cached-to-live handoff changes intended behavior with a stated reason (c44496a: Wait for complete roster reads while retaining a three-second escape that could publish partial data.)
  • Sidebar host lifecycle changes intended behavior with a stated reason (e80558a: The Solid migration preserved a single shell-owned sidebar and synchronous native attachment hooks.)
  • Sidebar row windowing keeps the original intent (ff2c841: Avoid constructing offscreen rows while retaining active, selected, focused, dragged, and menu rows and preserving scroll geometry.)
  • Reusable warm-reload fixture and probes keeps the original intent (5df2f45: Provide repeatable isolated real-Gateway browser measurements and frame evidence using canonical fixture writers.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit c44496a adds ui/src/components/sidebar-snapshot.ts:174 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: c44496a0cb48; files: ui/src/components/sidebar-snapshot.ts)
  • Vyctor H. Brzezowski: Raw commit a1d62cf adds ui/src/components/sidebar-session-window.tsx:39 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: a1d62cfc56c1; files: ui/src/components/sidebar-session-window.tsx)

PR surface

Source +6, Tests +71, Docs +6, Other +206. Total +289 across 15 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 3 18 12 +6
Tests 4 140 69 +71
Docs 2 7 1 +6
Config 0 0 0 0
Generated 0 0 0 0
Other 6 242 36 +206
Total 15 407 118 +289

Labels

Label changes:

  • add P2: Improves warm-reload responsiveness and sidebar continuity with a limited Control UI blast radius.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: Improves warm-reload responsiveness and sidebar continuity with a limited Control UI blast radius.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

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 October 31, 2026, 6:03 PM ET / 22:03 UTC.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 31, 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-01T06:18:18.865194Z fd439a4 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 force-pushed the steipete/coldload-sidebar-reload-regression branch from ce6274f to 75e2d01 Compare October 31, 2026 23:56
@steipete
steipete marked this pull request as draft November 1, 2026 02:29
@steipete
steipete force-pushed the steipete/coldload-sidebar-reload-regression branch from 75e2d01 to 0728461 Compare November 1, 2026 03:07
@steipete
steipete marked this pull request as ready for review November 1, 2026 03:43
@steipete
steipete marked this pull request as draft November 1, 2026 05:31
Keep the scoped cached sidebar until live roster and expanded-child reads
settle, removing the three-second partial-display escape path. Retain the
sidebar owner when native layout reparents its host in the same turn.

Skip ordinary rows in wholly offscreen categories while preserving height
and current selection/focus retention during queued geometry updates.
Extend real-Gateway warm reload proof with grouped, involving-me settings,
personal pins, retained children and archived nondefault-agent deep links.
@steipete
steipete force-pushed the steipete/coldload-sidebar-reload-regression branch from 0728461 to fd439a4 Compare November 1, 2026 05:43
@steipete
steipete marked this pull request as ready for review November 1, 2026 06:15
@steipete
steipete merged commit 39629c6 into main Nov 1, 2026
190 of 192 checks passed
@steipete
steipete deleted the steipete/coldload-sidebar-reload-regression branch November 1, 2026 09:06
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 2, 2026
…penclaw#189791)

Warm reloads keep the cached sidebar until the live roster has actually finished or failed. The three-second partial-display escape from openclaw#180569 is deleted: it replaced already painted cached rows with an incomplete live sidebar during slow child-roster reads. The existing readiness owner still settles on completed or errored root, child and count reads, so the handoff always completes.

The sidebar owner now detaches only when its host is really gone (same-turn native reparenting keeps the retained view, while transient menus still dismiss synchronously), and the session window keeps focused and selected rows even when scroll precedes the geometry retention update.

Proof: AWS real-Gateway warm reloads (11 pairs per route, combined with the now-upstream offscreen-row change from openclaw#189821): sidebar fill 942.54 to 783.61 ms on chat and 814.48 to 665.78 ms on dashboard, both 10/11 better. Runtime net +4 LOC; the rest is the reusable warm-reload fixture and probes. Exact-head CI green; full UI 884 pass / 2 fail, both failures reproduce on pristine main.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui docs Improvements or additions to documentation P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: L 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