Repository navigation
fix(control-ui): keep cached composer controls visually stable - #185144
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR removes disabled dimming from composer pickers and adds an accessible description while cached settings await live confirmation. Example: Reload a chat whose cached effort is High and permission mode is Full Access.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR is a focused, maintainer-directed visual fix with no actionable findings; exact-head CI remains pending. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Control UI projects cached session settings into composer pickers, then hands presentation and interaction back to existing live session and catalog owners. flowchart LR
A[Cached session snapshot] --> C[Composer presentation]
B[Live session and catalog] --> C
C --> D[Model effort and permission pickers]
D --> E[Existing interaction guards]
E --> F[Session mutation owner]
Technical reviewBest possible solution: Keep the existing live-authority owners and remove only the redundant disabled appearance while exposing the refresh state accessibly. Do we have a high-confidence way to reproduce the issue? The baseline disabled-class bindings and 0.55 opacity rule explain the transition, supported by the supplied matched browser comparison. Is this the best way to solve the issue? The patch is the smallest complete fix: it removes the presentation-only path and reuses existing disabled-reason, overlay, and mutation owners. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 80e9b4a41ae9. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +8, Tests +35, Other +1. Total +44 across 9 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed October 26, 2026, 11:58 PM ET / October 27, 2026, 03:58 UTC (Revision 2). |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
f428025 to
95d3153
Compare
|
@clawsweeper re-review The branch is rebased, the final-head comparison and inspected synthetic media are current, and the explicit P2 review is clean. The body now records the full UI run, matching baseline controls for ten failed assertions, and one unreproduced mobile menu-bounds failure without claiming it is fixed or inherited. Exact-head ready-PR CI is running. |
|
🦞👀 Re-review progress:
|
95d3153 to
a4c886d
Compare
…on reload (#185788) Peter's Team chats are archived sessions. On warm reloads the cached page rendered a normal composer and an incomplete header breadcrumb, then switched to the archived composer bar and the full breadcrumb when live state arrived, shifting the transcript by the composer height change. The scoped pane snapshot now carries the bounded session-state facts the header and composer render with (archived/read-only state and the breadcrumb parent context), adopted in the first pane commit through the boot-ordering hydration path (#185558); live state that differs updates in place. Cached composer controls stay non-interactive until live authority (#185144 pattern). Results (11 interleaved pairs per route, signed-in proof rig): archived header/composer transitions after first paint 1 -> 0 and composer-driven transcript shift 26/23 -> 0 px on chat/dashboard, 11/11 each; maximum snapshot growth 215 B (+0.421%); inspected filmstrips. Runtime +152 UI LOC. 179 unit + 16 focused browser cases pass; the attachment-chooser reopen passed 10/10 per arm plus two shard replays per arm (original CI timeout unreproduced); the remaining full-UI and CI failures reproduce on exact main; autoreview clean through P2. Release-note context: archived chats reload with their archived composer and breadcrumb already in place.
…stable on reload (#186056) Warm reloads rendered the chat header without its viewer facepile and sharing control, then changed it when live presence arrived: the hello-time presence is self-only (partial), cached viewers were cleared while disconnected, avatar images reloaded after a credential reset, and the sharing control appeared later and moved the facepile ~56 px. The scoped pane snapshot now carries the bounded facepile facts (last-known viewers, overflow count, avatar references through the existing avatar cache) and the sharing control state; they render in the first pane commit via the boot-ordering hydration path (#185558). Presence is treated as incomplete until the full roster arrives, so cached viewers stay until then and only the diff applies; the cached sharing control stays mounted (non-interactive, #185144 pattern) until the live control replaces it in the same commit. Scope changes and sign-out clear the cached facts. Results (11 signed-in pairs per route on the real-Gateway proof rig): stable header (excluding the reconnect indicator) 0/11 -> 10/11 on chat and dashboard; sharing movement 0 px; snapshot +1.64% / +1.57%. Accepted tradeoff: chat hello +42.5 ms paired median; a CPU pair attributes only ~2.2 ms to facepile rendering (remainder unattributed), to be rechecked on Team. Test-line delta 0 (consolidated fixtures; a vacuous memo-identity assertion on an unsupplied payload removed). 30 focused + native header tests on both routes; autoreview clean through P2. CI's prompt/dictation e2e failures reproduce on main (prompt failure 10/10 on main); one widget failure passes isolated controls on both arms and main's cohort. Runtime +210 UI LOC. Release-note context: Control UI chat headers keep their viewers and sharing control in place when a chat reloads.
…o live (openclaw#185144) Warm reloads render the composer from cached facts (openclaw#184383) with the permission/effort controls deliberately non-interactive until live authority arrives. That gate rendered them with a disabled style, so every reload showed the trigger restyling from disabled to enabled when authority landed. Cached-authority controls now look exactly like live controls while staying non-interactive: no activation by pointer or keyboard, truthful aria state describing the pending authority, and no choice queued against cached authority. Live authority that differs renders as an ordinary value update. Results (11 interleaved pairs per route, Team-scale fixture, AWS c7a.4xlarge): composer authority styling transitions 1 -> 0 per trigger in 11/11 on both routes, no secondary regression; inspected synthetic filmstrips. Runtime +8 LOC. Native regression, 51 focused tests and changed-file checks pass; autoreview clean through P2; exact-head CI green. A one-off 4 px mobile thinking-arguments bounds miss in a full local run passed 5/5 head and 5/5 base in isolation and in a parallel control (load-sensitive). Release-note context: Control UI composer controls no longer change style when a reloaded chat reconnects.
…on reload (openclaw#185788) Peter's Team chats are archived sessions. On warm reloads the cached page rendered a normal composer and an incomplete header breadcrumb, then switched to the archived composer bar and the full breadcrumb when live state arrived, shifting the transcript by the composer height change. The scoped pane snapshot now carries the bounded session-state facts the header and composer render with (archived/read-only state and the breadcrumb parent context), adopted in the first pane commit through the boot-ordering hydration path (openclaw#185558); live state that differs updates in place. Cached composer controls stay non-interactive until live authority (openclaw#185144 pattern). Results (11 interleaved pairs per route, signed-in proof rig): archived header/composer transitions after first paint 1 -> 0 and composer-driven transcript shift 26/23 -> 0 px on chat/dashboard, 11/11 each; maximum snapshot growth 215 B (+0.421%); inspected filmstrips. Runtime +152 UI LOC. 179 unit + 16 focused browser cases pass; the attachment-chooser reopen passed 10/10 per arm plus two shard replays per arm (original CI timeout unreproduced); the remaining full-UI and CI failures reproduce on exact main; autoreview clean through P2. Release-note context: archived chats reload with their archived composer and breadcrumb already in place.
…stable on reload (openclaw#186056) Warm reloads rendered the chat header without its viewer facepile and sharing control, then changed it when live presence arrived: the hello-time presence is self-only (partial), cached viewers were cleared while disconnected, avatar images reloaded after a credential reset, and the sharing control appeared later and moved the facepile ~56 px. The scoped pane snapshot now carries the bounded facepile facts (last-known viewers, overflow count, avatar references through the existing avatar cache) and the sharing control state; they render in the first pane commit via the boot-ordering hydration path (openclaw#185558). Presence is treated as incomplete until the full roster arrives, so cached viewers stay until then and only the diff applies; the cached sharing control stays mounted (non-interactive, openclaw#185144 pattern) until the live control replaces it in the same commit. Scope changes and sign-out clear the cached facts. Results (11 signed-in pairs per route on the real-Gateway proof rig): stable header (excluding the reconnect indicator) 0/11 -> 10/11 on chat and dashboard; sharing movement 0 px; snapshot +1.64% / +1.57%. Accepted tradeoff: chat hello +42.5 ms paired median; a CPU pair attributes only ~2.2 ms to facepile rendering (remainder unattributed), to be rechecked on Team. Test-line delta 0 (consolidated fixtures; a vacuous memo-identity assertion on an unsupplied payload removed). 30 focused + native header tests on both routes; autoreview clean through P2. CI's prompt/dictation e2e failures reproduce on main (prompt failure 10/10 on main); one widget failure passes isolated controls on both arms and main's cohort. Runtime +210 UI LOC. Release-note context: Control UI chat headers keep their viewers and sharing control in place when a chat reloads.
…ne step (#185242) A signed-in warm chat reload rebuilt the Details panel in visible stages: skeleton -> People -> Outputs/Progress -> Automations appended -> Subagents inserted above them, moving lower sections ~83 px; the scrollbar reserve, Progress refresh control and Outputs count also settled after mount. The existing disposable pane snapshot now carries a bounded Details display projection (people, outputs, task progress, a compact automations display projection, subagent summary) restored through the first-pane hydration path; live owners replace those facts in place. Sections keep their final order and geometry: the scrollbar reserve is final at first paint and the Progress refresh control renders non-interactive until live authority (#185144 pattern). No new data owner; cached data carries no write authority. Results (11 interleaved chat pairs, AWS): Details visual states after first paint 7 -> 1 (one complete admission) and changes after admission 6 -> 0, 11/11; CLS improves; hello, FCP and first rows flat; snapshot +3.60%. Accepted tradeoff: dashboard LoAF +13 ms (9/11; A/A did not reproduce). WebKit opening: a shared menu test helper's 1 s deadline was too tight under CI load; repaired (5 s), 10/10 per arm with median opens 128/135 ms. Test lines -1 net (baseline untouched). Runtime +251 LOC. 14 focused files and native Details proof pass; remaining full-UI/CI failures reproduce on main; autoreview clean through P2. Follow-up: admit Details in the first pane commit. Release-note context: the Control UI Details panel reloads in one step instead of rebuilding section by section.
…ne step (openclaw#185242) A signed-in warm chat reload rebuilt the Details panel in visible stages: skeleton -> People -> Outputs/Progress -> Automations appended -> Subagents inserted above them, moving lower sections ~83 px; the scrollbar reserve, Progress refresh control and Outputs count also settled after mount. The existing disposable pane snapshot now carries a bounded Details display projection (people, outputs, task progress, a compact automations display projection, subagent summary) restored through the first-pane hydration path; live owners replace those facts in place. Sections keep their final order and geometry: the scrollbar reserve is final at first paint and the Progress refresh control renders non-interactive until live authority (openclaw#185144 pattern). No new data owner; cached data carries no write authority. Results (11 interleaved chat pairs, AWS): Details visual states after first paint 7 -> 1 (one complete admission) and changes after admission 6 -> 0, 11/11; CLS improves; hello, FCP and first rows flat; snapshot +3.60%. Accepted tradeoff: dashboard LoAF +13 ms (9/11; A/A did not reproduce). WebKit opening: a shared menu test helper's 1 s deadline was too tight under CI load; repaired (5 s), 10/10 per arm with median opens 128/135 ms. Test lines -1 net (baseline untouched). Runtime +251 LOC. 14 focused files and native Details proof pass; remaining full-UI/CI failures reproduce on main; autoreview clean through P2. Follow-up: admit Details in the first pane commit. Release-note context: the Control UI Details panel reloads in one step instead of rebuilding section by section.
What Problem This Solves
A signed-in reload of a dashboard or chat deep link paints cached composer settings with a disabled appearance, then changes their opacity and cursor when live authority confirms the same values. The campaign's original dashboard reload had 14 visible states; after the cached-shell work in #184383, this remaining authority-only flip was observed around 700–1,000 ms.
Why This Change Was Made
The trigger's disabled class only supplied opacity and cursor styling. Remove that class from the model, effort/speed, and permission pickers and delete its CSS selector. Native disabled behavior, keyboard/pointer admission, overlay admission, and session-mutation authority stay with their existing owners. The existing disabled-reason path now describes cached settings as “Refreshing session settings…” through
aria-description.The optional pane-chrome diagnostic now preserves disabled classes and records trigger opacity/color/cursor instead of filtering away the state under investigation. This diagnostic runs only in the benchmark.
User Impact
Cached settings retain their normal appearance while live authority loads. They remain non-interactive and expose disabled semantics plus the pending description to assistive technology. Pointer clicks, Enter, and Space cannot open a picker or queue/apply a setting change. Different live values still render as ordinary value updates.
Evidence
Lead-requested rebase: current head
a4c886d770ff64bca186371443f2e2baa31fa9d9is based on63a05a41365026646b71df6ec7b0e390c506695a. The rebase completed without conflicts;git range-diffconfirms an identical lane patch. This base includes the sidebar-presentation correction #185324 (8e70778f). Measurement and full-suite evidence below remain attributed to the original measurement head, with no claim of a rerun on the new head.Rebased exact-head CI: pending.
Baseline
ce069f9f8374, candidate95d3153bfd5c; 11 interleaved pairs per route on one quiet AWSc7i.4xlarge(16 logical CPUs / 32 GiB class), repository Chromium, Team-scale fixture with large snapshots/row facts/transcript avatars, fixed fixture time,live-fastlatency, unprofiled. Leasecbx_22b6e79fc8d4; runrun_bd5b218e1677605bb9f11f3d47f7069f. No Mac timings are performance results.Primary passed on measurement head
95d3153bfd5c: each trigger changes class/style once on baseline and zero times on candidate, in 11/11 pairs on both routes. All triggers beginaria-disabled=true; candidate cached facts match initial live confirmation in all 22 reloads.A MutationObserver records trigger classes/inline styles from cached display through live confirmation. Chat coalesces the baseline changes into one frame; dashboard can split permission and catalog authority across two. The native regression additionally compares actual computed opacity/color/cursor with identical cached/live values. The broader pane hash includes initial construction and catalog-driven label/gauge updates present in both arms; this result isolates the authority-style flip, not every composer-content update.
No secondary meets the predeclared regression rule: non-overlapping IQRs, or at least 9/11 worse pairs with a median paired rise above max(10 ms, 3%). Timings and CLS are secondary observations, not a causal speedup/CLS claim. Hello-handled is the connect-response timestamp plus dispatch duration. Final row frame means the last observed transcript row/fact/geometry frame, not all-content compositor settle.
chat
Per-pair candidate − baseline deltas
dashboard
Per-pair candidate − baseline deltas
Correctness and validation
0.55appearance difference, then passes on the candidate. It attempts pointer/Enter/Space activation during cached authority, checks disabled semantics and the refresh description, confirms no menu or settings patch, and preserves changed/cleared-live-setting reconciliation coverage.pnpm test ui/src/e2e/chat-composer-display-snapshot.e2e.test.ts --maxWorkers=1: 24.89 s wall, 2.488 s test body, on this AWS lease.95d3153bfd5c; the lead-requested rebase is patch-identical.node scripts/check-changed.mjs --base ce069f9f837471069b3a35df1e7c05953ea792ab: passed, including format, changed-file lint, types, and all three unused-export scans (zero entries). Two existing Solid warnings remain in the shared menu; no lint errors.95d3153bfd5c: 842 files passed / eight failed / four skipped; 3,192 tests passed / 11 failed / four skipped. Wall time 3,736.26 s. No full-suite waiver was used.chat-thinking-arguments.e2e.test.ts --maxWorkers=1passed all four tests in every arm (40/40 total). The lead accepts the original single full-run miss as load-sensitive; these are controlled replays, not a claimed product fix. Runrun_97395578b6e708f647c0b55cd48d8ec0, same lease, same source heads.run_beb7cfb3d4d36353080ed382cd6cf883, same lease. The original single full-run mobile bounds miss is accepted by the lead as load-sensitive; no product fix is claimed.95d3153bfd5ce219f10abd4b4f1359c647ae700c: 39 jobs passed, 25 skipped, three failed. All failed-job logs were fetched once and retained; no CI reruns were requested. The later rebase below follows the lead’s explicit instruction.session-management.trailing-stateassertions:0pxversus52pxce069f9f8374, in both serial and four-worker controlschat-flow.sidebar-presentationbounds assertions:1184 > 1164,273 > 100ce069f9f8374, in both serial and four-worker controlsThe automated classifier calls both shard names pre-existing but explicitly does not compare signatures or selected scopes. Its hourly-main reference has different failed files in those shard numbers (provider labels and rail order); those logs were inspected once too. The assertion-level attribution above rests on the exact pinned-main controls, not matching job names. The lead accepts the separate full-run mobile bounds miss as load-sensitive, with the controlled runs below.
Lease
cbx_22b6e79fc8d4is released, has no host, and reports cleanup complete. All lane leases and Gateways are stopped. This PR is ready for lead review and has not been merged.model-providers.e2e.test.tsmodel-provider-login.e2e.test.tspeople-activity-card.e2e.test.tschat-flow.sidebar-presentation.e2e.test.tssession-management.trailing-state.e2e.test.ts0pxversus52pxpaddingsidebar-rail-alignment.e2e.test.ts40versus4rail ordercontrol-ui-automation-management.real-gateway.e2e.test.tschat-thinking-arguments.e2e.test.ts764.421875versus allowed760.046875once in the full run; 5/5 base and 5/5 candidate isolated runs plus both parallel arms pass; lead accepts as load-sensitiveLead classification: the mobile
chat-thinking-argumentsbounds miss is load-sensitive and accepted. It appeared once in the full run, then passed 5/5 candidate and 5/5 base isolated runs (all four cases in each arm), and passed both arms of the four-worker control. The supporting runs arerun_97395578b6e708f647c0b55cd48d8ec0andrun_beb7cfb3d4d36353080ed382cd6cf883, on leasecbx_22b6e79fc8d4. No further investigation is requested, and no test expectation or product code was changed for that miss.The first CI run, on prior head
f4280257fa57, encountered an obsolete shared-chatboard.getassertion. Main removed it in #185031. This patch was rebased unchanged onto that landed test correction;git range-diffconfirms identical patch content. No CI rerun was used to chase that failure. The95d3153bfd5cmeasurements above replace the earlier measurements; the lead-requested patch-identical rebase has its own CI below.Production LOC and scope
Application runtime +8 LOC; opt-in diagnostics +1; combined non-test +9 (19 additions / 10 deletions across eight non-test files). The accessible pending description forces the small growth. Three disabled-class bindings and their superseded CSS selector are deleted. The existing regression gains 35 net lines. No configuration, stored shape, schema, protocol, effect, or
untrackcall is added. The lead owns review and landing; the lane worker does not merge.Inspected synthetic filmstrip frames
The attached unmodified frames are synthetic Team-scale fixtures, inspected in full. Chat before/cached → before/live is about 697/949 ms; after/cached → after/live is about 679/1013 ms. Dashboard is 806/1076 ms before and 676/935 ms after. Catalog and unrelated shell hydration remain visible in the raw frames. No private campaign capture is attached.