You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
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
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
Activity