Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 26, 2026

The "Refresh Chat Sessions" command and related chat session menu items remain visible when githubPullRequests.experimental.chat is false.

Changes

  • Added config.githubPullRequests.experimental.chat condition to chat/chatSessions menu items (pr.openChanges, pr.checkoutChatSessionPullRequest)
  • Added same condition to chat/input/editing/sessionToolbar menu items (pr.checkoutFromDescription, pr.applyChangesFromDescription)

This aligns with how other AI features are gated (e.g., chatParticipants, languageModelTools).

{
  "command": "pr.openChanges",
  "when": "chatSessionType == copilot-cloud-agent && config.githubPullRequests.experimental.chat",
  "group": "inline"
}
Original prompt

This section details on the original issue you should resolve

<issue_title>GitHub Pull Requests: Refresh Chat Sessions command remains available with disableAIFeature set to true</issue_title>
<issue_description>Image

  1. Set disableAIFeature setting to true.
  2. Open command palette
  3. Search for "Chat"

Expected result: You should only see one command (to enable AI)
Actual result: GitHub Pull Requests: Refresh Chat Sessions command is still available as well.
</issue_description>

<agent_instructions>All AI/Copilot features should be disabled when the disableAIFeatures setting is true. This includes the Copilot PR query, all sparkle actions, and any other AI/Copilot features.</agent_instructions>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 2 commits January 26, 2026 15:29
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
Added config.githubPullRequests.experimental.chat condition to all
chat/chatSessions and chat/input/editing/sessionToolbar menu
contributions to ensure these menu items are hidden when AI features
are disabled.

Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix Refresh Chat Sessions command availability when AI features are disabled Add experimental.chat condition to chat session menu contributions Jan 26, 2026
Copilot AI requested a review from alexr00 January 26, 2026 15:41
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.

GitHub Pull Requests: Refresh Chat Sessions command remains available with disableAIFeature set to true

2 participants