Skip to content

fix(control-ui): keep sidebar pin and disclosure slots stable on reload - #190245

Merged
steipete merged 5 commits into
mainfrom
steipete/coldload-sidebar-pin-action-slot
Nov 1, 2026
Merged

steipete merged 5 commits into
mainfrom
steipete/coldload-sidebar-pin-action-slot

Conversation

@steipete

@steipete steipete commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes sidebar titles and action areas shifting during a signed-in warm reload of a chat or dashboard deep link: eligible rows gain a 24 px pin action, and a collapsed pinned parent gains a child disclosure that moves its action area another 28 px.

User Impact

Cached sidebar rows reserve their final pin and child-disclosure geometry from the first paint. Pin and child actions stay disabled until live row facts arrive. No child rows or child identities are fabricated from the cached count. The disposable browser projection advances once, from 3 to 4, so an older cached sidebar refills once after upgrading.

Why This Change Was Made

The existing sidebar snapshot intentionally restored pinnable: false to keep cached rows display-only (introduced in 561d92da3a28, #168206). Rendering used that live-action authority to decide the pin's width. The same snapshot retained rendered children but lost a collapsed parent's known child count: restore derives child keys only from rendered child rows. Its disclosure therefore appeared only with the live roster. Pin eligibility depends on session lineage, not the hello catalog, owner filter or pin state.

The snapshot owner now retains compact display facts for both controls, including recapture while live descriptors are pending. The native controls use those facts for geometry and stay disabled on cached rows. Child keys and action authority remain live-owned. The renderer replaces the presence-only child memo with one count derivation, and snapshot reader/writer share one projection-version constant. No new store, config, server schema or protocol changes.

Evidence

Final head b358b103bba525784e4788948dd2897f54ce2d77 against main 72a691e5f732b04a53ffd9e83f96a61bc16d2016. AWS c7a.4xlarge, lease cbx_89e1e442999b, run. Both arms and A/A controls run on the same quiet instance, using repository Playwright Chromium, unprofiled.

The real-Gateway fixture uses signed-in HttpOnly proxy admission, native protected-entry reloads, an isolated Gateway and QA loopback model, 3,000 synthetic sessions, archived target sessions, personal pins and collapsed pinned parents. Sidebar preferences match the reported shape: Involving me, category, Created, five collapsed sections, preview off, empty groups always, 97 groups / 102 section-order entries. No live operator state or private captures are used.

Geometry gate

Route Pin width movement Disclosure offset Max aside movement Candidate ≤1 px
chat 24 → 0 px 28 → 0 px 52 → 0 px 11/11
dashboard 24 → 0 px 28 → 0 px 52 → 0 px 11/11

A/A reproduces 24 px pin width, 28 px disclosure offset and 52 px maximum aside movement in every pair on both routes. Candidate title-box movement is also 32 → 0 px in every pair. Referencing geometry at the first app candidate compositor frame yields the same 52 → 0 px result on all 22 candidate reloads.

Actual native sidebar record: 176,690 → 177,012 bytes (+322 / +0.18224%) on both routes, under the +1% cap. Team-scale model: 139,560 → 139,587 bytes (+27 / +0.01935%).

Timing secondary IQRs overlap and pair signs are mixed. For example, chat hello has a +25.6 ms median paired delta (6/11 worse), versus +29.3 ms in A/A (7/11 worse); chat sidebar fill is +24.7 ms (7/11 worse), versus +37.1 ms in A/A (9/11 worse). No secondary crosses the declared regression rule. These data support a geometry fix, not a wall-clock speedup claim.

Real-Gateway timing controls

Eleven interleaved AB/BA warm pairs on each route plus eleven A/A pairs. Median [Q1, Q3], milliseconds except CLS. hello is after connection-owner hello handling. paintedRows is native Element Timing; finalRows and sidebarFill are DOM milestones, not paint timestamps. PaintHolding calibration passed. Full per-frame geometry reports and the before/after first app compositor captures are retained locally. The remaining remote raw frames were lost during the fresh-checkout main control setup; the reports and measurement results were already downloaded.

Route / metric base candidate
aa-chat / sidebarFill 599.1 [552.1, 615.2] 625.7 [601.7, 652.7]
aa-chat / FCP 812.6 [624.4, 901.2] 921.9 [871.4, 924.0]
aa-chat / hello 526.5 [299.3, 552.9] 536.7 [380.1, 563.7]
aa-chat / paintedRows 907.5 [873.5, 971.4] 923.4 [873.5, 925.6]
aa-chat / finalRows 1040.4 [964.9, 1076.2] 1073.9 [953.3, 1105.0]
aa-chat / LoAF 331.6 [302.6, 371.3] 352.8 [287.8, 360.7]
aa-chat / CLS 0.0002210 [0.0002210, 0.0002210] 0.0002210 [0.0002210, 0.0002210]
aa-dashboard / sidebarFill 637.2 [624.4, 673.7] 620.2 [602.1, 668.6]
aa-dashboard / FCP 902.6 [873.2, 930.9] 898.9 [863.5, 955.3]
aa-dashboard / hello 591.7 [572.6, 641.8] 607.7 [574.5, 640.0]
aa-dashboard / paintedRows 903.5 [875.5, 933.5] 899.6 [865.5, 957.4]
aa-dashboard / finalRows 1133.5 [1108.2, 1216.6] 1160.5 [1126.5, 1195.1]
aa-dashboard / LoAF 363.4 [348.2, 400.1] 372.0 [351.6, 383.9]
aa-dashboard / CLS 0.0002210 [0.0002210, 0.0002210] 0.0002210 [0.0002210, 0.0002643]
ab-chat / sidebarFill 595.8 [571.8, 609.9] 611.8 [578.1, 619.5]
ab-chat / FCP 878.2 [834.9, 919.7] 885.5 [838.6, 913.0]
ab-chat / hello 534.4 [525.5, 568.9] 555.4 [532.0, 570.2]
ab-chat / paintedRows 903.3 [869.5, 939.4] 891.4 [865.5, 931.4]
ab-chat / finalRows 1052.0 [1036.2, 1080.3] 1020.4 [1011.0, 1063.0]
ab-chat / LoAF 338.3 [302.8, 359.2] 317.7 [307.3, 351.8]
ab-chat / CLS 0.0002210 [0.0002210, 0.0002210] 0.0000866 [0.0000866, 0.0000866]
ab-dashboard / sidebarFill 633.7 [617.4, 671.8] 625.6 [481.4, 652.7]
ab-dashboard / FCP 810.2 [636.7, 863.4] 813.5 [610.0, 854.4]
ab-dashboard / hello 592.2 [578.1, 639.0] 612.4 [587.2, 727.4]
ab-dashboard / paintedRows 867.5 [837.5, 933.5] 871.5 [855.6, 903.4]
ab-dashboard / finalRows 1114.3 [1048.9, 1186.5] 1170.3 [1135.9, 1192.0]
ab-dashboard / LoAF 378.4 [369.0, 400.6] 371.0 [347.1, 398.4]
ab-dashboard / CLS 0.0002210 [0.0002210, 0.0003076] 0.0000866 [0.0000866, 0.0000866]
Every paired delta (candidate minus baseline)

aa-chat / candidate

Metric Pairs 1–11
pinWidth +0.0, +0.0, +0.0, +0.0, +0.0, +0.0, +0.0, +0.0, +0.0, +0.0, +0.0
disclosureOffset +0.0, +0.0, +0.0, +0.0, +0.0, +0.0, +0.0, +0.0, +0.0, +0.0, +0.0
aside +0.0, +0.0, +0.0, +0.0, +0.0, +0.0, +0.0, +0.0, +0.0, +0.0, +0.0
sidebarFill -30.1, +39.5, +19.1, +58.0, +1.9, +51.5, +30.9, +37.1, +130.2, -19.6, +112.3
FCP +347.5, +109.8, +300.7, +114.6, -72.3, -13.8, +20.8, +303.4, +248.1, -129.7, +391.9
hello +218.2, -328.2, +327.2, -329.6, +29.3, -340.0, +9.5, +214.9, +272.0, -21.8, +278.8
paintedRows -43.9, +108.1, -144.1, +116.0, -71.9, -16.0, +20.1, -123.8, +55.9, -127.9, +28.0
finalRows +142.5, -221.6, +246.5, -165.5, -31.3, -205.2, +136.0, -18.6, +116.4, -106.0, +187.4
LoAF -21.4, -98.9, +8.4, -18.0, +68.3, -125.0, -39.6, -8.0, +58.8, +28.5, +64.5
CLS +0.0000000, +0.0000000, +0.0000000, +0.0000000, +0.0000000, +0.0000000, +0.0000000, +0.0000000, +0.0000000, +0.0000000, +0.0000000

aa-dashboard / candidate

Metric Pairs 1–11
pinWidth +0.0, +0.0, +0.0, +0.0, +0.0, +0.0, +0.0, +0.0, +0.0, +0.0, +0.0
disclosureOffset +0.0, +0.0, +0.0, +0.0, +0.0, +0.0, +0.0, +0.0, +0.0, +0.0, +0.0
aside +0.0, +0.0, +0.0, +0.0, +0.0, +0.0, +0.0, +0.0, +0.0, +0.0, +0.0
sidebarFill -88.9, -39.2, +84.1, -146.3, +75.6, -76.2, +46.8, -18.6, +51.1, -58.5, +20.6
FCP -53.2, +38.0, +15.5, -68.1, +87.0, -114.4, +66.8, -61.8, -19.1, +22.8, +49.2
hello -114.3, -41.9, +207.2, -54.0, +58.7, -84.1, +65.2, -191.5, +47.0, -46.9, +204.4
paintedRows -52.1, +40.2, +15.9, -68.0, +87.9, -116.0, +64.0, -59.9, -20.0, +24.2, +47.9
finalRows -131.8, +24.4, +120.0, -104.5, +87.6, -59.4, +26.7, -75.5, +32.4, -74.8, +139.2
LoAF -76.0, -45.5, +36.7, -16.4, +30.1, -37.1, +73.2, -20.1, +31.9, -52.1, +5.0
CLS +0.0000000, -0.0000866, +0.0000000, +0.0000000, +0.0000866, +0.0000000, +0.0000000, +0.0000866, +0.0000000, +0.0000866, +0.0000000

ab-chat / candidate

Metric Pairs 1–11
pinWidth -24.0, -24.0, -24.0, -24.0, -24.0, -24.0, -24.0, -24.0, -24.0, -24.0, -24.0
disclosureOffset -28.0, -28.0, -28.0, -28.0, -28.0, -28.0, -28.0, -28.0, -28.0, -28.0, -28.0
aside -52.0, -52.0, -52.0, -52.0, -52.0, -52.0, -52.0, -52.0, -52.0, -52.0, -52.0
sidebarFill +38.3, -134.2, +66.0, +53.7, +133.8, -55.4, +44.1, -41.0, +24.7, -45.2, +20.7
FCP +257.4, -317.8, +36.9, +14.4, +336.2, -272.6, +26.5, -87.7, +78.8, -35.8, +4.9
hello -94.7, +82.4, +68.9, -321.6, +25.6, -326.3, +37.2, -45.7, +32.7, -36.8, +25.6
paintedRows -139.9, -32.0, +36.0, +16.0, -52.0, +112.1, +28.1, -88.0, +79.9, -35.8, +4.0
finalRows -264.6, +21.7, +16.0, -243.6, +60.6, -60.0, -21.2, -46.6, -8.8, -2.2, -72.9
LoAF -69.8, -30.3, +40.5, -50.8, +3.5, -100.4, +41.8, -20.2, +105.3, -66.4, +99.6
CLS -0.0001344, -0.0001344, -0.0001344, -0.0001344, -0.0001344, -0.0001344, -0.0001344, -0.0001344, -0.0001344, -0.0001344, -0.0001344

ab-dashboard / candidate

Metric Pairs 1–11
pinWidth -24.0, -24.0, -24.0, -24.0, -24.0, -24.0, -24.0, -24.0, -24.0, -24.0, -24.0
disclosureOffset -28.0, -28.0, -28.0, -28.0, -28.0, -28.0, -28.0, -28.0, -28.0, -28.0, -28.0
aside -52.0, -52.0, -52.0, -52.0, -52.0, -52.0, -52.0, -52.0, -52.0, -52.0, -52.0
sidebarFill -65.5, +0.4, -288.3, -29.3, +35.3, -43.4, -212.0, +235.3, -60.8, +85.6, -304.6
FCP -64.1, +4.4, -205.3, +51.5, +253.5, -166.5, -237.6, +247.0, -262.3, +265.6, -306.5
hello -76.1, +11.4, +177.5, -36.5, +34.9, -42.3, -196.0, +216.5, +212.9, -73.9, +184.2
paintedRows -192.1, +4.2, +171.8, +52.2, +251.9, -168.1, +256.0, -312.0, -4.2, -11.9, +36.0
finalRows -27.8, -30.3, +29.2, -9.4, +188.6, -10.3, -152.9, +231.4, +204.0, -111.6, +141.1
LoAF -43.8, +30.9, -10.2, +3.0, -4.3, -3.6, +20.8, -76.6, +34.0, -96.8, -59.0
CLS -0.0002210, -0.0001344, -0.0001344, -0.0002210, -0.0001344, -0.0001344, -0.0002210, -0.0001344, -0.0001344, -0.0001205, -0.0002210

Team-scale bench

Eleven baseline/candidate/baseline triples per route, live-fast latency profile, warm reload, external LoAF and RPC probes. This uses production UI bundles with synthetic RPC; the real-Gateway results above independently cover live admission and roster settlement. candidate-2 is the A/A baseline repeat. The bench exposes native painted transcript rows on both routes, but no final-row DOM timestamp.

Route / metric base candidate candidate-2
chat / aside 24.0 [24.0, 24.0] 0.0 [0.0, 0.0] 24.0 [24.0, 24.0]
chat / sidebarFill 370.8 [369.0, 402.5] 371.3 [362.8, 394.5] 366.0 [359.5, 369.5]
chat / FCP 88.0 [88.0, 92.0] 88.0 [88.0, 92.0] 88.0 [88.0, 92.0]
chat / hello 522.3 [521.5, 525.1] 525.5 [521.3, 526.9] 520.7 [519.6, 523.1]
chat / paintedRows 368.0 [362.0, 368.0] 368.0 [360.0, 370.0] 364.0 [358.0, 368.0]
chat / finalRows unavailable unavailable unavailable
chat / LoAF 121.0 [112.0, 123.5] 123.0 [116.5, 129.0] 118.0 [108.5, 124.0]
chat / CLS 0.0002649 [0.0002649, 0.0002649] 0.0000000 [0.0000000, 0.0000000] 0.0002649 [0.0002649, 0.0002649]
dashboard / aside 24.0 [24.0, 24.0] 0.0 [0.0, 0.0] 24.0 [24.0, 24.0]
dashboard / sidebarFill 363.5 [360.5, 376.1] 366.5 [363.5, 373.7] 363.2 [362.0, 368.6]
dashboard / FCP 88.0 [88.0, 92.0] 88.0 [86.0, 96.0] 92.0 [88.0, 92.0]
dashboard / hello 541.4 [539.9, 547.3] 542.9 [539.1, 543.5] 540.5 [539.5, 541.8]
dashboard / paintedRows 328.0 [320.0, 330.0] 324.0 [324.0, 328.0] 328.0 [324.0, 332.0]
dashboard / finalRows unavailable unavailable unavailable
dashboard / LoAF 139.0 [130.5, 143.0] 139.0 [130.0, 146.5] 138.0 [132.5, 147.0]
dashboard / CLS 0.0002649 [0.0002649, 0.0002649] 0.0000000 [0.0000000, 0.0000000] 0.0002649 [0.0002649, 0.0002649]
Every paired delta (candidate minus baseline)

chat / candidate

Metric Pairs 1–11
aside -24.0, -24.0, -24.0, -24.0, -24.0, -24.0, -24.0, -24.0, -24.0, -24.0, -24.0
sidebarFill +41.3, -56.7, -44.3, -43.1, +6.5, -7.3, -35.9, +39.9, +9.3, +51.7, +2.0
FCP +0.0, +4.0, +0.0, +4.0, -4.0, +0.0, +0.0, +4.0, -4.0, +4.0, +0.0
hello +1.9, +52.8, -2.6, -3.9, +1.9, -33.5, +3.8, -0.0, -2.2, +2.8, +3.8
paintedRows +0.0, -12.0, +60.0, +64.0, +0.0, -4.0, -4.0, +0.0, +4.0, +0.0, -4.0
finalRows unavailable
LoAF -1.0, -5.0, +39.0, +40.0, -6.0, -34.0, +9.0, -16.0, -26.0, +22.0, +3.0
CLS -0.0002649, -0.0002649, -0.0002649, -0.0002649, -0.0002649, -0.0002649, -0.0002649, -0.0002649, -0.0002649, -0.0002649, -0.0002649

chat / candidate-2

Metric Pairs 1–11
aside +0.0, +0.0, +0.0, +0.0, +0.0, +0.0, +0.0, +0.0, +0.0, +0.0, +0.0
sidebarFill -11.6, -63.4, -44.7, -38.1, +3.6, -13.4, -46.1, -2.9, +48.9, -1.6, +1.5
FCP +0.0, +0.0, +4.0, +0.0, -4.0, +0.0, -8.0, +4.0, -4.0, +4.0, +0.0
hello +1.9, +3.2, -3.4, -5.8, -3.5, -36.3, +1.5, -1.5, -1.8, -2.6, -1.4
paintedRows -8.0, -16.0, -4.0, +4.0, +0.0, +56.0, -12.0, +4.0, +0.0, +0.0, +0.0
finalRows unavailable
LoAF -7.0, +7.0, -15.0, -5.0, +9.0, -10.0, +5.0, -24.0, -15.0, +2.0, -18.0
CLS +0.0000000, +0.0000000, +0.0000000, +0.0000000, +0.0000000, +0.0000000, +0.0000000, +0.0000000, +0.0000000, +0.0000000, +0.0000000

dashboard / candidate

Metric Pairs 1–11
aside -24.0, -24.0, -24.0, -24.0, -24.0, -24.0, -24.0, -24.0, -24.0, -24.0, -24.0
sidebarFill +16.9, +6.6, +4.9, +1.5, -24.7, +5.9, -16.2, -17.0, +1.9, +13.6, +4.2
FCP -4.0, +0.0, +0.0, +16.0, -4.0, -8.0, +8.0, +0.0, +0.0, -4.0, +4.0
hello +5.7, -24.3, +3.0, +3.3, -83.3, -5.5, -3.2, +3.1, +10.0, +3.3, -3.2
paintedRows +16.0, +4.0, +0.0, -64.0, -8.0, +4.0, -4.0, -4.0, +0.0, -8.0, +4.0
finalRows unavailable
LoAF +31.0, -16.0, +24.0, -41.0, -65.0, -13.0, -11.0, +1.0, +98.0, +8.0, -4.0
CLS -0.0002649, -0.0002649, -0.0002649, -0.0002649, -0.0002649, -0.0002649, -0.0002649, -0.0002649, -0.0002649, -0.0002649, -0.0002649

dashboard / candidate-2

Metric Pairs 1–11
aside +0.0, +0.0, +0.0, +0.0, +0.0, +0.0, +0.0, +0.0, +0.0, +0.0, +0.0
sidebarFill +25.6, +14.2, +3.2, -4.5, -28.2, +6.0, -16.4, -14.9, -13.4, -1.4, +0.7
FCP +0.0, -4.0, +12.0, +8.0, +8.0, -12.0, +0.0, +4.0, -4.0, +0.0, -4.0
hello +0.3, -21.9, +2.9, +5.3, -84.4, -1.6, -0.9, -3.7, -1.7, -2.5, -8.0
paintedRows +12.0, +0.0, +0.0, -64.0, -4.0, +4.0, +56.0, +0.0, +0.0, +56.0, +4.0
finalRows unavailable
LoAF +22.0, -10.0, +10.0, -35.0, -69.0, -18.0, +37.0, -5.0, +7.0, +34.0, -10.0
CLS +0.0000000, +0.0000000, +0.0000000, +0.0000000, +0.0000000, +0.0000000, +0.0000000, +0.0000000, +0.0000000, +0.0000000, +0.0000000

Native regressions and validation

The snapshot-owner regression checks eligibility and collapsed disclosure through structured cloning, restore and recapture without restoring mutation authority or inventing loaded children. The native warm-reload regression covers a collapsed pinned parent on chat/dashboard, unchanged and changed rosters, disabled cached disclosure clicks, and all row-aside rectangles through live settlement. Both regressions fail on baseline and pass on the candidate; the disclosure regressions also fail on the pin-only head. Existing expanded-child and live-row behavior remain covered by the full UI suite.

Exact-head CI is green. Focused unit tests: 99 passed. All 3 native warm-roster cases passed (Vitest duration 43.54 s). Baseline owner and native regressions fail for the missing display facts; the disclosure regressions also fail on the pin-only change. Focused lint passes.

Measured wall times for pnpm test <file> --maxWorkers=1 on the AWS lease:

File Tests Command wall time
ui/src/components/sidebar-snapshot-model.test.ts 12 passed 3.44 s
ui/src/pages/chat/sidebar-snapshot-store.test.ts 17 passed 3.45 s
ui/src/pages/chat/session-snapshot-store.test.ts 45 passed 3.83 s
ui/src/components/app-sidebar-session-row-render.test.tsx 25 passed 6.69 s

The required full UI invocation ran once on the final head:

node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --maxWorkers=4

892 spec files: 887 passed, 2 failed, 3 skipped. 3,379 tests: 3,373 passed, 2 failed, 4 skipped. Vitest duration: 3,412.31 s. The complete file inventory and log are retained locally. Both failures reproduce against the exact pinned main source in the main control run, on the same AWS lease, after reversing the complete PR and rebuilding main. The control restores the exact candidate source and verifies a clean tracked tree afterward.

Inherited failure Final-head full run Pinned main control
ui/src/e2e/chat-outbox-migration.e2e.test.ts:71 Initial-roster readiness timeout, 10,000 ms Same case, same readiness error and 10,000 ms timeout; 1 passed / 1 failed
extensions/qa-lab/src/control-ui-automation-management.real-gateway.e2e.test.ts:315 Private mutation boundary writable by another POSIX principal Same case and Crabline private-file permission rejection; 1 passed / 1 failed

Existing skipped specs: desktop-resize.real-gateway, chat-steer-deferred-custody.real-gateway, and deepseek-search.real-gateway. One existing creator-review case is also skipped. This diff adds no skips or expected failures.

Changed-file validation passes its core/UI typechecks, lint, formatting, controllers and ratchets. Its sole failure is the unused export src/infra/sqlite-native-runtime.ts: assertSafeSqliteRuntime in the production and full-tree Knip scans. The canonical unused-export check reproduces that exact finding on pinned main (exit 1, 106.75 s); the script scan passes. All three control commands return exit 1 for their matching inherited failures. These unrelated owners are unchanged.

The measurement/full-suite run completed its validation, but its final archive command exited 1 because it created an archive inside the directory being archived. A subsequent fresh-checkout control setup removed that remote scratch directory. The already-downloaded full geometry reports, benchmark summaries, full-suite log, focused logs and inspected before/after captures remain intact; remaining raw frames were lost. The corrected control archive was written outside its source directory, downloaded and verified before releasing the lease.

Synthetic before/after

Inspected complete captures, synthetic data only. These are actual first app candidate compositor frames, not an old surface held across navigation. Geometry is supported by the per-frame rectangles and baseline-red native regression, not inferred from a still image.

Baseline cached sidebar

Candidate cached sidebar

Size and review

+13 net runtime LOC, including +7 for disclosure. Required filtered stat: six files, 24 insertions / 9 deletions (+15, including two allocation lines). The growth retains two previously missing display facts while preserving live-only actions; the old presence-only child memo and duplicated version literals are removed. Test growth is exactly 78 lines, explicitly allocated to owner/recapture and native warm-reload regression coverage in existing fixtures, without baseline slack. No changelog edit; this body provides release-note context.

Codex autoreview is clean through P2. Earlier CI caught an unnecessary boolean comparison and JSON deep-cloning in the cache tests. The test-only corrections use negation and the cache’s native structured cloning, were independently re-reviewed, and were pushed. No CI rerun was used to chase green. Final CI and full UI results are listed above. This PR is ready for the campaign lead's review and is not merged.

All five task-owned AWS leases are released (cbx_5928f9c6f5da, cbx_a124bc76574f, cbx_43739e00e65b, cbx_fdf2119341a6, cbx_89e1e442999b). The final lease release is verified by coordinator state. Test-owned Gateways are stopped; no operator Gateway was used.

@clawsweeper

clawsweeper Bot commented Nov 1, 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. 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 1, 2026
@clawsweeper

clawsweeper Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge.

What this changes

This PR preserves pin-button geometry in cached sidebar rows while keeping pin actions disabled until live rows arrive.

Example: Warm reload of a signed-in dashboard with a pinnable session.

  • Before: The cached row's aside measures 26 px, then grows to 50 px when live data arrives.
  • After: The cached row reserves the pin slot immediately, with the button disabled until live eligibility returns.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The focused implementation has no identified defect, but its supplied evidence does not yet satisfy the visual and persisted-state proof gates.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Sidebar titles lose horizontal space when pin controls appear after cached rows become live.
Reason: Stable sidebar geometry is an explicit UI contract, and the maintainer-authored experiment addresses a concrete remaining omission with a narrow change.

Merge readiness

⛔ Blocked before merge - 1 item remains

Keep this PR open as the maintainer-authored, explicitly paused experiment. Current main still has the cached pin-slot omission; the focused patch has no concrete correctness finding.

Priority: P2
Reviewed head: c2999f52b2d93f8d6f333a6e75c00688ca14f502

Before merge

  • Add data-model compatibility proof - The review found that existing stored data may not work after upgrade. Show that existing data still loads and works with this change.

Findings

None.

Tests

  • Missing end-to-end proof: Supply inspected before/after UI evidence and the declared chat/dashboard measurements through a real isolated Gateway; the body reports baseline failure and candidate passes, but provides no inspectable run artifacts.
Agent review details

How this fits together

The Control UI projects live session rows into a bounded IndexedDB sidebar snapshot, restores those rows during reload, and hands their presentation over to the live roster.

flowchart LR
  A[Live session roster] --> B[Sidebar row projection]
  B --> C[Snapshot serializer]
  C --> D[Scoped IndexedDB cache]
  D --> E[Restored display rows]
  E --> F[Sidebar renderer]
  B --> F
Loading

Technical review

Best possible solution:

Retain the existing snapshot-based fix and let the declared experiment determine whether it should advance beyond draft.

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

Source establishes the missing cached pin slot, and the body reports a baseline browser reproduction; this read-only review ran no target code.

Is this the best way to solve the issue?

The patch is a small, coherent extension of the existing presentation owner: serialize eligibility, restore display geometry, and preserve disabled cached actions without introducing another state owner.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Cached sidebar presentation keeps the original intent (58a6f9d: Persist sparse display facts so cached rows retain their presentation through live handoff.)
  • Disabled restored-row actions keeps the original intent (561d92d: Restore a disposable sidebar projection without restoring live mutation authority.)
  • Disposable projection retirement keeps the original intent (58a6f9d: Retire incompatible sidebar records individually while retaining unrelated valid caches.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 58a6f9d adds ui/src/components/sidebar-snapshot-model.ts:84 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 58a6f9d5b964; files: ui/src/components/sidebar-snapshot-model.ts)

PR surface

Source +6, Tests +34, Other +2. Total +42 across 10 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 5 9 3 +6
Tests 4 38 4 +34
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 2 0 +2
Total 10 49 7 +42

Labels

Label changes:

  • add P2: The reported 24 px sidebar expansion affects reload presentation without establishing blocked navigation, lost data, or broken session actions.
  • add rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🐚 platinum hermit.

Label justifications:

  • P2: The reported 24 px sidebar expansion affects reload presentation without establishing blocked navigation, lost data, or broken session actions.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🐚 platinum hermit.

Rank-up moves

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

  • Provide the missing UI experiment evidence.
  • Demonstrate upgrade behavior with existing settings, pins, and transcript caches.

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 1, 2026, 5:56 AM ET / 10:56 UTC.

@steipete
steipete force-pushed the steipete/coldload-sidebar-pin-action-slot branch from c2999f5 to a02435c Compare November 1, 2026 11:01
@steipete steipete closed this Nov 1, 2026
@steipete steipete reopened this Nov 1, 2026
@steipete
steipete force-pushed the steipete/coldload-sidebar-pin-action-slot branch from a02435c to a72c90b Compare November 1, 2026 11:57
@steipete steipete changed the title experiment(control-ui): retain sidebar pin geometry [do not merge] fix(control-ui): keep sidebar pin and disclosure slots stable on reload Nov 1, 2026
@steipete
steipete marked this pull request as ready for review November 1, 2026 11:57
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 1, 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-01T12:25:16.654260Z b358b10 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 force-pushed the steipete/coldload-sidebar-pin-action-slot branch from a72c90b to e16bc34 Compare November 1, 2026 12:09
Retain display-only pin eligibility in the bounded sidebar snapshot while cached rows keep actions disabled. Retire the previous disposable sidebar projection; no Gateway state or protocol changes. Prevent the 24 px aside expansion when the live roster replaces cached rows.
@steipete
steipete force-pushed the steipete/coldload-sidebar-pin-action-slot branch from e16bc34 to b358b10 Compare November 1, 2026 12:22
@steipete
steipete merged commit 5d7313d into main Nov 1, 2026
109 checks passed
@steipete
steipete deleted the steipete/coldload-sidebar-pin-action-slot branch November 1, 2026 14:34
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 2, 2026
…ad (openclaw#190245)

Cached sidebar rows now keep the geometry of their live row while reconnecting. Previously the snapshot restored `pinnable: false` as live-action authority, so every eligible row's pin slot appeared 24 px late, and a collapsed pinned parent lost its child relationship, so its disclosure appeared late and moved the aside from right 6 px to right 34 px; together that shifted asides by up to 52 px and changed title truncation.

The sidebar snapshot owner now retains two display-only facts: pin eligibility (encoding only the uncommon `false`) and the visible child count (omitted for private children). Cached pin and disclosure controls render in their final slots but stay disabled until the live row arrives; child rows and all actions remain live-only. Reader and writer share SIDEBAR_SNAPSHOT_PROJECTION_VERSION (3 -> 4), so old disposable sidebar records are dropped once after upgrade and refilled from the live roster.

Proof: 11 interleaved AWS pairs per route plus A/A, real-Gateway warm reloads: max aside movement 52 -> 0 px and title movement 32 -> 0 px in 11/11 on chat and dashboard; snapshot +0.182%; CLS improved; timing secondaries within A/A. Runtime +13 LOC. Snapshot-owner and native warm-reload regressions fail before the fix. Exact-head CI green; full UI 887 pass / 2 fail, both reproduce on 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 P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant