You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maka.apache.org by "orangeCatDeveloper (via GitHub)" <gi...@apache.org> on 2026/09/05 07:23:24 UTC

[PR] fix(ui): keep write geometry through a late scroll echo [maka]

orangeCatDeveloper opened a new pull request, #4834:
URL: https://github.com/apache/maka/pull/4834

   ## Summary
   
   A pinned transcript could stop following its tail after content grew below the reader: the storybook smoke for `product-shell-official-appshell--tail-follows-growth-outside-turns` failed on CI with the view left 509px short of a 600px growth (run 33945967155).
   
   `createTranscriptScrollAuthority` tells its own write's scroll echo from the reader by offset, and when the echo arrived it also refreshed the remembered scroll geometry. If that echo landed after content had grown but before the `ResizeObserver` wrote the tail, the growth was absorbed into the baseline, and the next offset move had no growth left to explain it. The band classifier then read a partial move as the reader scrolling away, released the pin, and the observer's write never came. The echo branch now leaves the geometry as the last write recorded it; the observer refreshes it on its own write, and a move the growth explains stays classified as content.
   
   The unit test replays the CI numbers (3523/860 scroller, +600 growth, +91 offset move → 509 from the tail) and fails without the change. The browser-level trigger of that +91 move was not reproduced locally (0/40 story runs at normal speed and under 8× CPU throttling), so this fixes the defect the numbers point at rather than a repro.
   
   ## Verification
   
   ```
   packages/ui unit tests, before:
   ✖ growth a late echo already sees still explains the offset move after it
   ℹ pass 13
   ℹ fail 1
   
   packages/ui unit tests, after:
   ℹ pass 374
   ℹ fail 0
   ```
   
   Also ran: `biome check` on the two files (clean); storybook smoke (290 stories / 316 renders passed). Not run: desktop E2E.
   
   ## AI use
   
   Select exactly one:
   
   - [ ] No generative tool made a substantive contribution
   - [x] Generative tooling made a substantive contribution
   
   Tool(s) and scope: Claude Code — diagnosis from the CI trace numbers, the fix, the test, and this description, under the contributor's direction; the commit carries a `Generated-by: Claude Code` trailer.
   
   ## Checklist
   
   - [x] Tests cover the change and fail without it
   - [x] Lint, format, typecheck and the affected suites pass locally
   
   Does this PR entail a change in behavior?
   
   - [x] Yes — described under Summary above
   - [ ] No
   
   https://claude.ai/code/session_01RLZUUq5ri1bHzydQ7tw32b
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org


Re: [PR] fix(ui): keep write geometry through a late scroll echo [maka]

Posted by "orangeCatDeveloper (via GitHub)" <gi...@apache.org>.
orangeCatDeveloper commented on PR #4834:
URL: https://github.com/apache/maka/pull/4834#issuecomment-5550342846

   Superseded by #4831, which reproduces the defect at the browser level and identifies the source of the offset move (content-visibility estimates above the viewport resolving while content grows below). Closing to avoid two conflicting fixes to the same file.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org


Re: [PR] fix(ui): keep write geometry through a late scroll echo [maka]

Posted by "orangeCatDeveloper (via GitHub)" <gi...@apache.org>.
orangeCatDeveloper closed pull request #4834: fix(ui): keep write geometry through a late scroll echo
URL: https://github.com/apache/maka/pull/4834


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org