Repository navigation
Keep the Mac transcript laid out for its pane's width, however the width changed - #1468
Merged
Merged
Conversation
…dth changed Opening a chat could show its messages shifted to the left, laid out for a narrower pane than the one on screen, until something else changed the width (opening or closing the inspector did). The chat had last been laid out at another width, for example half width in a split, and the resize on return landed while its rows were being re-prepared. That layout was skipped and nothing asked for it again. The transcript no longer depends on reacting to each width change: - Rows sit at the leading edge of one column, and the document view keeps that column centered in its own width. No row stores a horizontal position that can go stale. - Each layout pass compares the width the rows are laid out for with the pane's width and reflows on a mismatch, also while the scroll position is paused for stale rows. - That pause now guards the scroll position only. When it ends with a layout still owed, the layout is requested from one place, which replaces the hand-written reminders in configure. This also re-pins a transcript to the bottom when its viewport got shorter while its rows were re-prepared. Co-Authored-By: Claude Fable 5.2 <[email protected]>
…n resize While a window grew taller with a chat pinned to the bottom, the whole transcript could be drawn displaced for a moment and the composer could vanish, then both snapped back. Two things fed that: - The fade for the jump-to-bottom and collapse-steps buttons was applied to the whole chat surface, so a change of "at bottom" also animated the transcript and composer while they were being resized. It now covers only those buttons. - The transcript could report that it had left the bottom for a viewport size it had not laid out yet. It now reports its bottom state only for a size it has laid out; the layout pass that follows reports the settled state. The displaced frames did not reproduce in this worktree before or after (nine window-grow passes on main, six with this change), so this is not confirmed as the full fix for that glitch. Co-Authored-By: Claude Fable 5.2 <[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.
What was wrong
Opening a chat could show its messages shifted to the left, laid out for a narrower pane than the one on screen, until something else changed the width (opening or closing the inspector did). The chat had last been laid out at another width, for example half width in a split, and the resize on return landed while its rows were being re-prepared. That layout was skipped and nothing asked for it again. An earlier fix (851-2838) covered one of the two places this could be skipped; this was the other.
What changes
The Mac transcript no longer depends on reacting to each width change.
configure.The at-bottom animation and report stay away from the transcript's own resize (second commit).
Verification
Not confirmed
🤖 Generated with Claude Code