Repository navigation
fix(timeline): the upper row holds the room between two rows (opencode#66014) - #1160
Merged
Merged
Conversation
…e#66014) Rows a reader was looking at moved down when an older page of history landed above them: each row took the room over it from the row before it, so the first loaded row grew on top when its predecessor arrived. The row above now holds that room under what it shows, as official's timelineGaps does, and a first row with history still to load above takes none.
Hona
marked this pull request as ready for review
November 25, 2026 08:56
Hona
added a commit
that referenced
this pull request
Nov 25, 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.
Port of official
anomalyco/opencode#66014("keep the New timeline's rows still when older history loads").Fault: rows a reader is looking at move down when an older page of history lands above them. Each row took the room over it from the row before it, so the first loaded row grew on top when its predecessor arrived.
Change: the upper row of two holds the room between them, under what it shows, as official's
timelineGaps(packages/session-ui/src/timeline-next/spacing.ts) and the rule "Rows that load above the reader" (packages/app/AGENTS.md).flowchart LR subgraph before A1["reply"] --- B1["room (top of prompt)<br/>prompt"] end subgraph after A2["reply<br/>room (bottom of reply)"] --- B2["prompt"] endrhythm::space_atstill decides the room (small, medium, large, less what a row's text leaves inside its box). It now writes it to the row above (RowSpec::under), in whole points, and the lower row keeps none.topin place oftightandreply: 4 in a run, 8 under its pictures or at the session's start, else 16. The row above holds it in every case but the session's start.Projection::new): the row that lands above it brings the room.Run (headless, 1280x800, scale 1, on this PR's CI build and on
dev's): a session of 123 messages, 80 loaded; the reader wheels to the top of the loaded history; the older page is held 3 s, then lands.dev: page helddev: page landeddevevery row under the first one moves down 6 px when the page lands. Here no row moves.Second fault, same picture: a prompt that was first of the newest page stayed 8 lower than the others after the page above it landed. Its span was projected as the session's start before the history state was known, and never again. The first span now projects again when "older messages remain" changes, and a span that stood first and no longer does gets a new stamp.
Differences from official
Stuck group headers (official's second part): an open tool group's header sticks here too. Collapsing from it holds the pressed header (
Tx::keep_on_screen) and does not measure a stuck distance, so official's 6 px correction has no counterpart. A group's row has no room over its header after this change.