Repository navigation
fix(web): keep the thread still around composer trays - #1348
Merged
Merged
Conversation
Opening a composer tray (tasks, subagents, queue, goal details) grew the feed's end reserve frame by frame and pinned a reader at the end, so the whole thread moved up with the tray and snapped back when it closed. Tray disclosures now open over the thread: footer content marked `data-feed-overlay` does not count towards the reserve. The reserve also shrank only when it was more than twice the margin too large, so a composer that shrank (a sent multi-line draft, a strip that left) kept up to ~120 px of empty space above it. For a reader at the end it now shrinks with the footer, frame by frame, like growth; anyone else keeps it until back at the end. Fixes: #756 Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Problem
Cause
Both problems come from the feed's end reserve (
footer-reserve.ts), introduced in #756:Changes
footer-edge.ts: footer content markeddata-feed-overlayno longer counts towards the reserve. This covers every measurement: the first one, the ResizeObserver path and the settle path (reserveHeight).ComposerPanelBody(tasks, subagents, queue) and theGoalBardetails carry the marker, so these trays open over the thread.footer-reserve.ts: for a reader at the end, the reserve now shrinks with the footer frame by frame, the same way it grows. For a reader scrolled up, the reserve keeps the space until they follow the end again, as before.--duration-slow, close on--duration-medium,--ease-smooth-out).footer-reserve.tsandmotion.cssnow describe the new behaviour.Trade-off: an open tray now covers the bottom of the thread instead of pushing it up. The tray is at most 20dvh. This is how the composer's own fold already behaves.
Verification
Tested in Chrome on the dev-only
/dev/long-threadroute with a temporary footer: a realTasksPanelabove a resizable composer box, using the samefooterFitas the thread page. The temporary changes are not in this PR. Positions were traced every frame:oxlinton the edited files andsvelte-checkforapps/webboth pass.Copy audit (docs/copy.md §8): not applicable, no UI text changed.
Fixes: #756
🤖 Generated with Claude Code