Remove checkmarks from chat-used-context-label, add hover chevron#296621
Merged
daviddossett merged 7 commits intomainfrom Feb 21, 2026
Merged
Remove checkmarks from chat-used-context-label, add hover chevron#296621daviddossett merged 7 commits intomainfrom
daviddossett merged 7 commits intomainfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the chat UI for collapsible “used context” and tool input/output headers by removing the leading checkmark/loading icons and introducing a subtle chevron indicator that appears on hover and flips direction when expanded.
Changes:
- Hide leading icons for collapsible chat headers unless they represent an error/warning state.
- Add a right-side hover chevron to indicate expand/collapse state and update it reactively.
- Adjust chat CSS spacing/hover styles and introduce
.chat-collapsible-hover-chevronstyling.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| src/vs/workbench/contrib/chat/browser/widget/media/chat.css | Updates button spacing and adds styles for the new hover chevron indicator. |
| src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolInputOutputContentPart.ts | Adds chevron indicator to tool IO collapsible header and removes non-error leading icons. |
| src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollapsibleContentPart.ts | Adds chevron indicator to used-context collapsible header and hides non-error/warning leading icons. |
Comments suppressed due to low confidence (2)
src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollapsibleContentPart.ts:92
setupDelayedHoveris attached tocollapseButton.iconElement, but this PR hidesiconElementfor non-error/warning states. That makeshoverMessageeffectively unreachable in the common case. Consider anchoring the hover oncollapseButton.element(or the new chevron) instead of the icon element.
if (this.hoverMessage) {
this._register(this.hoverService.setupDelayedHover(collapseButton.iconElement, {
content: this.hoverMessage,
style: HoverStyle.Pointer,
}));
src/vs/workbench/contrib/chat/browser/widget/media/chat.css:2201
.interactive-session ... .monaco-button .codicon { color: ... !important; }will override the intendedcolorfor.chat-collapsible-hover-chevron(which is also a.codicon) inside used-context labels. If the chevron is supposed to use--vscode-descriptionForeground, consider excluding.chat-collapsible-hover-chevronfrom this rule or increasing specificity/using!importanton the chevron color.
.interactive-session .chat-file-changes-label .monaco-button .codicon,
.interactive-session .chat-used-context-label .monaco-button .codicon {
font-size: 12px;
color: var(--vscode-icon-foreground) !important;
}
src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolInputOutputContentPart.ts
Show resolved
Hide resolved
src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatToolInputOutputContentPart.ts
Outdated
Show resolved
Hide resolved
src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollapsibleContentPart.ts
Outdated
Show resolved
Hide resolved
c062576 to
12ba2e6
Compare
hediet
approved these changes
Feb 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.
Remove checkmark icons from
chat-used-context-labelelements and replace with a hover chevron indicator that points down when expanded.Changes:
gapto 0, addmargin-left: -2pxto compensate for removed icon, update hover styles, add.chat-collapsible-hover-chevronCSS rules (hidden by default, visible on hover or when expanded)