Repository navigation
fix: speed up repeated visualization loads - #146602
Conversation
Cache the public sandbox shell under a fingerprint of its HTML and security headers. Keep widget documents authenticated and refreshable, and keep unversioned or mismatched shells uncached.
|
🦞👀 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. Reviewed September 12, 2026, 9:07 PM ET / September 13, 2026, 01:07 UTC (Revision 2). ClawSweeper reviewWhat this changesThis PR lets repeated visualization mounts reuse a versioned public sandbox shell, documents the cache boundary, adds HTTP regression coverage, and corrects an upgrade-test argument expectation. Merge readiness✅ Ready for maintainer review The optimization remains useful: current main and the latest release still disable shell caching. The pinned patch has no actionable correctness findings, and the reported browser measurements support its performance benefit. Priority: P2 Review scores
Verification
How this fits togetherChat visualizations, dashboard widgets, and MCP Apps load a public shell on an isolated origin before receiving their document content. The shared sandbox owner generates the shell URL and security policy, while separate document and bridge owners retain authentication and per-view state. flowchart TD
A[Visualization mount] --> B[Shell URL and policy fingerprint]
B --> C{Exact cached version?}
C -->|Yes| D[Public shell from browser cache]
C -->|No| E[Sandbox HTTP server]
E --> D
F[Fresh document through existing access checks] --> G[Isolated widget frame]
D --> G
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +25, Tests +39, Docs +5. Total +69 across 6 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep one content-addressed public shell owner while fetching documents through their existing access checks and retaining uncached responses for older or mismatched URLs. Do we have a high-confidence way to reproduce the issue? Yes: current main sends no-store on every shell response, forcing repeated mounts to reload it; the PR also supplies paired browser measurements. This read-only review did not execute a reproduction or tests. Is this the best way to solve the issue? Yes: versioning the existing public shell and its headers addresses the redundant transfer without adding a second document cache or changing authenticated content delivery. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 0d2c3a2292ad. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Merged via squash.
|
Keep plugin and settlement adoption with admission while allowing explicit operator recovery. Exercise requester preservation through dispatch and retain retryable approval handoffs on admission failure. Align the existing browser cache assertion with the fingerprinted sandbox shell from #146602.
* fix: speed up repeated visualization loads Cache the public sandbox shell under a fingerprint of its HTML and security headers. Keep widget documents authenticated and refreshable, and keep unversioned or mismatched shells uncached. * test: match explicit plugin argument in upgrade fixture
Retain no-store assertions for the standalone host and ticketed view while expecting immutable caching for the content-versioned public sandbox shell introduced by #146602. Preserve the existing history, cancellation, and authority conformance cases.
…146667) * fix(agents): recover yielded subagents and preserve sidebar nesting Defer sessions_yield until earlier async tool results have reached a subsequent model request, preventing a child from pausing before it can consume completed output. Resume paused children through the existing adoption owner so task identity, requester, and parent completion batches survive operator follow-ups. Keep subagents beneath their expanded navigation parent even when categorized, and show their task names in activity rows. Validation: async-yield, sessions.send recovery, lifecycle, and sidebar regressions; scoped production/test typechecks, lint, consistency checks, and independent review passed. (cherry picked from commit 3086b77b6ce7edd25d0964b1f3559dea296e4d12) * fix(gateway): preserve admitted follow-up task ownership Keep plugin and settlement adoption with admission while allowing explicit operator recovery. Exercise requester preservation through dispatch and retain retryable approval handoffs on admission failure. Align the existing browser cache assertion with the fingerprinted sandbox shell from #146602.
…penclaw#146667) * fix(agents): recover yielded subagents and preserve sidebar nesting Defer sessions_yield until earlier async tool results have reached a subsequent model request, preventing a child from pausing before it can consume completed output. Resume paused children through the existing adoption owner so task identity, requester, and parent completion batches survive operator follow-ups. Keep subagents beneath their expanded navigation parent even when categorized, and show their task names in activity rows. Validation: async-yield, sessions.send recovery, lifecycle, and sidebar regressions; scoped production/test typechecks, lint, consistency checks, and independent review passed. (cherry picked from commit 3086b77b6ce7edd25d0964b1f3559dea296e4d12) * fix(gateway): preserve admitted follow-up task ownership Keep plugin and settlement adoption with admission while allowing explicit operator recovery. Exercise requester preservation through dispatch and retain retryable approval handoffs on admission failure. Align the existing browser cache assertion with the fingerprinted sandbox shell from openclaw#146602.
What Problem This Solves
Fixes slow repeated visualization loads when reopening a chat or remounting a widget.
User Impact
Chat visualizations, dashboard widgets, and MCP Apps can reuse their public sandbox shell. Five paired foreground browser measurements reduced median warm-mount rendering from 863 ms to 251 ms (71% faster) under controlled latency. First loads still pay the shell network cost; initial Gateway and history delays remain.
Why This Change Was Made
The shared sandbox endpoint previously returned
no-storefor every mount. Its URL now fingerprints the shell HTML and security headers, and only an exact version receives immutable caching. Unversioned, stale, or policy-mismatched URLs remain uncached. Widget documents, credentials, and view tickets never enter this cache; authenticated document reads and sandbox isolation remain unchanged.Evidence