Repository navigation
fix(ui): reduce layout stalls during chat and sidebar interactions - #154179
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. Reviewed September 20, 2026, 8:29 PM ET / September 21, 2026, 00:29 UTC (Revision 2). ClawSweeper reviewWhat this changesThe PR batches Control UI tab and sidebar measurements and suppresses redundant Files header notifications to reduce chat interaction stalls. Merge readiness✅ Ready for maintainer review This remains useful work: current main retains the reported measurement churn, and the earlier merged performance fix addressed different paths. No blocking correctness or security findings were identified. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI renders chat alongside tabbed panels. These components translate panel updates, scrolling, and resizing into overflow indicators and geometry notifications used by the chat transcript. flowchart TD
A[Panel content and selection updates] --> B[Files header change detection]
B --> C[Sidebar rendering]
C --> D[Batched geometry measurements]
E[Tab content resize and scroll] --> D
D --> F[Tab overflow indicators]
D --> G[Transcript geometry notification]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +88, Tests +295. Total +383 across 6 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep measurement ownership within the existing UI components, batch geometry work, and preserve tab focus, overflow hints, and retained panel content. Do we have a high-confidence way to reproduce the issue? Yes, source establishes repeated synchronous geometry work during unchanged tab and sidebar renders, and the added regressions target those paths. This review did not independently reproduce the reported browser timing. Is this the best way to solve the issue? Yes. The patch repairs measurement scheduling and notification ownership in the existing components without adding configuration, changing persisted state, or duplicating a supported capability. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 647e62369ffb. 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.
|
…penclaw#154179) * fix(ui): reduce layout stalls during chat and sidebar interactions * test(ui): keep fresh tab fixtures without map spreads
What Problem This Solves
Fixes sluggish sidebar hover and chat interactions when repeated panel updates force browser layout during rendering.
User Impact
Chat and sidebar interactions spend less time waiting for panel layout. Tab overflow hints, scrolling, keyboard focus, panel docking, and retained content keep their existing behavior. No configuration or migration is needed.
Why This Change Was Made
A live Chrome DevTools trace recorded 20.9 seconds of forced reflow in a 50.8-second capture. Tab-label measurements during Lit commits were the largest contributor; the side-panel region then measured again immediately after rendering.
The tab strip now retains one measurement owner across renders, batches reads before writes, and observes actual content/size/scroll changes. Panel geometry commits coalesce after nested renders. Files announces hosted-tab changes only when its header presentation or selection changes.
Evidence
Inspected synthetic screenshots demonstrate preserved hover and panel presentation.
Before:
After: