clean up confirmation carousel - no more collapse and better focus logic#311270
Merged
clean up confirmation carousel - no more collapse and better focus logic#311270
Conversation
Contributor
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the chat tool confirmation carousel UI to resolve focus-outline clipping/stacking issues reported in #309535, while also simplifying the carousel by removing the collapse/expand behavior and adding a “dismiss/skip all” action.
Changes:
- Removes the carousel’s collapse + content expansion logic and related resize observation/sizing heuristics.
- Adds a new dismiss button that skips/denies all pending confirmations.
- Adjusts carousel focus styling to avoid outline clipping by switching to border-based focus indication.
Show a summary per file
| File | Description |
|---|---|
src/vs/workbench/contrib/chat/browser/widget/chatContentParts/toolInvocationParts/chatToolConfirmationCarouselPart.ts |
Simplifies carousel behavior (no collapse/expand) and adds a dismiss (“skip all”) action. |
src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatToolConfirmationCarousel.css |
Updates focus styling and removes CSS related to collapsed/expanded carousel states. |
Copilot's findings
Comments suppressed due to low confidence (3)
src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatToolConfirmationCarousel.css:155
.monaco-list:focus { outline: none !important; }removes the focus indicator for lists inside the carousel. If the goal is to avoid non-keyboard focus rings, limit this to:focus:not(:focus-visible)or provide an alternative:focus-visiblestyle so keyboard users can still see focus.
.monaco-list:focus {
outline: none !important;
}
src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatToolConfirmationCarousel.css:42
.chat-tool-carousel-content .chat-confirmation-widget-containeris explicitly focusable (tabIndex=0), but this rule removes its focus outline for all focus states. Unless it’s replaced by another visible focus style, this makes keyboard focus effectively invisible. Prefer limiting outline removal to:focus:not(:focus-visible)or adding a dedicated:focus-visiblestyle (and/or rely on a:focus-withinborder on the carousel).
.chat-tool-carousel-content .chat-confirmation-widget-container:focus {
outline: none;
}
src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatToolConfirmationCarousel.css:127
- This rule removes outline/box-shadow for all
button:focus/.monaco-button:focus, including:focus-visible. That will eliminate the keyboard focus indicator on the Allow/Skip/Dismiss buttons and nav arrows. The previous:focus:not(:focus-visible)approach avoids mouse-focus rings while preserving keyboard focus; alternatively add explicit:focus-visiblestyling for these controls.
button:focus,
.monaco-button:focus {
outline: none !important;
box-shadow: none !important;
}
- Files reviewed: 2/2 changed files
- Comments generated: 3
…toolInvocationParts/chatToolConfirmationCarouselPart.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…media/chatToolConfirmationCarousel.css Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…toolInvocationParts/chatToolConfirmationCarouselPart.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
roblourens
approved these changes
Apr 20, 2026
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.
fix #309535