Repository navigation
Studio chat: open a long conversation at its end while the empty composer eases - #18493
Merged
Merged
Conversation
…h the thread from its end
Codex Review Summary: 🔄 RunningThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
danielhanchen
pushed a commit
to danielhanchen/unsloth-staging-2
that referenced
this pull request
Nov 19, 2026
Member
Author
|
@codex review |
|
Codex Review: Didn't find any major issues. Can't wait for the next one! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
danielhanchen
deleted the
ci/thread-open-pinned-after-composer-shrink
branch
November 19, 2026 15:54
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.
Summary
The long-chat gate in Frontend CI (
tests/studio/playwright_thread_window.py, run by "Frontend build + bundle sanity") fails intermittently onmain:It failed on the staging
upstream-mainFrontend CI run and 2 of 3 local runs onmain. A user sees the same thing: opening a long conversation can land a few pixels above its last message, with the "scroll to bottom" arrow showing.Root cause
Bisected to #18447 ("keep the composer one row tall inside a conversation"). The check passed 3 of 3 on its parent and failed on it.
#18447 is right to give the new-chat screen a two-row floor and a conversation a one-row floor. The side effect is in
Thread's composer-height effect. Any growth of the composer callsdetachFromBottom()("as if the user scrolled up"), which is meant for a draft that grows while typing. The editor eases its height over 280ms, so when a conversation opens while the empty composer is still easing up to the new-chat floor, a late growth frame (120px to 126px in the traces) lands after the thread is seeded. That detaches the freshly opened conversation, and the spacer shrink that follows is deferred because the thread is no longer at its end. The thread rests 4 to 9px above its last message.Changes
components/assistant-ui/thread.tsx: composer growth detaches the thread only while the composer holds a draft (text or attachments) and no run is active. An empty composer only grows as its row floor eases, which is not the user reading back, so it no longer strands a conversation above its end. Growth from typing a multi-line draft detaches exactly as before.No change to the composer's sizes or animation, or to #18447's floors.
Testing
mainplaywright_thread_window.pynpm run typecheck: passes.mainand passes here.Screenshot
The same 400-message thread opened in the long-chat test page (
smoke-thread-weight.html, what CI drives). Before, onmain, it opened 4px above its end and shows the scroll-to-bottom arrow; after, it opens at its end.