Skip to content

Show disabled Agent mode with policy indicator instead of hiding it - #278650

Merged
joshspicer merged 13 commits into
mainfrom
copilot/update-agent-ui-options-again
Nov 22, 2025
Merged

joshspicer merged 13 commits into
mainfrom
copilot/update-agent-ui-options-again

Conversation

Copilot AI commented Nov 20, 2025 •

Copy link
Copy Markdown
Contributor

When chat.agent.enabled is disabled via group policy, the Agent mode option was completely removed from the UI. It now remains visible with a lock icon and "Managed by your organization" tooltip.

Copilot AI and others added 3 commits November 20, 2025 20:42
- Extended IChatModeService with isAgentModeDisabledByPolicy() method
- Added IConfigurationService to ChatModeService to check policy values
- Updated getBuiltinModes() to always include Agent mode
- Modified ModePickerActionItem to show lock icon and "Managed by your organization" tooltip for disabled Agent mode
- Disabled modes are greyed out and cannot be selected

Co-authored-by: cwebster-99 <[email protected]>
- Updated getNextMode() to skip Agent mode when disabled by policy
- Prevents users from accidentally switching to disabled mode via keyboard shortcuts

Co-authored-by: cwebster-99 <[email protected]>
- Updated test to expect Agent mode always present in builtin modes
- Added test for isAgentModeDisabledByPolicy() method
- Added IConfigurationService to test setup

Co-authored-by: cwebster-99 <[email protected]>
Copilot AI changed the title [WIP] Update agent UI to grey out options for disabled mode Show disabled Agent mode with policy indicator instead of hiding it Nov 20, 2025
@cwebster-99

Courtney Webster (cwebster-99) commented Nov 21, 2025 •

Copy link
Copy Markdown
Member

Sustains behavior of agent disappearing from dropdown if disabled by an individual, but shows locked/greyed out if disabled by policy

image

This comment was marked as outdated.

@joshspicer joshspicer self-assigned this Nov 21, 2025
@cwebster-99

Copy link
Copy Markdown
Member
image image

@joshspicer
joshspicer changed the base branch from show-agent to main November 22, 2025 00:45

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 8 out of 8 changed files in this pull request and generated 7 comments.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@joshspicer
joshspicer marked this pull request as ready for review November 22, 2025 01:17
@vs-code-engineering

Copy link
Copy Markdown
Contributor

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

Benjamin Pasero (@bpasero)

Matched files:

  • src/vs/workbench/contrib/chat/browser/chatInputPart.ts

@vs-code-engineering vs-code-engineering Bot added this to the November 2025 milestone Nov 22, 2025
@joshspicer
joshspicer merged commit 61915cc into main Nov 22, 2025
@joshspicer
joshspicer deleted the copilot/update-agent-ui-options-again branch November 22, 2025 01:51
@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Jan 6, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants