Skip to content

fix(ui): preserve follow intent across content growth - #166258

Merged
RomneyDa merged 1 commit into
release/2026.9.9from
fix/release-2026.9.9-content-follow
Oct 6, 2026
Merged

RomneyDa merged 1 commit into
release/2026.9.9from
fix/release-2026.9.9-content-follow

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Oct 6, 2026 •

Copy link
Copy Markdown
Member

Problem

Stable release validation repeatedly leaves an unlocked chat follower behind by exactly the post-commit row growth (278 px or 1124 px) in chat-collaborator-scroll.real-gateway.e2e.test.ts. The Gateway/browser diagnostics are healthy and remote reading/tail behavior passes.

applyChatScroll measures after rows grow, then re-derives follow permission from the new distance. A sufficiently large commit therefore flips an unlocked follower outside the near-bottom threshold before the queued scroll runs.

Solution

Treat chatFollowLocked as the authoritative reader-intent bit for content changes. Unlocked viewers continue following regardless of post-growth geometry; locked readers and non-content geometry handling retain their existing behavior.

Add an owner-boundary regression that grows the committed transcript by 1124 px. It failed on the pre-fix code (scrollTop stayed 1600 instead of 3124) and passes with the fix.

Evidence

  • Release blocker: FRV 37511622982
  • Failing exact-candidate job: checks-ui-e2e-real-gateway (1/2)
  • pnpm test ui/src/pages/chat/scroll.test.ts --maxWorkers=1: 35 passed, 2.69 s wall
  • node scripts/run-vitest.mjs run ui/src/pages/chat/scroll.test.ts ui/src/pages/chat/chat-input-scroll-ownership.test.ts --maxWorkers=1: 39 passed
  • pnpm tsgo:ui: passed
  • scoped oxlint and formatting: passed
  • AutoReview (P0/P1): clean
  • Exact 14-file real-Gateway shard after the fix: the collaborator-scroll test passed in the same loaded position that failed release CI; 13/14 files passed overall. The untouched model-catalog partial-refresh test failed once at a final enabled-state assertion, then passed its focused replay (1/1); it also passed in the sealed candidate CI.

check-changed reaches only inherited line-cap ratchet failures relative to current origin/main; none are in this PR's files.

PR security-fast is red only because npm published GHSA-6qxp-vccf-f47h for the unchanged MCP SDK versions already present in the exact base. The release candidate's sealed security-fast completed successfully before the advisory appeared; this UI-only PR does not touch dependencies.

Test cost: 2.69 s local wall for the changed test file; CI seconds will be recorded from the first run.

@clawsweeper

clawsweeper Bot commented Oct 6, 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.

@RomneyDa

RomneyDa commented Oct 6, 2026

Copy link
Copy Markdown
Member Author

@clawsweeper review

@clawsweeper

clawsweeper Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper

clawsweeper Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 6, 2026, 3:16 PM ET / 19:16 UTC.

ClawSweeper review

What this changes

The PR preserves automatic chat following across large transcript updates while retaining reader scroll locks, and adds a regression for 1124 pixels of content growth.

Merge readiness

✅ Ready for maintainer review

This remains a useful, focused fix: current main retains the failing geometry check, and no introduced correctness defect was found. Member-authored work also remains protected from automatic closure.

Priority: P2
Reviewed head: eaf08c24f9b4b3f8d94b9485e5fe8bc60fdfd5af

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused owner-level repair with meaningful regression coverage and no supported blocking finding.
Proof confidence 🌊 off-meta tidepool Not applicable: The MEMBER-authored behavior-only repair is exempt from external-contributor runtime proof. The changed scroll owner has a reported failing-before/passing-after regression; linked real-Gateway failures establish the scenario, not an after-fix browser result. No stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The MEMBER-authored behavior-only repair is exempt from external-contributor runtime proof. The changed scroll owner has a reported failing-before/passing-after regression; linked real-Gateway failures establish the scenario, not an after-fix browser result. No stored-data contract changes.
Evidence reviewed 6 items Introduced change: The pinned introduction adds contentChanged to the existing unlocked-follow condition. It preserves manual-command precedence, initial-load behavior, and the transcript owner's ability to decline automatic scrolling.
Current main still needs the repair: Fetched main still requires resize, cached near-bottom state, or distance below 450 pixels to follow. An unlocked viewer with stale near-bottom state and 1124 pixels of committed growth therefore misses automatic following. No shipped fix was established.
Production caller: The chat state controller detects message and stream changes before rendering, then passes contentChanged into committed scrolling. The existing transcript owner independently rejects automatic scrolling during restoration or when following is disabled.
Findings None None.
Security None None.

How this fits together

The Control UI chat scroll owner receives committed transcript updates and reader gestures. It decides whether the transcript follows new content or preserves the reader’s position.

flowchart TD
  A[Transcript update] --> C[Chat scroll owner]
  B[Reader gesture] --> D[Follow lock]
  D --> C
  C --> E{Following enabled?}
  E -->|Yes| F[Scroll transcript to end]
  E -->|No| G[Preserve reader position]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +3, Tests +20. Total +23 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 1 4 1 +3
Tests 1 20 0 +20
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 24 1 +23

Review metrics

None.

Technical review

Best possible solution:

Keep reader intent authoritative across transcript commits, with restoration and explicit reader commands retaining viewport ownership.

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

Yes, from source: an unlocked viewer with false cached near-bottom state and growth exceeding 450 pixels fails the current-main follow condition. The added regression targets that state; no tests were run during this review.

Is this the best way to solve the issue?

Yes. Extending the existing scroll decision preserves its established reader lock and transcript delegation without adding another owner or configuration surface.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 76beb5685887.

Labels

Label changes:

  • add P2: This repairs a bounded chat-following defect that leaves viewers behind after large transcript updates.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.

Label justifications:

  • P2: This repairs a bounded chat-following defect that leaves viewers behind after large transcript updates.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.

Evidence

What I checked:

  • Introduced change: The pinned introduction adds contentChanged to the existing unlocked-follow condition. It preserves manual-command precedence, initial-load behavior, and the transcript owner's ability to decline automatic scrolling. (ui/src/pages/chat/scroll.ts:162, eaf08c24f9b4)
  • Current main still needs the repair: Fetched main still requires resize, cached near-bottom state, or distance below 450 pixels to follow. An unlocked viewer with stale near-bottom state and 1124 pixels of committed growth therefore misses automatic following. No shipped fix was established. (ui/src/pages/chat/scroll.ts:149, 76beb5685887)
  • Production caller: The chat state controller detects message and stream changes before rendering, then passes contentChanged into committed scrolling. The existing transcript owner independently rejects automatic scrolling during restoration or when following is disabled. (ui/src/pages/chat/chat-state-controller.ts:514, eaf08c24f9b4)
  • Focused regression and sibling coverage: The added regression exercises the scroll owner with an unlocked viewer, false cached near-bottom state, and 1124 pixels of growth. Existing cases protect locked readers, resize, restoration rejection, takeover, and pending manual commands. The body reports a pre-fix failure and 35 passing tests in 2.69 seconds; these results were not independently executed during this read-only review. (ui/src/pages/chat/scroll.test.ts:378, eaf08c24f9b4)
  • Related feature history: Available history and the inspected patch connect Peter Steinberger to the recent reader-intent cleanup referenced by fix(ui): a chat pinned to the bottom stops following turns sent from elsewhere #165484. Broader blame and older patch inspection encountered unavailable historical blobs, so no original feature-introduction claim is made. (ui/src/pages/chat/scroll.ts:292, cd060c5fde74)
  • Proof scope and security boundary: The supplied author association is MEMBER. The body supplies owner-boundary regression results and links failing real-Gateway release validation, without claiming an after-fix browser run. This behavior-only patch changes no appearance, stored-data format, dependencies, authorization, or execution permissions; the external-contributor proof gate does not apply. (ui/src/pages/chat/scroll.ts:158, eaf08c24f9b4)

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; 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.

@RomneyDa
RomneyDa merged commit ffcdd4d into release/2026.9.9 Oct 6, 2026
62 of 91 checks passed
@RomneyDa
RomneyDa deleted the fix/release-2026.9.9-content-follow branch October 6, 2026 19:18
NerQuiLes pushed a commit to Xtampa-AI/openclaw that referenced this pull request Oct 11, 2026
Audit all 253 September-only commits against da0cbcc. Port only
applicable fixes and final companions, preserving October owners and
shipped upgrade contracts. Exclude September-specific waivers, schema
rollback, dependency changes, and credential-absence pass conditions.

Adapt retained ACP archive receipts without reopening retired custody;
retain SDK1.30.1 issuer fencing and explicit re-registration; exclude
standalone worker copies from beta.2 updater compatibility bridges.
Report settled Doctor release failures before the no-config early return.

Sources below are whole backports or scoped repair selections:

fix(discord): keep health inspection from blocking Gateway connections (openclaw#166736)
Source-commit: dc26366

fix: avoid foreign-listener race in Gateway acquisition proof (openclaw#166883)
Source-commit: bd0b97d

fix(ci): admit workspace package tests in Windows replay (openclaw#166895)
Source-commit: 9bc88a6

fix(release): restore beta.2 updater inventory and Podman control (openclaw#166872)
Source-commit: e203c64

fix(copilot): plugin tool calls fail from the second turn of a session (openclaw#164598)
Source-commit: c6e5ae8

fix(test): await WhatsApp inbound drain (openclaw#165842)
Source-commit: 05170cd

fix(qa-lab): keep SUT CLI in isolated launcher
Source-commit: 6681bcd

test(qa-lab): assert resolved companion CLI cwd
Source-commit: a60b458

fix(release): accept candidate-owned child evidence (openclaw#165357)
Source-commit: 500c95a

fix(acp): migrate metadata from retained sessions
Source-commit: 16398dc

fix(release): isolate first-hop service containment (openclaw#164898)
Source-commit: 85124fe

fix(release): isolate upgrade survivor scenarios (openclaw#165007)
Source-commit: aad828f

test(release): expect isolated survivor scenarios (openclaw#165009)
Source-commit: 02e7f91

fix(release): split restart auth validation (openclaw#165048)
Source-commit: 6160d9f

test: serialize PowerShell completion process suites (openclaw#166229)
Source-commit: 320e52b

fix(update): settle only this Doctor's commands in managed custody (openclaw#164868)
Source-commit: bdb44e2

fix(claude-cli): replies hang until the run times out when a background agent runs Bash (openclaw#165596)
Source-commit: 889611b

fix(whatsapp): synchronize shutdown test with durable admission (openclaw#166531)
Source-commit: 1f576e4

fix: prevent heartbeat live replies from abbreviating markers (openclaw#166777)
Source-commit: c4ed37e

fix(ci): keep full release validation within measured budgets (openclaw#166774)
Source-commit: 471f950

improve(ci): reuse Watch cache and expose shared scan build progress (openclaw#166498)
Source-commit: 66d898f

fix(e2e): normalize registry helper image modes (openclaw#163188)
Source-commit: 1a09bec

fix: MiniMax live validation misses Code Mode file reads (openclaw#163619)
Source-commit: fc23bc8

fix(test): read canonical ACP upgrade metadata
Source-commit: 46c8dd2

fix(qa): remove unavailable Telegram emoji fixture (openclaw#164956)
Source-commit: e785c56

fix(release): reconcile full validation regressions (openclaw#166200)
Source-commit: a3e349e

fix(release): unblock stable validation evidence (openclaw#166315)
Source-commit: 5ac0f82

fix(release): unblock 2026.9.9 full qualification (openclaw#166341)
Source-commit: 8aa6d7c

test(irc): await owned monitor signals (openclaw#163180)
Source-commit: 429ea8c

fix(release): unblock 2026.9.9 full validation (round 4) (openclaw#166485)
Source-commit: ccb390b

fix(release): repair Doctor teardown and FRV evidence recovery
Source-commit: 5d7fa8e

fix(release): bound FRV job reads and normalize ghost evidence
Source-commit: 1854d41

test(release): align priority fixture with bounded job pages
Source-commit: 4fd4fcc

fix(test): keep MCP validation connected after automatic pairing approval (openclaw#166849)
Source-commit: 0979efd

fix(release): address 2026.9.9 validation failures and retain diagnostics (openclaw#166962)
Source-commit: a024875

fix(release): repair fleet and CLI validation fixtures (openclaw#166977)
Source-commit: b899f42

fix: keep 2026.9.9 upgrades on state schema 19 (openclaw#166959)
Source-commit: bcfc888

fix(ui): keep passive chat viewers following incoming turns
Source-commit: 6d9689d

fix(doctor): commit transcript archive migration progress per batch and honor interruption (openclaw#165837)
Source-commit: 3a085ea

fix(doctor): restore release repair settlement
Source-commit: fab3a66

fix(release): reconcile FRV backports
Source-commit: 0c01cc6

fix(ui): refresh end geometry during interaction (openclaw#166239)
Source-commit: 5b71763

fix(ui): preserve follow intent across content growth (openclaw#166258)
Source-commit: ffcdd4d

fix(ui): gate content follow on height changes (openclaw#166301)
Source-commit: 4964263

fix(release): preserve gateway fixture close callback (openclaw#166348)
Source-commit: 64ad20a

test(ui): await collaborator smooth follow (openclaw#166285)
Source-commit: 90abf6a

Co-authored-by: Eric Curtin <[email protected]>
Co-authored-by: Ayaan Zaidi <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
Co-authored-by: Abdel Gomez-Perez <[email protected]>
Co-authored-by: Patrick Erichsen <[email protected]>
Co-authored-by: Vincent Koc <[email protected]>
tideclaw-bot pushed a commit that referenced this pull request Nov 30, 2026
(cherry picked from commit 4964263)

Follow-up audit: Neither release-only PR #166258 nor #166301 appears on pinned main. Pair the selected sources and preserve the baseline scroll owner restoration contract.

Release adaptation: Backport the release-only companion and regression to the existing viewport-owned frame/commit path.

Co-authored-by: RomneyDa <[email protected]>
tideclaw-bot pushed a commit that referenced this pull request Nov 30, 2026
(cherry picked from commit ffcdd4d)

Follow-up audit: Neither release-only PR #166258 nor #166301 appears on pinned main. Pair the selected sources and preserve the baseline scroll owner restoration contract.

Release adaptation: Backport the release-only companion and regression to the existing viewport-owned frame/commit path; exercise the stable height gate outside the separate near-bottom threshold.

Co-authored-by: RomneyDa <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant