Skip to content

Keep a table's screen-reader labels inside the box that scrolls it - #2849

Merged
davidmckayv merged 1 commit into
mainfrom
fix/trailing-space-after-reply
Dec 3, 2026
Merged

davidmckayv merged 1 commit into
mainfrom
fix/trailing-space-after-reply

Conversation

@davidmckayv

@davidmckayv davidmckayv commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

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-only span, 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's overflow-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-only labels 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

  • The table's scroll box is 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.

  • A conversation ends at its newest message. A conversation with a long table of Google Docs, Sheets or Slides links in an earlier answer no longer scrolls on into screens of empty space below its newest message.

Tests

app/tests/transcript-table-end.test.tsx opens 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:

  • the conversation scrolls no further than its newest row and the column's padding, and the newest turn is in view at the end;
  • the table still scrolls in its own 300px box;
  • all 80 links still say ", Slides" or ", Doc".

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.

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
davidmckayv added this pull request to the merge queue Dec 3, 2026
Merged via the queue into main with commit 6bd98fd Dec 3, 2026
74 of 78 checks passed
@davidmckayv
davidmckayv deleted the fix/trailing-space-after-reply branch December 3, 2026 06:53
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