Repository navigation
fix(ui): avoid extra chat rail work while replies stream - #146883
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 13, 2026, 6:54 AM ET / 10:54 UTC (Revision 3). ClawSweeper reviewWhat this changesThe PR filters chat position rail notifications so streamed text edits avoid rescanning saved message bubbles, while message mounts, removals, and identity changes still update tracking. Merge readiness✅ Ready for maintainer review This remains a useful, focused optimization absent from current main and the latest release. No blocking correctness findings were identified; the related grouping PR addresses different behavior. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI’s conversation position rail turns saved messages into navigation markers. It observes mounted transcript bubbles to highlight the reader’s position as messages stream or virtualization replaces nodes. flowchart TD
A[Saved messages] --> B[Rail navigation markers]
C[Transcript DOM changes] --> D{Message targets changed?}
D -->|Yes| E[Reconcile observed bubbles]
D -->|No| F[Keep existing targets]
E --> G[Update visible message markers]
B --> G
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +11, Tests +105. Total +116 across 2 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep target-membership invalidation in the existing rail observer while leaving message geometry and reader position with their current owners. Do we have a high-confidence way to reproduce the issue? Yes, from source: streamed descendant replacements reach main’s subtree observer and mark unchanged targets dirty, causing another full scan. No runtime reproduction was executed during this read-only review. Is this the best way to solve the issue? Yes. Filtering membership-changing mutations at the existing observer is a narrow repair that preserves identity updates, virtualization tracking, and lifecycle cleanup without another cache or owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against c015302f7ff9. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
* refs/heads/temp/pr-146883: (159 commits) fix: retain route ownership while discovering conversations (#146927) refactor: reuse plugin fixture shell runner (#146920) fix(worker): stop preparing disabled live previews (#146896) fix(runtime): support Bun across tooling suite (#146807) chore(i18n): refresh native locales (#146924) perf(secrets): limit expiry metadata to transient credentials (#146882) fix(ui): preserve queued refreshes during session discovery (#146535) test(ui): wait for quiet scrolling and close named file tabs (#146836) fix(ui): prevent Usage hour filters from freezing during DST (#146919) test(ui): share browser page cleanup across layout fixtures (#146805) ci: balance complete PR runtime test groups (#146916) improve(infra): reduce scheduling work for session notice bursts (#146818) improve: prepare Gateway skill commands asynchronously (#146812) improve(agents): skip unused assistant delivery parsing (#146858) improve(ui): reuse date formatters across timestamp lists (#146789) fix(tests): isolate installer and Docker shell snippets (#146897) test(heartbeat): share explicit channel configuration fixtures (#146853) fix: retain conversation reply claims through write admission (#146866) perf(sessions): bound history reads and stabilize cursor paging (#146770) fix(ui): let slow dashboard downloads finish before recovery (#146881) ...
|
Merged via squash.
|
* temp/pr-146802: (51 commits) improve: reduce worktree filesystem stalls and archive syncs (#146906) fix(ui): avoid extra chat rail work while replies stream (#146883) improve(ui): speed up populated Usage timelines (#146947) test(gateway): retain auth recovery failure diagnostics (#146925) fix(tests): create private temporary home directories (#146931) fix(backup): preserve discovery under concurrent state writes (#146912) fix: keep queued deliveries in their original state directory (#146917) fix(discord): settle voice waveform work before releasing input (#146885) fix(memory): preserve newer indexes and disclose automatic rebuild costs (#146908) fix: retain route ownership while discovering conversations (#146927) refactor: reuse plugin fixture shell runner (#146920) fix(worker): stop preparing disabled live previews (#146896) fix(runtime): support Bun across tooling suite (#146807) chore(i18n): refresh native locales (#146924) perf(secrets): limit expiry metadata to transient credentials (#146882) fix(ui): preserve queued refreshes during session discovery (#146535) test(ui): wait for quiet scrolling and close named file tabs (#146836) fix(ui): prevent Usage hour filters from freezing during DST (#146919) test(ui): share browser page cleanup across layout fixtures (#146805) ci: balance complete PR runtime test groups (#146916) ...
* commit 'ccfd2377cd07d1ad3a583ba64d08e29a065f7061': (1587 commits) fix(ui): avoid recapturing chat drafts during UI updates (#146884) fix(ui): show system uptime in the debug overlay (#146960) fix(retry): honor waits beyond the native timer limit (#145718) fix(ui): keep chat history idle when run status changes (#146802) fix(ui): reuse persisted text during chat streaming (#146831) refactor(qa): share harness drift result construction (#146903) test(agents): coordinate settings lock contention (#146949) fix(worker): avoid repeatedly serializing screenshot history (#146907) fix(secrets): stop buffered upload writes after cancellation (#146840) perf(doctor): avoid unnecessary state runtime imports (#146926) improve: reduce compaction request estimation work (#146961) fix(ci): wait for forwarded avatar imports before assertions (#146729) perf(workers): skip configured Git author lookups (#146833) fix: admit borrowed memory writes through the agent database owner (#146760) fix(discord): prevent voice playback gaps and stale turn controls (#146798) improve: reduce worktree filesystem stalls and archive syncs (#146906) fix(ui): avoid extra chat rail work while replies stream (#146883) improve(ui): speed up populated Usage timelines (#146947) test(gateway): retain auth recovery failure diagnostics (#146925) fix(tests): create private temporary home directories (#146931) ... # Conflicts: # test/tsconfig/tsconfig.core.test.agents-other.json # test/tsconfig/tsconfig.core.test.agents-root.json
What Problem This Solves
Fixes: the conversation position rail repeatedly rescans unchanged saved messages while an assistant reply streams.
User Impact
Streaming replies avoid redundant browser work while the rail continues tracking messages that enter or leave the mounted transcript. No configuration or migration is required.
Why This Change Was Made
The existing observer now distinguishes changes to observed message targets from edits inside those messages. Direct and nested message mounts, removals, and identity changes still reconcile the target set. The change adds no cache and preserves the existing observer lifecycle.
Production changes: +16/-5 (net +11), needed to express which mutations change target membership. Tests: +106/-1.
Related grouping work: #143296. This fix preserves the current grouping and message-selector contract.
Evidence