Skip to content

Keep scrolling to the end of the reasoning transcript in the thread settings driver - #11575

Merged
danielhanchen merged 2 commits into
mainfrom
fix/reasoning-transcript-driver-scrolls-to-the-end
Sep 22, 2026
Merged

danielhanchen merged 2 commits into
mainfrom
fix/reasoning-transcript-driver-scrolls-to-the-end

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Summary

Chat UI Tests (extra) fails in playwright_thread_scoped_settings.py, step 19, on every PR that has reported since #11522 merged (#11566, #11560, #11559, #11555, #11549, #11528):

AssertionError: Locator expected to contain text 'Step 0399.'
Actual value: Step 0367. ... Step 0386.

#11522 replaced reasoning pagination with a virtualized continuous transcript and rewrote this check. Its own Chat UI legs were cancelled, so the check had never run green.

The product is fine; the driver's single scroll is not enough. It sends one 100000 px wheel, then waits. With a virtualized list, that wheel stops at the bottom of the height estimated for passages not yet mounted. Measuring the passages it does mount grows the transcript underneath it. Reproduced locally against Studio built from main:

wheel scrollTop / max mounted window
1 8468 / 15637 Step 0206 to 0225
2 16042 / 16042 Step 0387 to 0399

On CI the 5 s of expect retries were waiting on a window that nothing was going to move. A reader keeps scrolling, and now the driver does too: it wheels until the last passage mounts, bounded at 12. The "scrolling mounted the entire trace" assertion after it is unchanged, so the bounded-window claim is still checked at the end.

Verification

  • Before the fix, locally: step 19 fails the same way as CI (window 0336 to 0356).
  • After: check_reasoning_transcript passes 3 of 3 against the same server.
  • Sabotage: capping the loop at one wheel fails it again.

Not changed: the estimate for a prose passage (max(1, lines - 2) * lineHeight in reasoning-transcript.tsx) undershoots a rendered paragraph by about half, which is why the first scroll lands mid-transcript. Readers see the scrollbar grow as they go; that is a UX call for the transcript, not something this test should paper over or pin.

…ettings driver

Chat UI Tests (extra) fails check_reasoning_transcript on every PR since #11522,
whose own Chat UI legs were cancelled before they ran. The driver sent one
100000 px wheel and waited for Step 0399. One wheel stops at the bottom of the
height estimated for passages not yet mounted, and measuring those it mounts
grows the transcript under it: locally the first wheel stopped at scrollTop
8468 of 15637 and the second reached the end, with the window still bounded.
CI's retries then waited on a window nothing was going to move.

Wheel until the last passage mounts, bounded at 12. The bounded-mount
assertion after it is unchanged.
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 22, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-22T18:19:28.501512Z f161cb7 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Chef's kiss.

Reviewed commit: f161cb7df6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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
danielhanchen merged commit e8d6ef9 into main Sep 22, 2026
30 of 35 checks passed
@danielhanchen
danielhanchen deleted the fix/reasoning-transcript-driver-scrolls-to-the-end branch September 22, 2026 19:10
shaojun pushed a commit to shaojun/unsloth that referenced this pull request Sep 29, 2026
…ettings driver (unslothai#11575)

* Keep scrolling to the end of the reasoning transcript in the thread settings driver

Chat UI Tests (extra) fails check_reasoning_transcript on every PR since unslothai#11522,
whose own Chat UI legs were cancelled before they ran. The driver sent one
100000 px wheel and waited for Step 0399. One wheel stops at the bottom of the
height estimated for passages not yet mounted, and measuring those it mounts
grows the transcript under it: locally the first wheel stopped at scrollTop
8468 of 15637 and the second reached the end, with the window still bounded.
CI's retries then waited on a window nothing was going to move.

Wheel until the last passage mounts, bounded at 12. The bounded-mount
assertion after it is unchanged.

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant