Skip to content

perf(control-ui): restore composer display facts on warm reload - #184383

Merged
steipete merged 7 commits into
mainfrom
steipete/coldload-cached-pane-chrome-details
Oct 26, 2026
Merged

steipete merged 7 commits into
mainfrom
steipete/coldload-cached-pane-chrome-details

Conversation

@steipete

@steipete steipete commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

On a signed-in warm reload of a chat or dashboard deep link, the cached transcript appears before the effort and permission controls settle. The campaign's initial evidence recorded 14 visible reload states; this focused change removes one remaining composer transition.

Why This Change Was Made

Extend the existing per-session composer snapshot with reasoning/effort facts, resolved speed presentation, and permission display. Capture at the existing catalog/history owner points, using the same bounded, scoped, disposable cache. Projection version 5 resets older projections; preservation across transcript replacement requires the same session incarnation.

The live speed resolver owns capability and recovery policy. The cache retains only its four display fields, so a preserved Ultrafast preference cannot masquerade as an active Ultrafast badge when live capabilities mean Standard or Fast.

Cached facts never authorize actions. Model and effort controls remain disabled until their live owners are ready. Permission controls hand off independently when live session authority arrives, even if the model catalog is unavailable. Accepted empty live values clear stale presentation.

Application production delta: +104 lines. Growth pays for the bounded display projection and live-authority handoff in existing owners. Benchmark instrumentation is separately +200 lines. There is no new pane-display layer, generated validator, configuration option, Gateway protocol field, or server storage change.

User Impact

Saved composer triggers appear with cached content and retain their shape while live facts load. This removes one visible transition; it does not claim a general reload speedup.

Parked work: Details/automations need reliable capture coordinated with their lazy bodies and transcript settlement. Header presence/avatar transitions belong with avatar settlement. Workspace icons are outside this small slice.

Evidence

Head: 215fe8ab32f4abad47fcc6f059c2fbabc271a111; base: d777ae1239625a8cadb3da17e7a057d0c4de71fa. Performance and validation gates are met. Full UI e2e completed with one inherited filesystem failure. The three red CI failures are classified as load-sensitive flakes not caused by this diff after main and two clean PR-head shard replays pass under the declared matched conditions. Ready for lead review; stop before merge.

Qualification run, AWS lease cbx_428f0626a56a, c7a.4xlarge (16 CPUs, about 32.9 GB RAM), completed successfully. Repository Playwright Chromium, live-fast latency, warm chat and dashboard routes, two-pair structural preflights followed by 11 interleaved baseline/candidate pairs per route. Structural probes are separate from unprofiled timing runs.

Composer transitions are 1 → 0 in 11/11 pairs on both routes. Snapshot size is 47,917 → 48,152 bytes: +235 bytes / +0.490%. No secondary meets the declared regression criterion. Chat first-row median is unchanged; dashboard is −4 ms. Chat last observed row paint rises 16 ms in aggregate, with overlapping IQRs and mixed pair signs (5 better / 6 worse); this is not claimed as an improvement. All per-pair deltas are below.

UI/scripts typechecks, focused UI/probe lint, native changed/cleared-settings reload (21.21 s wall), and Team-scale e2e (24.12 s wall) passed. Independent review is clean through P2. Focused store/model/cache/warm-startup/write tests passed. Cached controls remain disabled until live owners are ready.

Focused test wall times (single-file runner, one worker):

File Result Wall time
chat-pane-model-control.test.tsx 3 passed 5.63 s
session-snapshot-store.test.ts 44 passed 4.55 s
session-message-cache.test.ts 13 passed 3.43 s
chat-history-warm-startup.test.ts 27 passed 4.54 s
session-snapshot-write.test.ts 32 passed 3.06 s
chat-pane-session-controls.permissions.node.test.ts 20 passed 11.41 s

The new cached-effort, resolved-speed, and independent permission-readiness regressions were observed failing before their fixes and passing afterward. Native reload proof covers changed and cleared live facts while cached controls remain disabled.

Exact-head CI remains red in checks-ui (1/3) for overlay-anchor animation alignment, Details CI renderer readiness, and transcript browser-preview readiness. The original failure logs are retained. The declared follow-up gate is now met: the matched main replay and both matched replays on this exact PR head pass, including all three originally failing tests. These CI failures are classified as load-sensitive flakes not caused by this diff. No source changes, assertion relaxation, or GitHub CI rerun was used.

All three replays use checksum-pinned Bun 1.4.4-canary.1+807211511, Node v26.12.1, the original include list, UI shard 1/3, three workers, and two-CPU affinity. Both PR replays used separate clean checkouts on AWS c7a.4xlarge, lease cbx_5394c63ffcd5; resource telemetry confirms the test processes saw two CPUs. The three test files and relevant owners are unchanged between the PR base and the main control.

Matched replay Head Bun files / tests passed Node-only files / tests passed Skipped tests Wall time Result
Main control ba427f88834f 716 / 7,523 3 / 50 1 287.75 s Pass
PR replay 1 215fe8ab32f4 717 / 7,714 3 / 50 1 292.81 s Pass
PR replay 2 215fe8ab32f4 717 / 7,714 3 / 50 1 296.24 s Pass

Full UI e2e completed on this exact head and the same lease with Chromium, WebKit, and Firefox installed: 842 files passed, 1 failed, 4 skipped; 3,214 tests passed, 1 failed, 4 skipped; 4,507.83 s wall. The failure is the automation-management real-Gateway fixture rejecting a writable private mutation boundary. The identical error and stack reproduce on main 5eeb65403c1905503bb2c7d273d8b128cc91d414 in the same-path comparison: the lease has umask 0002 and 0775 checkout ancestors. The comparison also reports a separate setup rejection in main’s first case because its artifact path is outside that checkout; that does not establish a product failure for that case. The PR’s first case passes. The four skips require explicit live/fixture opt-ins (desktop resize, peer follow-up restart, deferred steer custody, and DeepSeek search).

Chat

Composer transitions: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1] → [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; deltas [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]. Primary wins: 11/11.

Snapshot bytes: median 47917 [47917, 47917] → 48152 [48152, 48152], growth 0.490%; paired byte deltas [235, 235, 235, 235, 235, 235, 235, 235, 235, 235, 235].

Metric Baseline median [IQR] Candidate median [IQR] Median paired delta Better / worse Regression
hello_handled_ms 565.7 [563.15, 567.4] 568.7 [565.3, 572.85] 0.8 4 / 7 False
FCP_ms 84 [80, 86] 84 [84, 84] 0 3 / 5 False
first_painted_rows_ms 612 [610, 612] 612 [612, 616] 0 0 / 5 False
last_observed_row_text_paint_ms 1088 [1078, 1108] 1104 [1058, 1116] 12 5 / 6 False
LoAF_blocking_ms 208 [190, 217.5] 210 [189, 227] 5 5 / 6 False
CLS_total 0.122734 [0.122605, 0.122734] 0.122201 [0.122071, 0.122201] -0.000533 11 / 0 False

Per-pair candidate-minus-baseline deltas:

  • hello_handled_ms: [0.8, -3.2, 11.2, 14.9, -12.3, 18.4, 2.8, -0.1, 0.4, -11.3, 88.9].
  • FCP_ms: [-8, -8, 4, 4, -8, 12, 8, 0, 0, 4, 0].
  • first_painted_rows_ms: [0, 0, 8, 4, 0, 20, 4, 0, 0, 0, 76].
  • last_observed_row_text_paint_ms: [12, 32, 36, 164, -52, 32, -44, -52, -48, -124, 60].
  • LoAF_blocking_ms: [5, -14, 43, 15, -21, 34, 27, -45, -2, -76, 60].
  • CLS_total: [-0.000533, -0.000533, -0.000274, -0.000533, -0.109173, -0.000274, -0.000533, -0.000533, -0.000792, -0.109173, -0.000274].

Dashboard

Composer transitions: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1] → [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; deltas [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]. Primary wins: 11/11.

Snapshot bytes: median 47917 [47917, 47917] → 48152 [48152, 48152], growth 0.490%; paired byte deltas [235, 235, 235, 235, 235, 235, 235, 235, 235, 235, 235].

Metric Baseline median [IQR] Candidate median [IQR] Median paired delta Better / worse Regression
hello_handled_ms 573.1 [569.95, 576] 572.6 [569.35, 576.5] -0.2 6 / 5 False
FCP_ms 80 [74, 86] 76 [76, 80] 0 5 / 4 False
first_painted_rows_ms 588 [588, 592] 584 [578, 590] -4 7 / 2 False
last_observed_row_text_paint_ms 588 [588, 592] 584 [578, 590] -4 7 / 2 False
LoAF_blocking_ms 127 [121, 143] 116 [111.5, 126] -12 8 / 2 False
CLS_total 0.03498 [0.03498, 0.03498] 0.03498 [0.03498, 0.03498] 0 1 / 3 False

Per-pair candidate-minus-baseline deltas:

  • hello_handled_ms: [-54.7, -53.8, -3.1, 4.6, -0.2, 0.7, 2.1, -8.1, 5.2, 2.6, -1.0].
  • FCP_ms: [0, 0, -8, 8, -12, -8, -12, -4, 12, 4, 4].
  • first_painted_rows_ms: [-24, -48, 8, 20, 0, -16, -8, -4, 0, -4, -4].
  • last_observed_row_text_paint_ms: [-24, -48, 8, 20, 0, -16, -8, -4, 0, -4, -4].
  • LoAF_blocking_ms: [-113, -55, -12, 13, -4, -16, 0, -16, 33, -77, -8].
  • CLS_total: [0.018041, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.1e-05, 1.1e-05, -1.1e-05].

Hello handled is completion of synchronous connect-response dispatch. Final rows uses the benchmark's last observed transcript text paint. Values use inclusive-quartile IQRs; paired deltas are candidate minus baseline. Timing increases are reported against the predeclared overlap/paired-sign rule, not judged from a single median.

Application production growth is +104 lines; opt-in benchmark tooling is +200 lines and the synthetic fixture is +3. The requested stat filter reports +364 net lines because it also retains +57 lines from a .test.tsx file.

Before: cached model identity, effort absent, permission at its default.

Before cached composer

After: saved effort and permission presentation, with controls disabled until live authority.

After cached composer

@clawsweeper

clawsweeper Bot commented Oct 26, 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 app: web-ui App: web-ui scripts Repository scripts size: L labels Oct 26, 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. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. 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 26, 2026
@clawsweeper

clawsweeper Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR restores saved effort, effective speed, and permission presentation alongside cached chat content during warm reload.

Example: Reload a conversation saved with High effort and Full permissions while connection establishment is delayed.

  • Before: The saved model appears, but effort is absent and permissions show the default presentation.
  • After: High effort and Full permission presentation appear immediately, with cached controls disabled until live readiness.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Direct visual evidence and focused boundary coverage support a useful existing-owner extension; the prior finding is resolved and no new defect was identified.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after browser screenshots show saved effort and permission presentation in the composer; supplied production-bundle browser results cover delayed connection, changed and cleared live settings, and paired chat/dashboard reload measurements using synthetic Gateway fixtures.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Performance · Worth it: Yes · Fix scope: Complete
User problem: Saved conversations appear before their composer effort and permission presentation settles.
Reason: The maintainer-authored direction is established, and the narrow change removes a measured visible transition without adding a competing state or policy owner.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: the prior cached-speed finding is fixed, the focused improvement remains useful, and no new actionable defect was found; required CI remains unresolved.

Priority: P3
Reviewed head: 215fe8ab32f4abad47fcc6f059c2fbabc271a111

Before merge

None.

Findings

None.

Agent review details

How this fits together

The Control UI captures composer display facts from existing catalog and session owners into its scoped transcript snapshot, restores them during reload, and replaces them with live facts without transferring mutation authority.

flowchart LR
  A[Live session and model catalog] --> B[Composer snapshot capture]
  B --> C[Scoped transcript cache]
  C --> D[IndexedDB snapshot]
  D --> E[Cached composer presentation]
  A --> F[Live readiness and mutation owners]
  F --> E
Loading

Technical review

Best possible solution:

Retain the existing-owner display projection and resolve the required CI gate before landing.

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

Current main stores only model identity, explaining the later effort and permission transition; inspected screenshots and the supplied paired results support that behavior, without a new execution during this review.

Is this the best way to solve the issue?

Extending the existing scoped snapshot is a focused solution: the live resolver supplies speed presentation, existing owners retain mutation authority, and session replacement cannot inherit another incarnation’s composer facts.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Composer snapshot capture and rendering keeps the original intent (86d54ba: Restore selected model presentation before reconnect completes while keeping cached controls disabled and live admission authoritative.)
  • Disposable transcript projection keeps the original intent (09e552f: Restore bounded display facts together and invalidate obsolete cache projections without a compatibility reader.)
  • Effective speed versus saved preference keeps the original intent (11f50d2: Keep effective speed presentation separate from the persisted preference and preserve live setting controls.)
  • Permission presentation and mutation lifecycle keeps the original intent (e65b56b: Present permission changes optimistically while binding writes and settlement to the selected session incarnation.)
  • Warm-reload diagnostics keeps the original intent (ffcb0a8: Measure cached-content adoption and subsequent live presentation changes through the existing benchmark.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 86d54ba adds ui/src/pages/chat/chat-composer-snapshot.ts:1 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 86d54ba9f0ff; files: ui/src/pages/chat/chat-composer-snapshot.ts)

PR surface

Source +104, Tests +235, Other +200. Total +539 across 19 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 7 125 21 +104
Tests 9 257 22 +235
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 3 203 3 +200
Total 19 585 46 +539

Review metrics

Metric Value Why it matters
Application versus test growth Application net +104 lines; tests net +232 lines Application growth extends existing capture, validation, and presentation owners; tests protect capability parity, session incarnation, persistence rejection, and browser reconciliation.
Developer option 1 opt-in benchmark flag --pane-chrome-probe defaults off and requires --warm-reload; it adds no user-facing application setting.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P3: This is a bounded warm-reload presentation improvement with no demonstrated delivery or runtime availability failure.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

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.

History

Review history (1 earlier review cycle)
  • reviewed 2026-10-26T08:26:02.012Z sha c98f5e6 :: blocked before merge. :: [P2] Preserve the capability facts that determine effective speed

Reviewed October 26, 2026, 1:08 PM ET / 17:08 UTC (Revision 2).

@steipete
steipete force-pushed the steipete/coldload-cached-pane-chrome-details branch from c98f5e6 to 7260b2c Compare October 26, 2026 09:57
@steipete steipete changed the title experiment(control-ui): cached composer triggers [do not merge] perf(control-ui): restore composer display facts on warm reload Oct 26, 2026
@steipete
steipete marked this pull request as ready for review October 26, 2026 09:59
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 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-10-26T14:50:32.471096Z 215fe8a 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-cached-pane-chrome-details branch 3 times, most recently from 84a0f08 to 7329930 Compare October 26, 2026 13:51
@steipete
steipete force-pushed the steipete/coldload-cached-pane-chrome-details branch from 7329930 to 215fe8a Compare October 26, 2026 14:31
@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

The cached-speed finding is fixed: the snapshot stores only the four display fields produced by the live speed resolver. It does not reconstruct speed policy from a saved preference. Regression coverage is red before the fix and green for Standard-only and recovered-Fast capability cases; actions remain live-authorized.

The cache is intentionally disposable. Projection 5 invalidates older records instead of migrating them, and tests cover direct-read and prewarm rejection of obsolete projections, including version 4. There is no durable server data or protocol change. The fixture-only static assertion was removed.

The PR body contains the final paired performance results, current validation, and inspected synthetic before/after screenshots. Composer transitions improve 1 → 0 in all 11 pairs on each route. Full UI e2e completed (842 files passed, one inherited permission failure, four opt-in skips). Exact-head CI still has three failures that did not reproduce in the matched main shard; that unresolved gate is explicitly recorded. The change remains awaiting the lead's review and is not merged.

@clawsweeper

clawsweeper Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 26, 2026
@steipete
steipete merged commit 0261812 into main Oct 26, 2026
152 of 155 checks passed
@steipete
steipete deleted the steipete/coldload-cached-pane-chrome-details branch October 26, 2026 17:28
steipete added a commit that referenced this pull request Oct 26, 2026
* perf(ui): isolate chat model selection derivation

Keep current mutation guards while retaining model choices across unrelated frame updates. Preserve in-place session facts and locale invalidation. Add a reproducible reconnect matrix with separate update prompt and reload intervals.

* perf(ui): defer unopened model picker options

Derive the selected model summary without expanding every option family. Let the retained picker panel request the full options on first open while preserving Default, runtime and context-budget semantics.

* perf(ui): retain fast-mode derivation across unrelated frames

Compare the model, runtime, speed and availability fields before rescanning the catalog. Keep locale invalidation and live outer mutation guards. Narrow helper input types to the facts it reads.

* test(ui): cover reconnect picker and HTTP latency costs

* perf(ui): retain saved model presentation across reconnect frames

* fix(ui): preserve reconnect profiling across refresh

* refactor(ui): separate shared model control types

* perf(ui): retain eager model options after mobile measurements

Reject lazy option expansion after 20 interleaved mobile first-open pairs increased script CPU by 8.5 percent with a flat control. Keep the narrower selection and Fast-mode derivations and stable saved-model snapshot; restore the original picker API and eager option preparation.

* test(ui): add diagnostic interaction function counts

* perf(ui): limit model search to searchable presentation facts

* test(ui): collect function coverage before browser warmup

* perf(ui): narrow model selection and catalog search inputs

* test(ui): record first-open input phases

* test(ui): preserve input cadence in picker diagnostics

* test(ui): align model fixture types and benchmark formatting

* test(ui): await lazy transcript group before label assertion

* test(ui): reopen publication menu after request admission

* test(ui): await queued patch admission without polling

* test(ui): settle lazy sharing content before assertions

* perf(control-ui): restore composer controls from the cached snapshot (#184383)

Warm reloads restored the composer's model control from the cached composer snapshot but rendered effort, fast mode and permission from live data only. Those controls changed once after first content on every reload.

The existing composer snapshot now also carries display facts for the reasoning/thinking level and profile (capped list), fast-mode presentation, and permission mode with its agent default. Until the selected session is live and its accepted history matches, the composer renders those cached facts with final geometry. The permission control stays disabled while it shows cached state, live owners supersede the snapshot once ready, and actions remain live-authorized.

Evidence, 11 interleaved pairs per route on AWS c7a.4xlarge: composer transitions after first content 1 -> 0 in 11/11 pairs on both chat and dashboard; no secondary regression under the campaign rule; snapshot +235 bytes (+0.49%). Full UI e2e: 842 files passed, 1 inherited filesystem failure. The three checks-ui (1/3) CI failures sit outside this diff and passed in matched shard replays of both main and this head (two replays), so they are classified as load-sensitive flakes. Runtime +104 LOC.
steipete added a commit that referenced this pull request Oct 27, 2026
…o live (#185144)

Warm reloads render the composer from cached facts (#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.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 27, 2026
…penclaw#184383)

Warm reloads restored the composer's model control from the cached composer snapshot but rendered effort, fast mode and permission from live data only. Those controls changed once after first content on every reload.

The existing composer snapshot now also carries display facts for the reasoning/thinking level and profile (capped list), fast-mode presentation, and permission mode with its agent default. Until the selected session is live and its accepted history matches, the composer renders those cached facts with final geometry. The permission control stays disabled while it shows cached state, live owners supersede the snapshot once ready, and actions remain live-authorized.

Evidence, 11 interleaved pairs per route on AWS c7a.4xlarge: composer transitions after first content 1 -> 0 in 11/11 pairs on both chat and dashboard; no secondary regression under the campaign rule; snapshot +235 bytes (+0.49%). Full UI e2e: 842 files passed, 1 inherited filesystem failure. The three checks-ui (1/3) CI failures sit outside this diff and passed in matched shard replays of both main and this head (two replays), so they are classified as load-sensitive flakes. Runtime +104 LOC.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 27, 2026
* perf(ui): isolate chat model selection derivation

Keep current mutation guards while retaining model choices across unrelated frame updates. Preserve in-place session facts and locale invalidation. Add a reproducible reconnect matrix with separate update prompt and reload intervals.

* perf(ui): defer unopened model picker options

Derive the selected model summary without expanding every option family. Let the retained picker panel request the full options on first open while preserving Default, runtime and context-budget semantics.

* perf(ui): retain fast-mode derivation across unrelated frames

Compare the model, runtime, speed and availability fields before rescanning the catalog. Keep locale invalidation and live outer mutation guards. Narrow helper input types to the facts it reads.

* test(ui): cover reconnect picker and HTTP latency costs

* perf(ui): retain saved model presentation across reconnect frames

* fix(ui): preserve reconnect profiling across refresh

* refactor(ui): separate shared model control types

* perf(ui): retain eager model options after mobile measurements

Reject lazy option expansion after 20 interleaved mobile first-open pairs increased script CPU by 8.5 percent with a flat control. Keep the narrower selection and Fast-mode derivations and stable saved-model snapshot; restore the original picker API and eager option preparation.

* test(ui): add diagnostic interaction function counts

* perf(ui): limit model search to searchable presentation facts

* test(ui): collect function coverage before browser warmup

* perf(ui): narrow model selection and catalog search inputs

* test(ui): record first-open input phases

* test(ui): preserve input cadence in picker diagnostics

* test(ui): align model fixture types and benchmark formatting

* test(ui): await lazy transcript group before label assertion

* test(ui): reopen publication menu after request admission

* test(ui): await queued patch admission without polling

* test(ui): settle lazy sharing content before assertions

* perf(control-ui): restore composer controls from the cached snapshot (openclaw#184383)

Warm reloads restored the composer's model control from the cached composer snapshot but rendered effort, fast mode and permission from live data only. Those controls changed once after first content on every reload.

The existing composer snapshot now also carries display facts for the reasoning/thinking level and profile (capped list), fast-mode presentation, and permission mode with its agent default. Until the selected session is live and its accepted history matches, the composer renders those cached facts with final geometry. The permission control stays disabled while it shows cached state, live owners supersede the snapshot once ready, and actions remain live-authorized.

Evidence, 11 interleaved pairs per route on AWS c7a.4xlarge: composer transitions after first content 1 -> 0 in 11/11 pairs on both chat and dashboard; no secondary regression under the campaign rule; snapshot +235 bytes (+0.49%). Full UI e2e: 842 files passed, 1 inherited filesystem failure. The three checks-ui (1/3) CI failures sit outside this diff and passed in matched shard replays of both main and this head (two replays), so they are classified as load-sensitive flakes. Runtime +104 LOC.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 28, 2026
…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.
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 P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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