Repository navigation
fix(threads): keep tool group rows attached while they collapse - #1327
Merged
Merged
Conversation
An open tool group's header had no bottom gap, while a closed one gets the fold's gap. Closing a group added that gap in the first frame, so the collapsing rows jumped down, detached from the header and only then shrank. The header now keeps the same gap in both states and the group's first row is drawn up into it. Exiting feed rows clip only their bottom edge, so the drawn-up part stays visible until the row is gone. Related: #491 Co-Authored-By: Claude Opus 5.5 <[email protected]>
nixuuu
enabled auto-merge (squash)
November 27, 2026 08:55
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Nov 28, 2026
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
Collapsing an expanded tool group ("Ran 1 command") glitched: in the first frame the rows under the header jumped down by the fold gap (12 px at the end of a fold, 4 px inside it), detached from the header as a separate block, and only then shrank. The content below jumped down too before collapsing.
Cause: an open group's header had no bottom gap (its rows hang right under it), a closed one gets the fold's gap. That gap appeared at once while the rows were still animating out.
Fix
feed.ts: an open group's header is marked like a closed one, so it keeps one gap in both states; the group's first row is markedlead.FeedRowView.svelte: theleadrow is drawn up into the header's gap (-mt-3/-mt-1,-mt-3in fork history). The open group looks the same as before; toggling no longer changes the header's height.motion.ts/VirtualRow.svelte: exiting feed rows clip only their bottom edge (expandoptionoverhang), so the drawn-up part stays visible until the row is gone.docs/timeline-folding.mdupdated.Verification (local)
Per-frame measurement on
/dev/long-threadin Chrome (with a temporary local harness, not committed):Also checked: a group inside a fold (4 px gap), a single-row group, opening (header does not move), and slowed-down frames (rows fold up under the header).
apps/webtypecheck, lint of the edited files and the feed tests (work-tool-groups,feed-prefix,work-fold-state,steer-folds,notice-folds,work-history-gaps) pass locally; the rest is left to CI.Not changed: mobile, which has its own disclosure.
Copy audit (docs/copy.md §8): no UI text changed.
Related: #491
🤖 Generated with Claude Code