Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 26, 2026

The "Refresh Chat Sessions" command appears in the command palette even when githubPullRequests.experimental.chat is false. This occurs because VS Code auto-generates the command when an extension enables the chatSessionsProvider API proposal.

Changes

  • Added commandPalette contribution with when clause to hide the auto-generated refresh command:
    {
      "command": "workbench.action.chat.refreshChatSessions",
      "when": "config.githubPullRequests.experimental.chat"
    }

Notes

The command ID workbench.action.chat.refreshChatSessions follows standard VS Code patterns for chat-related commands. If VS Code uses a different ID, alternatives to try: chat.refreshChatSessions, GitHub.vscode-pull-request-github.refreshChatSessions.

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 set to true. This includes the Copilot PR query and all sparkle actions.</agent_instructions>

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


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 3 commits January 26, 2026 15:26
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
… disabled

Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
…ely ID

Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix visibility of refresh chat sessions command when AI features are disabled Hide "Refresh Chat Sessions" command when experimental.chat disabled Jan 26, 2026
Copilot AI requested a review from alexr00 January 26, 2026 15:43
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