Skip to content

fix: Latest stops short while the final transcript row grows - #196036

Merged
steipete merged 2 commits into
mainfrom
solid2/w-fix-latest-settlement-1109
Nov 9, 2026
Merged

steipete merged 2 commits into
mainfrom
solid2/w-fix-latest-settlement-1109

Conversation

@steipete

@steipete steipete commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes Latest stopping short of the final answer when cold transcript rows and a growing tail change height after the initial end arrival.

User Impact

Latest continues following the measured end through late layout. Fresh reader input still releases the target, including PageUp or a cancelled scroll that causes no native movement.

Why This Change Was Made

Completing the smooth journey replays skipped row measurements. The old handoff replaced the moving end with a fixed offset, leaving later growth behind. Keep a dynamic end target during that handoff and explicitly cancel the remaining virtualizer target when the reader takes over. No new timer, state owner, dependency, or startup import is added.

Evidence

Proof Result
Firefox cold-history regression: 800 rows, then 105 px of final-row growth Main ends 106 px short; fix reaches the end
Reader takeover after an already-completed Latest command Without cancellation: unwanted 42 px movement; fix preserves position
Full end-follow browser file 31 tests pass in Firefox and Chromium
Production 200-tool flow: PageUp → visible Latest → Enter Chromium and Firefox: 200 ordered results; Latest within 8 px for three stable frames
UI typecheck, scoped lint/format, production Knip Passed
Production build and strict base comparison Passed; startup JS 91,695 → 91,695 B, CSS 38,669 → 38,669 B / 1 request; Chat JS 1,298,206 → 1,298,233 B (+27 B, within build variance); New Session unchanged
Independent review No actionable P0–P2 findings

The deterministic red/green reproduction is the native transcript-owner fixture. The full application flow is also exercised; the original rare full-app shortfall is not deterministic in every run. WebKit is unavailable on this host.

Synthetic fixture, before (106 px short):

Before: Latest leaves the growing final row below the end

After, Firefox (at the end):

After: Latest follows late final-row growth

The production host remains smaller after inlining its single-use row-sync helper. Its retained range extractor is bound to the range owner, avoiding a render closure that would retain disposed message payloads. Solid refactor census is unchanged: zero effects, render effects, untrack, DOM queries, direct listeners, flush, owner-capture calls, or cleanup hooks added. The tests add two distinct behavior regressions; no runtime test hook is introduced.

LOC: production host 790 → 787; browser test 723 → 769 (+46). Two lines allocate the new regression coverage.

Compared against 4b077d31b914aa62c6c10650abc62263ef3db839 using the same installed toolchain. No budget or cap changed.

CI repair: the first run (42636289621) caught two real retained-payload failures in chat-transcript-layout-retention.test.ts; the bound extractor fixes both, and all six retention cases pass. chat-details-desktop-body.browser.test.tsx > adds no handoff measurements or animations to cached and settled scrolling also failed that run; its focused local replay passes. That failure is not classified as inherited. Replacement-head CI provides the final broad proof.

The replacement run's sole E2E assertion was Platform attachment menu > reopens at its measured height instead of growing upward (two observed heights). It passed once locally on both the exact base and the head. A delayed-chunk probe on the exact base confirmed that the test's first data-phase=open can still show only “Loading…”; the overlay phase settles its animation, not lazy content measurement. After waiting for the real menu, the unchanged reopen-height assertion passed. One targeted CI job rerun passed for this diagnosed readiness flake; this is not classified as an inherited failure. Run 42639175851 is green on the replacement head, including all UI unit, Control UI E2E, browser-extension, and real-Gateway jobs.

@steipete steipete added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Nov 9, 2026
@clawsweeper

clawsweeper Bot commented Nov 9, 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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-09T14:38:25.989541Z e3d8496 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@steipete
steipete enabled auto-merge (squash) November 9, 2026 14:41
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 9, 2026
@steipete
steipete disabled auto-merge November 9, 2026 14:52
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 9, 2026
@clawsweeper

clawsweeper Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR keeps Latest following late transcript growth and releases its remaining scroll target when the reader takes control.

Example: Choose Latest in an 800-row transcript, then grow the final row by 105 pixels.

  • Before: The supplied Firefox reproduction reports stopping 106 pixels short.
  • After: The supplied reproduction reaches the measured end.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Focused, source-supported repair with useful browser regressions and fixture screenshots; directly inspectable production evidence is limited.
Proof confidence 🦐 gold shrimp (3/6) The maintainer-authored PR is outside the contributor proof gate; inspected screenshots show the native transcript-owner fixture, and the body reports Chromium and Firefox production Latest flows.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Latest can stop above the final answer after transcript rows change height.
Reason: This restores the existing Latest contract with a focused owner-level repair; maintainer-authored direction is already established.

Merge readiness

✅ Ready for maintainer review

Keep open: this PR addresses a concrete Latest scrolling defect still present on main, with no actionable patch findings; the exact-head CI failure remains unattributed.

Priority: P2
Reviewed head: 7b88b0aeb78044cd7961fcd7b21ced2184234c16

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: Full-app Latest behavior is reported in the PR, while the directly inspectable images exercise the native transcript fixture.
Agent review details

How this fits together

The per-session transcript host translates Latest commands, reader input, and row measurements into virtualizer targets and native scroll positions.

flowchart TD
  A[Latest command] --> C[Transcript session host]
  B[Reader input] --> C
  D[Row measurements] --> C
  C --> E[TanStack virtualizer]
  E --> F[Native transcript viewport]
Loading

Technical review

Best possible solution:

Retain the existing host’s dynamic end target through measurement settlement and cancel it immediately on reader takeover.

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

The current-main handoff and supplied native-browser regression establish the failure path; this read-only review ran no target code.

Is this the best way to solve the issue?

The patch repairs the existing owner, preserves reader cancellation and header compensation, and avoids additional state or scheduling machinery.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 1c996b16cd71.

Provenance checked

  • End-command completion changes intended behavior with a stated reason (34e6076: Preserve the resting end while completion replays skipped row measurements.)
  • Row synchronization and header compensation keeps the original intent (eed2f9b: Commit history-header geometry with row changes so prepends preserve reader position.)
  • Streaming geometry reconciliation keeps the original intent (3a2f166: Avoid end reconciliation for equal-height text commits while retaining geometry-driven updates.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 34e6076 adds ui/src/pages/chat/components/chat-transcript-virtualizer-host.ts:637 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 34e607682be5; files: ui/src/pages/chat/components/chat-transcript-virtualizer-host.ts)

PR surface

Source -3, Tests +46, Other +2. Total +45 across 3 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 21 24 -3
Tests 1 46 0 +46
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 2 0 +2
Total 3 69 24 +45

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Review metrics

Metric Value Why it matters
Production versus regression coverage Production +21/-24; browser tests +46 Production shrinks while two distinct observable failures gain coverage without a runtime test hook.

Labels

Label changes:

  • add P2: Latest can leave the final answer below the viewport, creating recoverable scrolling friction.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: Latest can leave the final answer below the viewport, creating recoverable scrolling friction.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rank-up moves

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

  • Attribute the exact-head attachment-menu failure using base or comparative CI evidence.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 9, 2026, 10:12 AM ET / 15:12 UTC.

@steipete
steipete merged commit 21c0b48 into main Nov 9, 2026
203 of 206 checks passed
@steipete
steipete deleted the solid2/w-fix-latest-settlement-1109 branch November 9, 2026 15:47
@steipete

steipete commented Nov 9, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

@steipete

steipete commented Nov 9, 2026

Copy link
Copy Markdown
Contributor Author

Follow-up qualification found a remaining Latest failure with the receipt-narrowing candidate. The 200-tool foreground run at candidate 2008b0306016184508711e578522d058fdc687f6, based on this landed fix (21c0b48bfd719f023b20337ca9a0c950b533dcf5), stopped in Firefox at round 6: Latest was activated through PageUp → visible Latest → Enter, but remained 53 px short (scrollTop=161847, scrollHeight=162782, clientHeight=882). The final answer was visible, all 200 tool results were ordered, and input was preserved.

This occurred once in six candidate Firefox observations, versus zero in five baseline and five identical-base control observations. It is not attributed to main. The matrix stopped at 52 total observations, retained the failure, and did not replace the sample. The receipt change is not being landed and no Chat budget was changed. This fix's deterministic cold-row growth and reader-cancellation regressions remain passing; this full-app interaction still needs attribution.

The intermittent reproduction uses the current committed harness on the candidate build:

node --import ./scripts/tsx.mjs scripts/bench-control-ui-engines.ts \
  --bundle-dir dist/control-ui --source-root . --engines firefox \
  --cpu-throttle 1 --steps event-load-0 --event-load-interactions-only \
  --viewport desktop --pairs 1 --output .artifacts/latest-reproduction

The screenshot below contains only synthetic fixture data.

Firefox Latest remains 53 px short in the synthetic 200-tool receipt candidate

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 10, 2026
…w#196036)

* fix: keep Latest anchored through late transcript growth

* fix: release transcript payloads after virtualizer disposal
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 ci:full Keep ordinary native-locale CI selection on the next PR run. P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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