Skip to content

fix: keep task progress collapsed while reading earlier messages - #148014

Closed
steipete wants to merge 3 commits into
mainfrom
codex/ui-session-copy-startup-20260914
Closed

steipete wants to merge 3 commits into
mainfrom
codex/ui-session-copy-startup-20260914

Conversation

@steipete

@steipete steipete commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes task progress reopening while a reader stays on earlier chat messages and background row measurements adjust the transcript.

User Impact

Task progress stays collapsed while you read earlier messages, even as streaming output and layout measurements continue. Scrolling back to the end or selecting Latest resumes following; explicit card choices remain respected.

Why This Change Was Made

The existing per-session transcript offset owner records the actual browser-clamped offset written by measurement compensation. Reader input and disconnect retire that marker, so automatic corrections preserve reading mode while real input retains its normal behavior.

The interactive browser fixture uses native Home-key input when interrupting an active Latest return. Directly assigning scrollTop changes geometry without delivering reader takeover. The shared geometry helper, original card assertions, and click deadlines remain unchanged.

Evidence

A deterministic regression through the actual TanStack ResizeObserver and transcript/page-policy boundary fails on the original owner and passes with the repair. Both reader commits retain their reviewed patches exactly after rebasing onto main 99d0458d56244ac4c6298904848dcf034f06f79d.

The original scripted browser setup produced a 10-second Latest-click timeout. Paired controls showed that native Home input cancels the retained Latest target. The permanent scenario fails with the old helper and passes with the correction. Fresh current-base qualification passes all 147 owner/unit tests, nine ordinary reader browser scenarios plus the upstream cloud-reconciliation scenario, the production build and budget check (357,227 bytes startup JavaScript gzip), and the complete changed-file gate.

This base includes the separate shared Docker assertion repair in #148129 and cloud-fixture timestamp repair in #147926. The original Docker failure and cloud-fixture failure remain attributable; new exact-head CI qualifies this refreshed reader change.

The exact intermittent CI animation interleaving did not reproduce locally. The inspected screenshots below illustrate the normal synthetic before/after flow. All three PR attachments were verified as accessible PNGs, and the same captures were inspected and rendered in the originating task.

The earlier UI shard 2/3 failure remains documented: “keeps malformed closing-tag validation bounded” measured 107.0 ms against its 100 ms guard. This PR does not claim to fix that timing failure; its stress case and threshold are untouched.

Before: normal synthetic reader flow

After: reader stays collapsed during streaming

After selecting Latest: progress expands again

@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 the app: web-ui App: web-ui label Sep 14, 2026
@steipete
steipete marked this pull request as ready for review September 14, 2026 06:44
@openclaw-barnacle openclaw-barnacle Bot added size: S maintainer Maintainer-authored PR labels Sep 14, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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: needs maintainer review before merge. Reviewed September 14, 2026, 8:58 AM ET / 12:58 UTC (Revision 7).

ClawSweeper review

What this changes

Preserves collapsed task progress during transcript measurement corrections, repairs browser fixture interactions and timestamps, and documents reading behavior.

Merge readiness

✅ Ready for maintainer review

This remains a useful, focused repair beyond the earlier merged scroll fix. No actionable correctness or security findings remain; the previous review’s reproduction caveat does not establish a new blocker.

Priority: P2
Reviewed head: f22c4d53633b09dadc9c81bc7f311a4c99ce03d2

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused owner-level repair with useful regression coverage, inspected visual evidence, and clearly bounded reproduction claims.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Inspected browser captures show compact task progress while reading and expansion after Latest in the production Control UI with synthetic Gateway data. The reported bundled-browser runs and focused measurement regression supplement those visible results; the screenshots do not claim to reproduce the intermittent timing failure.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): Inspected browser captures show compact task progress while reading and expansion after Latest in the production Control UI with synthetic Gateway data. The reported bundled-browser runs and focused measurement regression supplement those visible results; the screenshots do not claim to reproduce the intermittent timing failure.
Evidence reviewed 9 items Introduced scope and review continuity: The complete host-pinned introduction contains the reader repair, docs, and browser fixtures. Comparing the previous reviewed head with HEAD confirms that only the cloud-reconciliation fixture changed; the previously reviewed reader files are unchanged.
Correction provenance stays with the transcript owner: The scroll adapter records the browser-clamped measurement offset, and isProgrammaticScroll recognizes it. Reader input clears the marker, disconnect retires it, and ordinary explicit scroll commands replace it.
Production policy and focused regression: The actual pane connects transcript scroll classification to page policy, which otherwise resumes following on a positive movement to the end. The added regression exercises row measurement through the transcript controller and page policy, preserves reader lock after compensation, and verifies downward wheel input releases it.
Findings None None.
Security None None.

How this fits together

The Control UI virtualizes chat messages and combines browser scroll events with reader intent. That reader policy controls automatic following and task-progress expansion above the composer.

flowchart TD
  A[Streaming messages] --> B[Transcript row measurement]
  B --> C[Browser scroll correction]
  C --> D[Scroll origin classification]
  E[Reader input or Latest] --> D
  D --> F[Reader follow policy]
  F --> G[Transcript position and task progress]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +13, Tests +89, Docs +5. Total +107 across 6 files.

View PR surface stats
Area Files Added Removed Net
Source 2 14 1 +13
Tests 3 96 7 +89
Docs 1 5 0 +5
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 6 115 8 +107

Review metrics

None.

Technical review

Best possible solution:

Keep measurement provenance in the existing transcript owner while preserving page-owned reader intent and task-scoped manual disclosure choices.

Do we have a high-confidence way to reproduce the issue?

Yes, for the measurement-clamp mechanism: current source and the focused controller/page-policy regression establish the path. This review did not execute tests, and the exact intermittent browser timing remains unreproduced.

Is this the best way to solve the issue?

Yes. Recording correction provenance at the existing scroll adapter repairs the classification error without adding another follow-policy owner or changing manual preferences.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 6f21bfa05db4.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient. Inspected browser captures show compact task progress while reading and expansion after Latest in the production Control UI with synthetic Gateway data. The reported bundled-browser runs and focused measurement regression supplement those visible results; the screenshots do not claim to reproduce the intermittent timing failure.

Label justifications:

  • P2: Repairs a bounded chat-reading disruption without changing stored settings, public APIs, or message delivery.
  • 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 browser captures show compact task progress while reading and expansion after Latest in the production Control UI with synthetic Gateway data. The reported bundled-browser runs and focused measurement regression supplement those visible results; the screenshots do not claim to reproduce the intermittent timing failure.
  • proof: sufficient: Contributor real behavior proof is sufficient. Inspected browser captures show compact task progress while reading and expansion after Latest in the production Control UI with synthetic Gateway data. The reported bundled-browser runs and focused measurement regression supplement those visible results; the screenshots do not claim to reproduce the intermittent timing failure.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected browser captures show compact task progress while reading and expansion after Latest in the production Control UI with synthetic Gateway data. The reported bundled-browser runs and focused measurement regression supplement those visible results; the screenshots do not claim to reproduce the intermittent timing failure.

Evidence

What I checked:

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Josh Lehman: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

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 (6 earlier review cycles)
  • reviewed 2026-09-14T06:53:48.929Z sha 756473c :: needs maintainer review before merge. :: none
  • reviewed 2026-09-14T07:02:49.703Z sha 756473c :: needs maintainer review before merge. :: none
  • reviewed 2026-09-14T07:15:20.079Z sha 756473c :: needs maintainer review before merge. :: none
  • reviewed 2026-09-14T08:22:59.049Z sha cacb205a22618caf561e66dce9efd4f9eae5e90e :: blocked before merge. :: none
  • reviewed 2026-09-14T09:25:17.646Z sha f9b7625 :: blocked before merge. :: none
  • reviewed 2026-09-14T11:43:13.791Z sha a1dc608 :: blocked before merge. :: none

@steipete
steipete force-pushed the codex/ui-session-copy-startup-20260914 branch from 756473c to cacb205 Compare September 14, 2026 08:00
@steipete steipete changed the title fix: keep session setup copy out of the Control UI startup bundle fix: keep task progress collapsed while reading and reduce startup load Sep 14, 2026
@steipete
steipete force-pushed the codex/ui-session-copy-startup-20260914 branch from cacb205 to e3eb163 Compare September 14, 2026 08:30
@openclaw-barnacle openclaw-barnacle Bot added the docs Improvements or additions to documentation label Sep 14, 2026
@steipete
steipete force-pushed the codex/ui-session-copy-startup-20260914 branch from e3eb163 to f9b7625 Compare September 14, 2026 08:59
@steipete steipete changed the title fix: keep task progress collapsed while reading and reduce startup load fix: keep task progress collapsed while reading earlier messages Sep 14, 2026
Preserve the provenance of virtualizer row-measurement adjustments when their native scroll event lands at the transcript end. Layout compensation must not unlock a history reader or reopen automatic task progress. Explicit reader input and manual Latest commands keep their existing behavior.

Validated the regression against the original implementation, 238 focused unit tests, 9 production-bundled Chromium E2Es, full changed checks, and independent P0-P2 review. The original CI animation timing did not reproduce locally; the controller and ResizeObserver regression independently proves the ownership defect.
Use actual Home input in the interactive manual-disclosure sequence so reader takeover cancels queued and active Latest commands. Exercise a return interrupted by keyboard collapse, while preserving all original card assertions and the 10-second click deadline. Keep the shared geometry-only helper and runtime unchanged.

Paired bundled controls reproduce the scripted setup defect and verify native-input reader preservation. The permanent scenario fails with the old helper; all 9 ordinary bundled browser cases pass with the correction. Targeted formatting, lint, and independent P0-P2 review passed.
@steipete
steipete force-pushed the codex/ui-session-copy-startup-20260914 branch from f9b7625 to a1dc608 Compare September 14, 2026 11:18
@clawsweeper clawsweeper Bot added the proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. label Sep 14, 2026
@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Sep 14, 2026
@steipete steipete closed this Sep 14, 2026
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 docs Improvements or additions to documentation 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: S 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