Repository navigation
fix(timeline): the row above a divider holds the room over its words (opencode#66014) - #1178
Merged
Merged
Conversation
…(opencode#66014) A divider (a switched agent or model, a move, a compaction, Interrupted) took the room over its line from the row before it, so a divider that was the first loaded row changed when an older page landed above it and moved the rows under it. The row above now holds that room, as it holds every other room between two rows.
Hona
marked this pull request as ready for review
November 25, 2026 09:49
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.
The remainder of official
anomalyco/opencode#66014, after #1160: dividers.Fault: a divider (a switched agent or model, a moved session, a compaction, Interrupted) took the room over its line from the row before it: 16 under a reply, 6 under another divider, none under a prompt. A divider that was the first loaded row therefore changed when an older page landed above it, and the rows under it moved.
Official: a divider is a row like any other.
rowBlockgives it a block (packages/session-ui/src/timeline-next/spacing.ts:103-107), andtimelineGapsgives the gap over it to the row before (spacing.ts:46-47:gaps.set(TimelineRow.key(rows[index - 1]!), …)).Change: the row above a divider holds the room over the divider's words, with the room it already holds for the row below.
dividers::stack/stack_attell each divider who holds that room and tell the row above what the divider stands beside (RowSpec::divider); the row's wrapper adds it to its bottom room.Waiting: no room over its words until the row above arrives with it.Run (headless, 1280x800, scale 1): a session whose first loaded row is a divider (the agent switched back) with another divider (the agent switched) right above it in the older page; the reader is at the top of the loaded history; the older page is held 3 s, then lands.
dev: page helddev: page landeddevevery row under the divider moves up 10 px when the page lands. Here no row moves.Not from official: the open compaction summary's stuck header is this app's own; official's does not stick.