Skip to content

fix(site/src/pages/AIBridgePage/SessionThreadsPage): quote verbatim prompt and thinking text - #32332

Open
aqandrew wants to merge 2 commits into
mainfrom
a11y/semantic-list-2
Open

aqandrew wants to merge 2 commits into
mainfrom
a11y/semantic-list-2

Conversation

@aqandrew

Copy link
Copy Markdown
Collaborator

The AI Gateway session timeline shows prompt and model thinking text exactly as written. Deque's manual Lists check (1.3.1.f) flagged it because the text contains lines like 1. .... This PR keeps the text verbatim and marks it as quoted content, without turning it into list markup: ExpandableText now renders a <blockquote> in place of a <p>. Screen readers announce the text as a block quote right after its visible "Prompt" or "Thinking..." label.

Closes DEQ-107

Ticket UI surface
DEQ-107 AI Gateway session timeline, the prompt and thinking blocks (/ai-gateway/sessions/:id)

No screenshots: the change is DOM-only. Full-page Storybook screenshots of OneThread, SecondThreadLoopOpen and SearchExpandsPromptOnMatch are byte-identical before and after, and axe reports no violations.

Decision log
  • We chose not to render this text as Markdown. AI Gateway is an audit view of other users' raw traffic, and Markdown would change what the auditor sees. For example, link text can hide its URL, comments disappear, and headings can imitate app UI. It would also break the plain-string search highlighting and add parse cost on long sessions. The Agents page already renders the same kinds of text as Markdown for the user's own chats.
  • WCAG 1.3.1 covers structure the page presents. Newlines collapse here, so nothing is presented as a list, and the content is unformatted text authored by a user or a model. A <blockquote> tells assistive tech that the text is quoted as written.
  • I didn't use a labelled <section> because it would add a region landmark per block and risk landmark-unique. role="log" is a live region, and aria-roledescription on a generic element is flagged by axe.
  • Element 3 of the ticket is a JSON string value inside the tool call input <pre>. It stays literal data.

🤖 Generated by Coder Agents on behalf of @aqandrew.

@aqandrew
aqandrew temporarily deployed to main November 17, 2026 20:32 — with GitHub Actions Inactive
@aqandrew
aqandrew temporarily deployed to main November 17, 2026 20:32 — with GitHub Actions Inactive
@linear-code

linear-code Bot commented Nov 17, 2026

Copy link
Copy Markdown

DEQ-107

@aqandrew
aqandrew temporarily deployed to main November 17, 2026 20:44 — with GitHub Actions Inactive
@aqandrew aqandrew changed the title fix(site/src/pages/AIBridgePage/SessionThreadsPage/SessionTimeline): quote verbatim prompt and thinking text fix(site/src/pages/AIBridgePage/SessionThreadsPage): quote verbatim prompt and thinking text Nov 17, 2026
@aqandrew
aqandrew temporarily deployed to main November 17, 2026 20:56 — with GitHub Actions Inactive
@aqandrew
aqandrew marked this pull request as ready for review November 17, 2026 20:58
@aqandrew
aqandrew temporarily deployed to main November 17, 2026 20:58 — with GitHub Actions Inactive

@Jesswinters Jesswinters left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice lil quick fix! ✨

This branch was previously deployed

1 inactive deployment
main — 52f65538 Deployed Nov 17, 2026 by aqandrew via cla #258952
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.

2 participants