Skip to content

Conversation

@timtmok
Copy link
Contributor

@timtmok timtmok commented Nov 24, 2025

Addresses #9770 #10719

Fix copilot tools being included after 1.106 merge Filter copilot tools from Configure Tools quick pick using the include copilot tools setting

Release Notes

Fixes the 1.106 merge that changed how the Copilot tools are included. They are now built-in tools so we no longer can filter by using the Copilot extension. All the tools are filtered by the copilot_ prefix on the tool name.

Added the same logic to the quick pick UI. If the selected model is not a Copilot model, the setting is used to determine if the Copilot tools are shown in the list.

Selected chat model is not Copilot and setting does not include Copilot tools
image

Selected chat model is not Copilot and setting does include Copilot tools
image

New Features

  • N/A

Bug Fixes

  • Fix Copilot tools included in chat requests not using a Copilot model and filtering the tools from the Configure Tools quick pick

QA Notes

The Configure Tools action in the chat input shows the quick pick. Copilot tools are no longer in their own category. They're included in the Built-In category after the 1.106 upstream merge.

Fix copilot tools being included after 1.106 merge
Filter copilot tools from Configure Tools quick pick using the include copilot tools setting
@github-actions
Copy link

github-actions bot commented Nov 24, 2025

E2E Tests 🚀
This PR will run tests tagged with: @:critical

readme  valid tags

@timtmok timtmok requested a review from samclark2015 November 24, 2025 18:01
@timtmok timtmok marked this pull request as ready for review November 24, 2025 18:01
@timtmok timtmok requested a review from sharon-wang November 24, 2025 18:11
Copy link
Contributor

@samclark2015 samclark2015 left a comment

Choose a reason for hiding this comment

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

The changes reflect in the configure tools dialog as expected in agent mode, but the quickpick to add tools as context still shows an unfiltered list:

Image Image

* Determines if a tool should be enabled for the currently selected language model.
* Based on the logic from extensions/positron-assistant/src/api.ts
*/
const isToolEnabledForModel = (tool: IToolData): boolean => {
Copy link
Contributor

Choose a reason for hiding this comment

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

We should think about consolidating this into core code exposed via an exthost API at a future point.

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.

3 participants