Repository navigation
fix(ui): prevent typing lag in long chat transcripts - #133465
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 31, 2026, 9:02 PM ET / September 1, 2026, 01:02 UTC. ClawSweeper reviewWhat this changesThe PR keeps ordinary Control UI composer edits local to the textarea so a long chat transcript is not rebuilt on every keystroke, while retaining control, command-menu, and text-direction updates. Regression provenancePossible regression — probable (reproduction; reviewed change). No predecessor PR is attributed. Merge readinessKeep open for normal maintainer review. The focused change correctly removes ordinary composer edits from the chat-pane invalidation path, remains absent from current main, and has aligned exact-head behavior proof; exact-head CI is still running and this protected maintainer PR is not eligible for automated cleanup. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI chat page renders persisted history and a composer in one pane. Composer input changes draft state, menus, direction, and send eligibility; only changes that affect surrounding controls need a pane render. flowchart LR
A[Persisted chat history] --> B[Control UI chat pane]
C[Composer keystroke] --> D[Composer input handling]
D --> E[Draft, menus, direction, send eligibility]
E --> B
B --> F[Visible transcript and controls]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +11, Tests +152. Total +163 across 5 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Merge the focused owner-boundary repair after exact-head CI succeeds and a maintainer confirms the latest review-state requirements. Do we have a high-confidence way to reproduce the issue? Yes: the submitted exact-head proof exercises built production Control UI bundles with the same long persisted transcript before and after the repair, and the checked browser regression covers the same input path. Is this the best way to solve the issue? Yes: the repair changes the composer owner rather than adding a downstream workaround, preserves menu-controlled renders, and directly maintains textarea direction when a render is skipped. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against a341cc11c2e8. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
e07e06b to
ac9884e
Compare
Exact-head live Control UI proofTested candidate Both revisions were fully built with
Both runs rendered the Before ( After (candidate, 4× CPU): Exact-head verification
The first full CI run exposed one real interaction: after a skipped steady-state render, the shared draft commit helper could mistake its stale rendered prop for current state and fail to clear a whitespace-only draft on blur. The final head fixes that owner by preferring its live getter and adds direct stale-prop plus offline slash-transition regressions. The two unrelated process-teardown timing failures in that superseded run touched no PR files; the final head receives a fresh full CI run. The remaining intentionally rendered paths are empty/non-empty control transitions, IME composition, and active slash/skill menus. The proof targets the PR's claimed ordinary steady-state typing path. |
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Co-authored-by: VACInc <[email protected]> Worked on by: - @VACInc
ac9884e to
9969500
Compare
|
Merged via squash.
|
Worked on by: - @VACInc Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: VACInc <[email protected]>


What Problem This Solves
Fixes an issue where users typing in a long Control UI chat could experience visible input lag because each ordinary character invalidated and rebuilt the surrounding chat pane.
Why This Change Was Made
Keep steady composer edits owned by the textarea and redraw the surrounding pane only when submission eligibility or empty/non-empty control state changes. Slash and skill menus retain their existing update paths, while text direction is updated directly on the textarea.
User Impact
Typing remains responsive in long transcripts without changing Send-state transitions, IME and dictation behavior, slash and skill menus, composer persistence, or typing previews.
Evidence
pnpm --dir ui test: 841 files passed; 12,869 tests passed, 1 skipped.chat-stream-runtime-budgets.e2e.test.ts: 5/5 passed against the rebased head, including the long-transcript steady-composer regression.Worked on by