Repository navigation
Keep a table's screen-reader labels inside the box that scrolls it - #2849
Merged
Merged
Conversation
A conversation with a long table in an earlier answer scrolled on past its newest turn through screens of empty space, every time it was opened (Atai's daily briefing on OpenBot Desktop). A long table scrolls in a 300px box of its own, and a Docs, Sheets or Slides link carries its type for a screen reader in an absolutely positioned sr-only span. The box was not positioned, so the spans in the rows it cut off belonged to the message bubble, outside the box and the bubble's overflow-hidden, and the conversation scrolled to reach the last of them: the table's whole height below its end. The table's scroller, and the fullscreen table's, are now relative. Nothing changes visually. A browser test opens a routine conversation with long tables of document links, in Chromium and WebKit, light and dark, at 1440 and 390, and checks it ends at its newest turn, the table still scrolls in its own box, and every link still says its type. It failed by 1,809px and 4,929px before.
davidmckayv
requested review from
MikeRyanDev,
dustywusty,
guidovizoso,
mxmzb,
samjulien and
tylerslaton
as code owners
December 3, 2026 06:12
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.
A conversation with a long table in an earlier answer scrolled on past its newest turn through screens of empty space, every time it was opened. Atai's daily briefing showed it on OpenBot Desktop: under the newest "Routine ran." and its folded work, the empty space ran for about the table's full height.
Why
A long table scrolls inside a box of its own, cut to 300px. A Google Docs, Sheets or Slides link carries its type for a screen reader in a
sr-onlyspan, which is positioned absolutely. The table's box wasn't positioned, so those spans belonged to the message bubble instead. That put them outside the table's box and outside the bubble'soverflow-hidden, where each one sat a pixel wide at the place its row would be if the table were drawn whole. Nothing showed, but the conversation scrolled to reach the last of them.It was confirmed with Atai's own conversation, rebuilt read-only from its stored runs and drawn by the real transcript. The end of the conversation was a blank view, with 2,600px of scroll past the last row, and the extra extent traced to the
sr-onlylabels in his briefing tables. With this change the conversation ends at its newest turn.It is not the scroller's room under a sent message. A routine firing never gets that room, and the room is gone when a conversation is opened again. This happened on every open.
What changed
relative, so everything inside a table stays in the box that scrolls it. The fullscreen table's scroller gets the same. Nothing changes visually: the table, its controls and the links look as before, and every link still tells a screen reader its type.Changelog
Conversations.
Tests
app/tests/transcript-table-end.test.tsxopens a routine conversation whose earlier answers have 40-row tables of Slides and Docs links, with its newest firing ending on a folded work row, in Chromium and WebKit, light and dark, at 1440 and 390 wide. It checks three things:Before the fix it failed by 1,809px at 1440 and 4,929px at 390 in both engines. Added to the WebKit job's list, which runs Chromium and WebKit.
Screenshots of the end of the conversation, before and after, were taken from the test in both engines: before is a blank view, after ends at "Routine ran." and its work row.