Skip to content

fix: load earlier chat messages when upward input interrupts Latest - #199890

Merged
steipete merged 1 commit into
mainfrom
steipete/fix-history-input-scroll-owner-20261116
Nov 16, 2026
Merged

steipete merged 1 commit into
mainfrom
steipete/fix-history-input-scroll-owner-20261116

Conversation

@steipete

@steipete steipete commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes earlier messages remaining unavailable when an upward wheel interrupts a pending Latest scroll at the top of the conversation without moving the viewport.

User Impact

Users can load earlier messages with that single upward gesture while their current reading position stays in place.

Why This Change Was Made

History receives native input before the transcript cancels its pending scroll. The programmatic-scroll guard introduced in #171009 rejected genuine reader intent; a later cancellation without upward movement could never re-arm pagination. Admit that input, then use the existing transcript cancellation owner before arming history. Passive layout and initial-position protections remain. Production line count is unchanged.

This is a separately reproduced interaction defect found while investigating #198526. Its relationship to that PR's original unreproduced WebKit startup failure is unproven; it does not qualify an inherited-red exception for that PR.

Evidence

  • Exact main parent e970cf6: the real pane/transcript regression fails with zero older requests; the repair makes one request and projects 190 messages. The no-input control remains zero requests/30 messages.
  • Independent real-layout Chromium control is red 0/30 before and green 1/190 after; the same later native zero-offset scroll does not cure the base. Inspected synthetic before/after captures preserve the current-message viewport while the earlier-history boundary disappears.
  • Focused owner/autofill 16, input/pagination 9, real-browser 3 and bundled E2E 4 pass. E2E includes WebKit 390px history stability, mobile retry, keyboard focus, and hidden-page upward input.
  • Fresh isolated Codex review through P2: scoped-clean for the final two-file snapshot against e970cf6, unchanged in signed head 14959af. Required pnpm check:changed ran once: all selected typechecks, lint, caps and other guards passed, but the full-tree export scan fails on unchanged resolveRollbackWorkerInputs in update-command-database-rollback.test-support.ts. perf(update): replace the candidate canary with a runtime contract check #198268 removed its external consumer; fix(ci): stabilize hourly fixtures and retire unused exports #199851 owns the pending repair. This is a main regression, not ignored noise or a claimed green check. Exact-head ci:full run 43789208570 completed with all history-related cases passing. Its sole substantive red is the independently inherited Secrets receipt assertion described below; the authorized native inherited-failure route retains that failed conclusion.

Before: one upward gesture cancels Latest but leaves earlier history unloaded.

Before: earlier history remains unavailable above the retained current messages

After: the same gesture loads the earlier page and preserves the current-message viewport.

After: earlier history loads and the current-message viewport stays in place

Inherited CI failure

CI run 43789208570 tested merge 1eb95dd against main parent 9e85a1a. UI job 133043993823 fails only secrets-confirmed-receipts.e2e.test.ts / “does not call a fully acknowledged bulk save an unfinished import.” The unchanged original case fails identically on both exact merge and exact main parent. The successful receipt reads “Entries saved: 1”; the assertion still filters “Saved 1 entries.” #199464 / b858e90 changed canonical English and the main Secrets E2E but omitted this sibling. This is an attributed main regression with a separate test-owner repair, not a history defect or a flaky replay.

The exact-parent replay failed in 19.45 seconds (36.25 seconds CPU), and the merge replay failed in 21.20 seconds (38.57 seconds CPU). No deadline, assertion, or Secrets behavior changed in this PR, and CI was not rerun. The Secrets owner inputs are identical between the tested merge and main parent. Final-head Claw review 6905422180 reports zero findings/open items on 14959af. Landing uses the explicitly authorized inherited-failure exception with pinned native evidence; neither failed CI nor the separate local rollback-export check is represented as green.

Cancel pending transcript positioning before arming older-history reads from
accepted upward reader input. Preserve initial-settlement and passive layout
protections, and keep cancellation in the existing transcript owner.

Prove a wheel at native zero can request history without a subsequent scroll,
while the no-input control remains inert. This repairs the explicit-input
programmatic veto introduced by #171009; its relation to the unreproduced
WebKit startup failure in #198526 remains unproven.
@steipete steipete added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Nov 16, 2026
@clawsweeper

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

@steipete
steipete marked this pull request as ready for review November 16, 2026 01:56
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 16, 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-16T01:59:28.783971Z 14959af Draft marked ready
ℹ️ 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.

@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. 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: 🦐 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 16, 2026
@clawsweeper

clawsweeper Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR lets an upward gesture cancel pending Latest positioning before arming earlier-message loading.

Example: With 30 recent messages loaded, the viewport is at scrollTop 0 while a smooth Latest command remains pending.

  • Before: An upward wheel cancels positioning but leaves the 160 earlier messages unloaded.
  • After: The same gesture requests earlier history, yielding 190 messages while retaining the current-message viewport.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A useful, minimal repair with direct visual evidence and focused regression coverage; unresolved exact-head CI attribution limits validation confidence.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Inspected Chromium before/after captures demonstrate the changed chat-history boundary and preserved current-message viewport; the accompanying reproduction records one older request and 190 projected messages after the fix versus zero requests and 30 messages before, with the no-input control unchanged.
Patch quality 🦐 gold shrimp (3/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: An upward gesture can interrupt Latest without loading the earlier messages the reader requested.
Reason: The maintainer-authored direction restores documented upward-pagination behavior through the current owners without adding configuration, persistence or another execution path.

Regression provenance

Regression provenance — suspected predecessor, not a causality claim: source commit 3e44b5f5dded by Peter Steinberger; no PR verified.

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

✅ Ready for maintainer review

This PR fixes a concrete reader-input defect with a minimal change and no definite introduced bug found. The failing exact-head Secrets E2E check remains unattributed, so merge readiness is unresolved.

Priority: P2
Reviewed head: 14959af382058683e668b07e98f6cdd81a62c75d

Before merge

None.

Findings

None.

Agent review details

How this fits together

The Control UI chat pane translates reader input into history pagination, while the transcript owner controls positioning and cancellation; older messages arrive through the existing chat.history request path.

flowchart TD
  A[Upward reader input] --> B[Chat pane history admission]
  B --> C[Transcript cancellation owner]
  C --> D[History boundary observer]
  D --> E[Gateway history request]
  E --> F[Transcript message projection]
Loading

Technical review

Best possible solution:

Use the existing transcript cancellation operation before admitting explicit upward history input, retaining passive-layout and initial-position protections.

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

Source confirms the ordering failure: history rejects the wheel while Latest is pending, cancellation follows, and native zero produces no further upward movement to re-arm pagination; the PR records a matching parent-red/head-green reproduction.

Is this the best way to solve the issue?

The patch is the smallest complete repair using existing owners: cancel positioning before synchronizing history admission, with one positive regression and its no-input control added to the existing suite.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 443e9730695d.

Provenance checked

  • Explicit-input programmatic-scroll veto changes intended behavior with a stated reason (89aa274: Prevent unsolicited older-history loading during reload, hidden presentation and programmatic positioning.)
  • Maintenance-scroll regression suite keeps the original intent (ce332a0: Keep layout compensation and native end clamping from requesting history or taking reader ownership.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

PR surface

Source 0, Tests +48. Total +48 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 1 1 0
Tests 1 56 8 +48
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 57 9 +48

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.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: A specific interaction prevents gesture-driven history loading, while the visible Show earlier control provides an in-product alternative.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🐚 platinum hermit and patch quality is 🦐 gold shrimp.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot 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 15, 2026, 9:12 PM ET / November 16, 2026, 02:12 UTC.

@steipete
steipete merged commit ad09e38 into main Nov 16, 2026
174 of 181 checks passed
@steipete
steipete deleted the steipete/fix-history-input-scroll-owner-20261116 branch November 16, 2026 02:38
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 16, 2026
…penclaw#199890)

Cancel pending transcript positioning before arming older-history reads from
accepted upward reader input. Preserve initial-settlement and passive layout
protections, and keep cancellation in the existing transcript owner.

Prove a wheel at native zero can request history without a subsequent scroll,
while the no-input control remains inert. This repairs the explicit-input
programmatic veto introduced by openclaw#171009; its relation to the unreproduced
WebKit startup failure in openclaw#198526 remains unproven.
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. proof: sufficient ClawSweeper judged the real behavior proof convincing. 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