Repository navigation
fix: keep chat composers responsive during background updates - #173114
Conversation
Co-authored-by: vincentkoc <[email protected]>
Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: ebd9d016-afa7-4fd8-a614-dda344d96985
|
🦞👀 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. |
Co-authored-by: vincentkoc <[email protected]>
|
Codex review: needs maintainer review before merge. What this changesThis PR retains composer presentation content and narrows background-update work in menus, welcome recents, placement controls, and mascot geometry. Example: Typing in New Session with 500 sessions and 2,001 model choices while another session updates.
Review scores
ProductKind: Performance · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this maintainer-authored PR open: it addresses distinct composer performance problems still present on main, and inspection found no definite introduced bug. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherGateway-backed UI owners publish session and capability changes; Solid projections and retained Lit content turn those facts into composer controls, welcome recents, and collision geometry. flowchart TD
A[Gateway updates] --> B[UI state owners]
B --> C[Scoped presentation inputs]
C --> D[Retained composer controls]
B --> E[Parked welcome projection]
E --> F[Welcome recents]
D --> G[Boxed collision geometry]
Technical reviewBest possible solution: Retain the focused presentation invalidation fixes while preserving current state-owner authority and selection behavior. Do we have a high-confidence way to reproduce the issue? Current-main source shows broad publications rebuilding menu presentation and repeating roster preparation; supplied mounted regressions target those paths, but no reproduction was executed during this read-only review. Is this the best way to solve the issue? The change addresses unnecessary presentation work at its owning boundaries, reuses existing projection lifecycles, and keeps action callbacks and permission checks current. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 42ee153c0950. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +257, Tests +483. Total +740 across 24 files. Added test files: 4. View PR surface stats
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 Reviewed October 15, 2026, 8:36 AM ET / 12:36 UTC. |
Merge canonical main to consume the verified Talk, video, and diagnostics repairs required by the failed CI attempt. Preserve main's effective-tools loader and the composer's leaf-type contract. Co-authored-by: vincentkoc <[email protected]>
Keep the changed fixture row inside the admitted shared recency window. Its prior rank500-to1 promotion correctly requested authoritative membership, unrelated to composer invalidation. Pause the browser clock and cross the complete collection deadline while preserving the exact no-RPC, catalog-work, identity, and positive row/recents guards. Co-authored-by: vincentkoc <[email protected]>
Integrate verified main fix 6b5f0f4 for the reported authoritative-read fixture failure. The prospective old-head composition exposed a mixed host/browser clock in this PR's positive recents block; retain the independently reviewed browser-clock correction. All 23 other PR files are byte-identical to the prior green head. Co-authored-by: vincentkoc <[email protected]>
|
Merged via squash.
|
…aw#173114) * fix: keep chat composers responsive during background updates Co-authored-by: vincentkoc <[email protected]> * fix: keep chat composers responsive during background updates Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: ebd9d016-afa7-4fd8-a614-dda344d96985 * fix: break composer menu type import cycle Co-authored-by: vincentkoc <[email protected]> * test(ui): qualify new-session typing RPC window Keep the changed fixture row inside the admitted shared recency window. Its prior rank500-to1 promotion correctly requested authoritative membership, unrelated to composer invalidation. Pause the browser clock and cross the complete collection deadline while preserving the exact no-RPC, catalog-work, identity, and positive row/recents guards. Co-authored-by: vincentkoc <[email protected]> --------- Co-authored-by: vincentkoc <[email protected]>
What Problem This Solves
Fixes: typing and composer menus repeat unrelated roster work and rebuild content when background sessions update.
User Impact
User impact: chat and New Session keep the active input, picker content, focus, and caret stable during background row updates. Actual permission, capability, account, runtime, inventory, and recent-session changes still update normally. No configuration or data migration is required.
Why This Change Was Made
Scope work at its producer rather than suppressing shared renderer updates: retain plus-menu content behind sampled display values, keep permission choices and placement artwork with their mounted owners, and prepare welcome recents from the session owner while parking bounded display facts during drafting. The mascot observes real boxed collision controls, not every button in hidden model catalogs.
The added presentation-input and welcome projection code makes mutable updates and lifecycle ownership explicit; callbacks still use current owner props. Shared Menu/LitContent and model-cache authority remain unchanged.
Evidence
286039bdpassed attempt 1 of run 38747426453: 64 terminal jobs (38 successful, 26 skipped), zero pending/failed. Successful jobs recorded 16,225 aggregate elapsed seconds (not billing or UI latency).security-fast,openclaw/ci-gate, dependency-review, and security-sensitive-review passed. The 92-check exact-head inventory was fully terminal with no failures. Prior integrated head0840ea8fpassed run 38742729392, recording 17,357 aggregate job-elapsed seconds; the earlier failed run 38733923859 recorded 14,458. These remain separate head/attempt evidence. No inherited-failure exception or CI rerun was used.Retained original-tree regression costs and measurement boundaries
Each changed unit file was run individually through the repository wrapper with one worker. Wall seconds below include the wrapper/startup, measured with /usr/bin/time; they are not UI latency or INP.
The production input E2E reported 5.41 seconds of Vitest run wall using the exact prebuilt candidate. No timing thresholds were added. Whole-page sort counters also see legitimate sidebar work, so the deterministic welcome work budget is retained at the production component boundary instead. Remaining model-projection attribute writes are outside this change's zero-child-list claims.
Worked on by
Work sessions
View the OpenClaw team session