Skip to content

perf(control-ui): reveal the warm cached page in one commit - #195166

Closed
steipete wants to merge 1 commit into
mainfrom
steipete/coldload-team-join-revival
Closed

steipete wants to merge 1 commit into
mainfrom
steipete/coldload-team-join-revival

Conversation

@steipete

@steipete steipete commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

This closed experiment investigated the staged skeleton/sidebar/transcript paint on a warm chat reload.

User Impact

Continued in #195865, which carries the final measured candidate and inspected synthetic evidence.

Why This Change Was Made

GitHub refused reopening this PR after its experiment head changed. The replacement uses the same lane branch at f091d3f7cee5e425580ef4af6172116903cddab3; this closed PR's stored pull head remains 0d8a7759.

Evidence

See #195865 for the final five-workload timing tables, corrected visual census, paint-holding attribution, lead decisions, hold-expiry proof, screenshots and validation results. No merge was performed.

@clawsweeper

clawsweeper Bot commented Nov 8, 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 size: L labels Nov 8, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Nov 8, 2026
@clawsweeper

clawsweeper Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR hides intermediate warm-reload frames until the cached sidebar and settled conversation commit together, with a 450 ms loading fallback.

Example: Reload a cached chat with 240 messages while its sidebar module loads separately.

  • Before: The loading skeleton, cached sidebar, and conversation can appear in separate frames.
  • After: The intended result reveals cached regions together, or shows the loading layout after 450 ms.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The implementation is coherent on source inspection, but this experimental revision has no qualifying real-behavior evidence and its substantive CI checks were skipped.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🦐 gold shrimp (3/6) No actionable review findings were identified.

Product

Kind: Performance · Worth it: Yes · Fix scope: Complete
User problem: A signed-in chat reload exposes intermediate skeleton, sidebar, and conversation states before the cached page is complete.
Reason: Reducing the visible reload cascade has clear user value, and the maintainer-authored experiment establishes direction without authorizing merge.

Merge readiness

✅ Ready for maintainer review

Keep this maintainer-authored experiment open and preserve its explicit do-not-merge pause; source review found no definite introduced defect.

Priority: P3
Reviewed head: 0d8a775909e95341ba6fd5f4da038f53056d8be1

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: The revised bundled regressions lack execution and base-red/head-green evidence, and real compositor captures must demonstrate joined reveal, deadline fallback with draft handoff, and immediate recovery under the declared workloads.
Agent review details

How this fits together

Control UI startup reads scoped browser snapshots while connecting to the Gateway; sidebar and chat rendering report completion to a document visibility latch.

flowchart TD
  A[Chat reload] --> B[Parser boot hint]
  B --> C[Document visibility latch]
  D[Scoped sidebar snapshot] --> C
  E[Settled chat and Details] --> C
  C --> F[Visible cached page]
  G[Deadline or recovery] --> H[Visible loading or error]
  C --> H
Loading

Technical review

Best possible solution:

Use the existing boot owner to join admitted cached regions while preserving bounded loading fallback, draft handoff, and immediate recovery.

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

Current-main source independently releases cached sidebar routing and mounts the conversation, explaining intermediate presentation states; this review did not execute a browser reproduction or establish compositor timing.

Is this the best way to solve the issue?

The proposal uses a small document-lifetime latch, retains existing cache and admission owners, and removes the sequencing it replaces; whether hiding intermediate frames improves the actual reload remains an experimental question.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Cached-roster paint sequencing changes intended behavior with a stated reason (232dee1: Paint the restored sidebar before conversation construction to improve first contentful paint and restore-frame blocking.)
  • Early critical loading frame changes intended behavior with a stated reason (f3464c7: Paint a theme-aware chat frame before application assets finish loading.)
  • Scoped cached sidebar ownership keeps the original intent (561d92d: Share settled sidebar, routing defaults, and boot roster state while preserving scope retirement.)
  • Boot composer preservation keeps the original intent (4ad9aea: Accept early typing and carry its draft into the normally admitted session composer.)
  • Cached-pane prewarm admission keeps the original intent (f6ef3f8: Prepare the matching scoped snapshot before first pane attachment without delaying connection startup.)
  • Sidebar persistence lifecycle keeps the original intent (9fa4e56: Retain the synchronous snapshot owner across Solid view recreation and let actual host attachment own its lifetime.)

Testing

Proof path: unit tests only.

Security

None.

Evidence

What I checked:

PR surface

Source +60, Tests +312, Docs +2, Other +1. Total +375 across 22 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 15 124 64 +60
Tests 5 385 73 +312
Docs 1 2 0 +2
Config 0 0 0 0
Generated 0 0 0 0
Other 1 1 0 +1
Total 22 512 137 +375

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Review metrics

Metric Value Why it matters
Production versus regression-test growth Production +124/-64, net +60 LOC; tests +385/-73, net +312 LOC. Production growth implements the bounded document hold and existing-owner release paths; the bundled tests cover distinct join, deadline/draft, route-error, and cache-miss boundaries.

Labels

Label changes:

  • add P3: This is a paused presentation-performance experiment improving warm-reload continuity, with no established loss of functionality.
  • add rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦐 gold shrimp.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This is a paused presentation-performance experiment improving warm-reload continuity, with no established loss of functionality.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦐 gold shrimp.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rank-up moves

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

  • Complete the declared compositor and performance qualification with inspected before/after captures.
  • Run the revised bundled regressions, full UI qualification, and exact-head CI before marking the experiment ready.

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

@steipete steipete closed this Nov 8, 2026
@steipete steipete changed the title experiment(control-ui): warm cached page visibility [do not merge] perf(control-ui): reveal the warm cached page in one commit Nov 9, 2026
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 P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. 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