Repository navigation
fix: load earlier chat messages when upward input interrupts Latest - #199890
Conversation
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.
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex review: needs maintainer review before merge. What this changesThis 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.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Regression provenanceRegression provenance — suspected predecessor, not a causality claim: source commit 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 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe 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]
Technical reviewBest 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
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceSource 0, Tests +48. Total +48 across 2 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes: No label changes. Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 15, 2026, 9:12 PM ET / November 16, 2026, 02:12 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
…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.
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
Before: one upward gesture cancels Latest but leaves earlier history unloaded.
After: the same gesture loads the earlier page and preserves the current-message viewport.
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.