Repository navigation
Limit the a11y live region for output without line feeds - #6199
Open
0x48Maciek wants to merge 1 commit into
Open
0x48Maciek wants to merge 1 commit into
0x48Maciek wants to merge 1 commit into
Conversation
The live region only counted line feeds towards the "too much output" limit, so output that positions the cursor instead (eg. a TUI redrawing the viewport) appended every printed character to it until the terminal lost focus or a key was pressed. A row's worth of characters now also counts as a line. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
3 tasks done
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.
In screen reader mode the live region stops taking output after 20 line feeds. Output that positions the cursor instead never reaches that limit, so every printed character is appended until the terminal loses focus or a key is pressed. The live region is a 1px-wide element, so each append re-lays-out text that keeps growing. Full-screen TUIs hit this constantly. With Claude Code's fullscreen mode in VS Code, the whole window freezes within seconds of scrolling and only recovers when the terminal is blurred (e.g. by switching terminal tabs).
This also counts a row's worth of characters as a line, so the existing limit applies.
Replaying a recording of Claude Code's fullscreen mode scrolling (200x50, WebGL, headless Chromium) three times, 9 s each:
Related: anthropics/claude-code#84712
🤖 Generated with Claude Code