Repository navigation
fix(site/src): make scrollable agent logs and tool call input keyboard focusable - #32018
Merged
Merged
Conversation
chrifro
reviewed
Nov 11, 2026
chrifro
left a comment
Collaborator
There was a problem hiding this comment.
[reviewer-agent] round 1: one should-fix, otherwise this is in good shape.
Verified at e68bc74a0e: scope is site/ only, 31 non-test lines, required CI is green, and the unit tests pass locally. In Storybook, axe scrollable-region-focusable passes on AgentLogs/Default, AgentLogs/Overflowed, AgentRow/LogsTabs, and SessionTimeline/SearchFiltersToolCalls (500px). The logs region is a single tab stop in AgentRow (Copy, Download, Agent logs, then the next control). The overlay ring and the <pre> ring both render (ring-content-link, 2px). Arrow keys scroll the focused tool call input to its end.
Should-fix
AgentLogs.tsx:179andSessionTimeline.tsx:257: the new focus states have no story. See the inline comment.
Nits (optional)
AgentLogs.tsx:181:aria-hidden="true"could use thearia-hiddenshorthand, as line 314 of the same file does (site/AGENTS.md: JSX shorthand fortruebooleans).AgentLogs.tsx:131:peer focus-visible:outline-hiddencould be its owncn(...)group, separate from the layout classes.landmark-unique(best practice, not WCAG A/AA): several "Agent logs" regions, or repeated<tool> inputnames, can share a page. This was already called out in the PR body and matchesToolCall.Scrollable. I am fine leaving it.
Follow-ups filed: none.
🤖 Generated by Coder Agents on behalf of @chrifro.
chrifro
marked this pull request as draft
November 11, 2026 10:36
aqandrew
marked this pull request as ready for review
November 12, 2026 21:20
…hand on the focus ring overlay
Collaborator
Author
jeremyruppel
approved these changes
Nov 12, 2026
aqandrew
temporarily deployed
to
docs-preview
November 12, 2026 22:15 — with
GitHub Actions
Inactive
This branch was previously deployed
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Fixes the remaining axe
scrollable-region-focusableviolations (WCAG 2.1.1). Keyboard users could not reach two scroll containers to scroll them.AgentLogs): the react-window scroll element is now a focusableregionnamed "Agent logs". Its focus ring is drawn on an overlay so error and warning row backgrounds cannot cover it. InAgentRow, the log tab panel is no longer a tab stop, because the region inside already is. Without this, a per-source tab would have two stops in a row.SessionTimeline): theoverflow-x-auto<pre>is now a focusableregionnamed<tool> input, with a focus ring.This follows the existing
ScrollAreaviewportTabIndex/viewportAriaLabelpattern (tabIndex=0,role="region", a name).Closes DEQ-122
Closes DEQ-269
Closes DEQ-295
Closes DEQ-458
Closes DEQ-570
DEQ-149, DEQ-218, and DEQ-228 (build timeline
ChartContent) need no change: axe passes on main because #31656 made the bars inside focusable. Their Linear tickets have a comment that explains this.Not addressed (nits from self-review, left on purpose):
landmark-unique(best practice): several agents, or the same tool called twice, give regions with the same name. The AgentsPageToolCall.Scrollableregions use fixed names the same way. Unique names for the agent logs would need extra plumbing, because react-window only passesclassName,style,onScroll, andrefto its outer element.<pre>is a tab stop even when its content fits. This matches theScrollAreaprecedent.Verification and decision log
runOnly: scrollable-region-focusable) against Storybook with Playwright:SessionTimeline/SearchFiltersToolCallsat 500px: the violation reproduces on main and passes on this branch.AgentLogs/Default: passes on main and on this branch, because the source icon buttons inside are focusable. The per-source tab (showSourceIcons={false}) has no focusable content, so it fails on main. Self-review confirmed that it passes on this branch.WorkspaceTimings/NavigateToPlanStageandNavigateToStartStage: pass on main (DEQ-149, DEQ-218, DEQ-228).outerElementTypebecause it is the only react-window v1 hook that sets attributes on the scroll element.LogsViewportis at module scope, so it stays stable across renders.jsx-a11y/no-noninteractive-tabindexdisables follow the precedent inSecretsTable.tsx. A scrollable region must be focusable.🤖 Generated by Coder Agents on behalf of @aqandrew.