Skip to content

Focus is lost after pressing Esc on the "Compact Conversation" button in the Session Info pane: A11y_Compare models and harnesses_Agent window_session info_keyboard #347872

Open

Description

@kupatkar99

GitHub Tags:

#a11ydb-focus-lost-on-action; #A11yTCS; #A11yMAS; #Visual Studio Code Client; #SH_CompareModelandharnessess_Win32_Nov2026; #DesktopApp; #Win32; #Focus Order; #WCAG2.4.3; #A11ySev2;

Issue Sub-Category:

Focus lost after interaction

User Impact:

Keyboard users may lose their place after closing a popup, deleting a list item, or completing an inline action. When focus is reset to the body, a keyboard or assistive technology user will often need to spend extra effort to return to their previous location, or the intended location due to the action they performed, so they can continue their task.

Repro Steps:

Launch VS Code application >Agent window>Give Prompt>Compare Models>Sent>Prompt box>Progress control>compact Conversation>Observe the issue.

Actual Result:

After performing an action focus is "lost", a.k.a., is sent to the <body> element. Or, focus is moved to an unexpected location that doesn't align with the expected flow of the user experience.

After you press Esc with keyboard focus on "Compact Conversation" in the Session Info pane, focus is lost. No element on the page shows a visible focus indicator, and focus doesn't go back to the progress control or any other logical place.

Expected Result:

Pressing Esc on "Compact Conversation" should close the Session Info pane. Focus should then go back to the control that opened it, the progress control in the "Chat with Copilot" box, with a clear focus indicator, so users can carry on from the same place.

How to fix:

Ensure focus is programmatically set to a logical location after a user completes an action. For instance, if an element is closed or dismissed, return focus to the element that had invoked it, or to a logical location if the triggering element no longer exists. Similarly, if deleting an item, move focus to the next or previous focusable element in the set, or a logical and consistent starting location. If performing an action that results in a dialog or other panel of content that contains content that the user is expected to immediately interact with, move focus to the first focusable element, or highest priority element, of the newly rendered content.

Environment Details:

Application name: Compare Models and Harnesses
VS Code Version: 1.145.2 (User Setup)
OS details: Windows 11 Enterprise Insider Preview
OS Build: 26709.1000

Attachment:

A11y_Compare.models.and.harnesses_Agent.window_session.info_keyboard.mp4

Activity

  1. added
    bug
    accessibility
    on Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

accessibilitybug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions