Skip to content

fix(ui): stop streamed updates from reopening task progress - #147802

Merged
roboclaw-bot merged 1 commit into
mainfrom
openclaw/fix-progress-scroll-feedback
Sep 14, 2026
Merged

roboclaw-bot merged 1 commit into
mainfrom
openclaw/fix-progress-scroll-feedback

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Collaborator

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

  • The full-app counterfactual reproduces the bug on the unchanged base: after a 32 px upward wheel gesture, the card reopens and follows incoming paragraphs. The same fixture passes with the repair.
  • 13 full-app Chromium scenarios pass, including short and long active answers, reduced and normal motion, streamed updates during collapse, explicit Latest return, continued following, task/manual choices, and existing dock behavior.
  • Four browser end-follow checks pass, preserving observed-at-end growth and programmatic departure, plus the new resize-clamped reader case.
  • 131 focused scroll, disclosure, and transcript-controller tests pass, including typing follow with permission denied at the physical end.
  • UI typecheck, scoped lint/style checks, formatting, and diff checks pass. Fresh independent review found no actionable P0–P2 defects.
  • These are production Control UI captures with a deterministic mock Gateway, not live-provider proof. The remaining image-render confirmation is waived by the September 14, 2026, 05:35 UTC landing direction in the originating Team discussion, given after that manual blocker was identified. The inspected images remain attached in chat and embedded here; no CI or code-review gate is waived.

Identical synthetic fixture after the same streamed updates; crops exclude model/account controls:

Before: unsolicited reopen and follow After: reader and compact card retained
Before streamed updates reopen Task progress and drag the reader to newer output After Task progress stays collapsed and arriving output remains below the reader

Originating Team discussion. Human co-author credit is retained for steipete, vyctorbrzezowski, and vincentkoc.

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]>
@clawsweeper

clawsweeper Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: M maintainer Maintainer-authored PR labels Sep 14, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 14, 2026
@clawsweeper

clawsweeper Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 14, 2026, 12:05 AM ET / 04:05 UTC (Revision 2).

ClawSweeper review

What this changes

Makes 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
Reviewed head: 2379f40da594dfca44a3f2dd0287723d13fdde2c

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused owner-level repair with relevant visual evidence and regression coverage; the outstanding delivery gate does not reduce patch quality.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Inspected production Control UI before/after captures support stable history reading and compact progress after streamed paragraphs in the documented Chromium mock-Gateway scenario; matching browser assertions cover continued streaming and explicit Latest return.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): Inspected production Control UI before/after captures support stable history reading and compact progress after streamed paragraphs in the documented Chromium mock-Gateway scenario; matching browser assertions cover continued streaming and explicit Latest return.
Evidence reviewed 7 items Current main still needs the repair: The fetched main implementation captures the physical bottom as an end anchor and issues automatic follow without consulting the pane’s reader lock. No replacement fixing PR is established by the supplied related context.
Existing policy remains authoritative: The pane supplies its existing follow lock to the transcript controller. Automatic commands, geometric anchoring, and typing follow consume that policy; explicit manual returns remain permitted. Disclosure retains its existing manual-choice precedence.
Established user contract: The feature reference promises that scrolling into history stops following incoming output and that the down-arrow returns to Latest, including when the progress card resizes.
Findings None None.
Security None None.

How this fits together

The 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]
Loading

Before merge

  • Resolve merge risk (P1) - Rendering of the supplied screenshots in the originating chat and GitHub remains explicitly unconfirmed; local image inspection does not complete that delivery gate.
  • Complete next step (P2) - Verify the supplied before/after screenshots render in both the originating chat and GitHub, then record confirmation in the PR body, or obtain an explicit waiver for the unfinished destination.
Agent review details

Security

None.

PR surface

Source +39, Tests +183. Total +222 across 7 files.

View PR surface stats
Area Files Added Removed Net
Source 4 70 31 +39
Tests 3 188 5 +183
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 7 258 36 +222

Review metrics

None.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Keep reader intent owned by the pane, with geometry consuming that policy and explicit Latest commands restoring follow.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best 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.

Labels

Label justifications:

  • P2: Repairs a bounded chat-reading disruption caused by streamed output and progress-card resizing.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): Inspected production Control UI before/after captures support stable history reading and compact progress after streamed paragraphs in the documented Chromium mock-Gateway scenario; matching browser assertions cover continued streaming and explicit Latest return.
  • proof: sufficient: Contributor real behavior proof is sufficient. Inspected production Control UI before/after captures support stable history reading and compact progress after streamed paragraphs in the documented Chromium mock-Gateway scenario; matching browser assertions cover continued streaming and explicit Latest return.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected production Control UI before/after captures support stable history reading and compact progress after streamed paragraphs in the documented Chromium mock-Gateway scenario; matching browser assertions cover continued streaming and explicit Latest return.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Vyctor H. Brzezowski: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Confirm the existing sanitized before/after images render in the originating chat and GitHub, and record completion in the PR body.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (1 earlier review cycle)
  • reviewed 2026-09-14T03:37:30.506Z sha 2379f40 :: blocked before merge. :: none

@roboclaw-bot
roboclaw-bot marked this pull request as ready for review September 14, 2026 03:52
@roboclaw-bot
roboclaw-bot merged commit 796adff into main Sep 14, 2026
187 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/fix-progress-scroll-feedback branch September 14, 2026 05:55
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 15, 2026
…#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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant