Skip to content

fix #306455#308247

Merged
sandy081 merged 1 commit intomainfrom
sandy081/varying-tiglon
Apr 7, 2026
Merged

fix #306455#308247
sandy081 merged 1 commit intomainfrom
sandy081/varying-tiglon

Conversation

@sandy081
Copy link
Copy Markdown
Member

@sandy081 sandy081 commented Apr 7, 2026

fix #306455

Copilot AI review requested due to automatic review settings April 7, 2026 16:21
@sandy081 sandy081 enabled auto-merge (squash) April 7, 2026 16:21
@sandy081 sandy081 self-assigned this Apr 7, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 7, 2026

Screenshot Changes

Base: c4a91a18 Current: 8d4e9bf1

Changed (1)

editor/inlineCompletions/WordReplacementView/Dark
Before After
before after

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adjusts the Sessions “session type” (CLI/Cloud) picker UI in the agents-first Sessions window (vs/sessions) to address issue #306455 around a disabled-looking picker.

Changes:

  • Removes the slot element reference and the .disabled CSS class toggling from SessionTypePicker.
  • Leaves picker rendering intact but no longer visually disables it when there’s only one session type.
Show a summary per file
File Description
src/vs/sessions/contrib/chat/browser/sessionTypePicker.ts Removes disabled-state styling logic for the session type picker.

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 1

Comment on lines 119 to 130
dom.clearNode(this._triggerElement);

const currentType = this._sessionTypes.find(t => t.id === this._sessionType);
const modeIcon = currentType?.icon ?? Codicon.terminal;
const modeLabel = currentType?.label ?? this._sessionType ?? '';

dom.append(this._triggerElement, renderIcon(modeIcon));
const labelSpan = dom.append(this._triggerElement, dom.$('span.sessions-chat-dropdown-label'));
labelSpan.textContent = modeLabel;

const hasMultipleTypes = this._sessionTypes.length > 1;
this._slotElement?.classList.toggle('disabled', !hasMultipleTypes);
dom.append(this._triggerElement, renderIcon(Codicon.chevronDown));
}
Copy link

Copilot AI Apr 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With the removal of the .disabled styling, the session type control now appears interactive even when there is only one (or zero) available session type, but _showPicker() immediately returns in that case. This results in a focusable “button” that does nothing on click/Enter/Space (misleading UX and confusing for screen readers). To match the linked issue, hide the picker entirely when it isn’t actionable (e.g., toggle hidden on the slot/parent element when this._sessionTypes.length <= 1 and consider also hiding the chevron in that case).

Copilot uses AI. Check for mistakes.
@sandy081 sandy081 merged commit 8cd016b into main Apr 7, 2026
26 of 27 checks passed
@sandy081 sandy081 deleted the sandy081/varying-tiglon branch April 7, 2026 16:45
@vs-code-engineering vs-code-engineering bot added this to the 1.116.0 milestone Apr 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sessions: Do not show the session type picker as disabled

3 participants