Repository navigation
fix(ui): stop streamed updates from reopening task progress - #147802
Conversation
Keep page-owned reader intent authoritative for geometric end anchoring, automatic end commands, and typing follow. Preserve explicit Latest/manual returns and standalone transcript behavior. Cover resize-clamped readers with short and long live answers, both motion modes, and existing end-follow contracts. Co-authored-by: steipete <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: vincentkoc <[email protected]>
|
🦞👀 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: blocked before merge. Reviewed September 14, 2026, 12:05 AM ET / 04:05 UTC (Revision 2). ClawSweeper reviewWhat this changesMakes chat transcript scrolling respect the reader’s existing follow preference so streamed updates do not reopen Task progress or pull the reader downward. Merge readiness⛔ Blocked before merge - 2 items remain The repair remains necessary on current main, and no actionable patch defect was found. The supplied visual evidence supports the fix; screenshot delivery confirmation remains unfinished. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI receives streamed chat updates and renders them in a scrolling transcript above the composer. Its reader-position policy also controls whether Task progress automatically expands. flowchart TD
A[Streamed chat updates] --> B[Transcript layout]
C[Reader scroll or Latest command] --> D[Pane follow policy]
D --> E[Automatic end following]
B --> E
E --> F[Transcript position]
D --> G[Task progress disclosure]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +39, Tests +183. Total +222 across 7 files. View PR surface stats
Review metricsNone. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep reader intent owned by the pane, with geometry consuming that policy and explicit Latest commands restoring follow. Do we have a high-confidence way to reproduce the issue? Yes: source and the supplied counterfactual identify a 32-pixel upward scroll followed by viewport clamping and streamed paragraphs. Current main retains the unchecked follow path; this review did not execute it. Is this the best way to solve the issue? Yes: the patch connects automatic scrolling to the existing reader-policy owner without changing stored preferences, manual disclosure choices, or public APIs. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against ae5a4b4a5552. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Merged via squash.
|
…#147802) Keep page-owned reader intent authoritative for geometric end anchoring, automatic end commands, and typing follow. Preserve explicit Latest/manual returns and standalone transcript behavior. Cover resize-clamped readers with short and long live answers, both motion modes, and existing end-follow contracts. Co-authored-by: steipete <[email protected]> Co-authored-by: vyctorbrzezowski <[email protected]> Co-authored-by: vincentkoc <[email protected]>
Related: #147295
What Problem This Solves
Fixes Task progress reopening and pulling the conversation downward when the agent streams new paragraphs after the reader scrolls slightly into history.
User Impact
The card stays compact and the reading position stays put while new output arrives below it. An explicit return to Latest resumes normal following. Existing manual disclosure choices and motion settings are preserved.
This is the stability repair, not the proposed elastic/gesture-driven redesign.
Why This Change Was Made
Closing the card can enlarge the transcript viewport and clamp it to the physical bottom. The geometry layer mistook that clamp for permission to follow; the next streamed update then reopened the card. Geometry, automatic end commands, and typing follow now consume the existing page-owned reader policy instead of granting themselves permission from position alone.
The existing end-anchor state and algorithm moved into a small helper to keep the virtualizer host within its file budget; it does not introduce another follow-policy owner.
Evidence
Identical synthetic fixture after the same streamed updates; crops exclude model/account controls:
Originating Team discussion. Human co-author credit is retained for steipete, vyctorbrzezowski, and vincentkoc.