Repository navigation
rc-gateway: the to-do strip takes the bottom of the conversation window - #58
Merged
Merged
Conversation
The strip was position: sticky, bottom: 8px, so it floated over transcript pixels to stay reachable: measured at a 720px window with three rows open it lay over 78px of the newest output the reader was trying to read. The pin was not the fault. The transcript box was capped at 75vh while the chrome above it measured 389px, which is 129vh together, so the box could not fit the window at any height below 1556px and the composer sat at 1015 of a 720px window, below the fold at load. Bounding the column lets the strip take its own row between the transcript and the composer instead of borrowing one, and brings the composer above the fold with it. Bounding the column makes the box's height depend on its siblings, and three of them fill in after the render-all fallback has written its scroll position: measured over a 301-item replay at 720px the box went 351 -> 180 as the composer's contents arrived and 180 -> 106 as #session-footer and #convo-switch above it filled in, leaving the reader 74px short of the newest message. The virtualized path does not show this because virtual-core re-anchors on every append. So the fallback now re-pins on a box resize, gated arithmetically: a pure height change moves the gap by exactly the height lost, so a gap larger than the loss is a reader who scrolled up to read and is left alone. Verified: full transcript verifier 47 passed, 0 failed, with V9 and V9b, the two touch scenarios that guard transcript-view.js, green. Mutating the re-pin out while keeping the layout reads 1 passed, 2 failed with P7 and P11 at gap=74 and P31 still green, which separates the two guards. Package suite 2836 passed, 2 skipped. Closes InfiniteInsight/Qwen-Code-Remote#74
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
The to-do strip used to be
position: sticky; bottom: 8px, so it floated over transcript pixels in order to stay reachable. Measured at a 720px window with three rows open it lay over 78px of the newest output the reader was trying to read. The pin was not the fault:#transcriptwas capped at75vhwhile the chrome above it measured 389px, which is 129vh together, so the box could not fit the window at any height below 1556px and the composer sat at 1015 of a 720px window, below the fold at load.Bounding the conversation column lets the strip take its own row between the transcript and the composer instead of borrowing one, and it brings the composer above the fold with it.
The coupling this exposes, and the fix
A flex-bounded box takes its height from what its siblings leave. Three siblings fill in after the render-all fallback has written its scroll position, measured over a 301-item replay at 720px:
#composercontents 0 to 156px#session-footer0 to 33px,#convo-switch0 to 28pxscrollHeightandscrollTopare frozen across the break, so the content did not grow and the box did. The reader was left 74px short of the newest message.#statusholds a constant 19px and is not one of the movers.The virtualized path does not show this because virtual-core re-anchors on every append, so only the degraded path needed a change: the fallback now re-pins on a box resize, gated arithmetically rather than on a threshold. A pure height change moves the gap by exactly the height lost, so a gap larger than the loss is a reader who had scrolled up to read, and they are left alone.
Verification
47 passed, 0 failed.V9andV9b, the two touch scenarios that guardtranscript-view.js, both green.1 passed, 2 failed,P7andP11atgap=74, withP31still green. That separates the two guards, soP31guards the layout andP7/P11guard the re-pin.2836 passed, 2 skipped(229 files, 1 skipped).P31at both heights:720px: transcript [410,470], strip [478,556], gap 8px; 1080px: transcript [410,790], strip [798,876], gap 8px.Not in this change
The status-line route that was originally picked for this issue was tested and is false. Making
#statusa reserved one-line slot leftP7andP11reading exactly the same 42 and 74, and reserving the three real movers measured worse than doing nothing,gap=85against the control'sgap=74, because the reserved numbers are guesses the real content overran. Both were reverted rather than shipped.Closes InfiniteInsight/Qwen-Code-Remote#74