Skip to content

Keep transcript streaming follow under reader control - #129

Merged
SSFSKIM merged 6 commits into
masterfrom
desk-transcript-free-scroll
Oct 23, 2026
Merged

SSFSKIM merged 6 commits into
masterfrom
desk-transcript-free-scroll

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Oct 23, 2026 •

Copy link
Copy Markdown
Owner

Summary

Fix the shared transcript snapping back to the bottom when its reader scrolls up during a long streaming reply. This is the scroll-only split from #128: no wake/reconnection, command-receipt or sminos production changes.

  • Upward wheel/touch intent releases following immediately. Scroll-capable keys observed globally—including PageUp/Home in editors or with body focus—arm a short witness; only upward movement that lands away from the measured end releases that list. A scrollbar drag retains its witness through the trailing native offset after pointerup/cancel. Streaming then leaves the reader in place until they return to the end or choose Jump to latest.
  • Browser clamps, replacement rows and remeasurement cannot release following without witnessed input. A clamp to the newly measured end preserves following even when a global key witness is armed, including before the smaller DOM sizer commits.
  • Nested tool/group scrollers retain wheel/touch input they consume or contain, including fitting groups. Keyboard ownership follows the browser's actual outer-list movement rather than predicting it from containment.
  • Virtual-core retains history/measurement anchoring; the app owns measured end-follow. Following uses an absolute committed-end offset, not a last-row target that keeps chasing measurements. Releasing follow sends no cancellation command and preserves deferred iOS anchor compensation.
  • The browser's actual end includes rendered overflow and fractional rounding. Remembering its observed end preserves a return-to-bottom whose native event arrives after streaming growth.

This changes MAWS desktop transcripts and the desk's session/depth transcripts, including the phone. Existing transcript-walk fixtures now include their reader input; their position, carry, delivery and paging assertions remain unchanged. Non-transcript scrollers were left alone.

Policy boundary: native find-in-page, focus or selection autoscroll without those inputs no longer pauses following by itself. Explicit app-owned row navigation still opts out.

Verification

A real isolated frozen-lockfile install; local heavy checks serialized through the load slot:

  • 176/176 shared desktop transcript checks across plain and React-compiled renderers, including 67 focused cases in each mode. Together with SplitCard below: 210/210, run in one final invocation.
  • 34/34 additional plain/compiled SplitCard checks, including the real transcript/composer position-and-draft round trip.
  • 9 browser cases passed, 1 expected skip: continuous 20ms chunks, native Chromium wheel and trusted CDP touch, WebKit touch-like gestures, frame-sampled holds, new streaming rows, Jump, fitting/overflowing groups, and DPR 2 with 110% zoom. Only native mobile-WebKit wheel is skipped because the driver does not support it.
  • The existing G1 send/receipt case and both reconnect cases passed with their assertions unchanged. The reconnect helper now waits for the native up-scroll observation and a frame before its inverse DOM write, instead of coalescing both commands inside one frame.
  • Four targeted native Electron transcript cases and the child-panel case at 280/380/640/maximized passed after rebuilding the harness. The phone session-view history/group case also passed in WebKit.
  • Both builds, focused ESLint over all touched TS/TSX, and git diff --check passed.
  • Bare final-head static,unit,probes,e2e:desk-web gate PASSED on 4644f3e30, without affected narrowing: static, probes, all four unit shards and desk-web e2e are green.

TDD failures pinned unwitnessed false detachment, scrollbar ownership/reversal and trailing offsets after pointerup, PageUp/Home from editors and body, WebKit Home through a contained group, containment, queued end-return ordering, measured shrink/regrowth and iOS compensation. The four reviewed native orders produced eight RED failures before their fix; eight further RED cases combined a consumed/out-of-list key with committed or pending-sizer shrink, through native-event and expiry reads. Non-moving keys, typing/Enter and expired witnesses retain following. Legacy fixtures missing reader input were observed failing before adding that input, not weakened to pass.

Earlier gates caught a clipped wheel-test target and then the real G1 false-detach regression; both were addressed. The G1 failure run passed static, probes and all unit shards, with 187 browser passes and one expected skip.

Remaining validation and accepted debt

  • A prior full local panel run was not green: 23 passed and four timeout/teardown failures, with load 92.9 reported on 10 cores. The final targeted child-panel case passed; the full new-head Mac set still needs its rerun. The old maximized failure had no trace zip, so its exact internal ordering remains unproven even though unwitnessed clamp detachment is now excluded by policy.
  • The review's bounded stale-end re-entry ambiguity is recorded unchanged in the debt tracker: measurement growth after input but before movement can resume following up to that growth short of the current end. It was retained to preserve the WebKit queued-return fix.
  • The live c12-prerun and agent-tools-live fixtures were aligned but not executed; no real-profile/settings or live-engine walk was performed.
  • Physical iPhone validation remains: natural UIKit flick momentum while text arrives, and home-screen-app lock/unlock or OS suspension/restoration without unexpected re-follow. Headless WebKit touch-like input cannot prove those behaviors.

This PR is not merged or deployed.

Sminos-Session: desk-sminos-orchestrator#b4948247 (doperpowers on macbook)

Sminos-Session: desk-sminos-orchestrator#b4948247 (doperpowers on macbook)
Respect contained nested scrollers even when their contents fit. Observe pending returns and browser clamps before measurements and anchoring writes change their geometry, preserving reader control through continuous growth. Cover fractional browser maxima, fitting groups, queued end-return events and desktop shrink/regrowth ordering.

Sminos-Session: desk-sminos-orchestrator#b4948247 (doperpowers on macbook)
Keep browser clamps, row replacements and remeasurement from releasing following. Wheel, touch, navigation keys and an owned scrollbar gesture give the reader control; explicit row navigation still opts out. Native find, focus or selection autoscroll alone no longer pauses following. Align transcript traversal fixtures with witnessed input without changing their assertions, and record the accepted bounded stale-end re-entry debt.

Sminos-Session: desk-sminos-orchestrator#b4948247 (doperpowers on macbook)
Keep the real transcript/composer round trip's position and draft assertions while supplying the reader's wheel intent before its upward offset.

Sminos-Session: desk-sminos-orchestrator#b4948247 (doperpowers on macbook)
Witness scroll-capable keys from window capture, including page keys in editors, and let actual list movement decide whether following releases. Preserve a short scrollbar tail after pointerup and read its final offset before retiring the witness. Cover the four native ordering regressions without changing wheel, touch or the accepted stale-end re-entry rule.

Sminos-Session: desk-sminos-orchestrator#b4948247 (doperpowers on macbook)
Release witnessed upward motion only when it lands away from the measured end, including before the smaller DOM sizer commits. Supply the current logical extent at each read boundary. Let the reconnect fixture observe its native upward scroll and a frame before issuing the inverse DOM command, preserving its existing assertions.

Sminos-Session: desk-sminos-orchestrator#b4948247 (doperpowers on macbook)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant