Fix: Honor deprecated infer: false in custom agent visibility#297003
Draft
Fix: Honor deprecated infer: false in custom agent visibility#297003
infer: false in custom agent visibility#297003Conversation
Co-authored-by: aeschli <6461412+aeschli@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix custom agent invocation with infer setting
Fix: Honor deprecated Feb 23, 2026
infer: false in custom agent visibility
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Custom agents with
infer: falsein their frontmatter were still being invocable by the model. The deprecatedinferattribute (superseded byuser-invocable/disable-model-invocation) was not correctly taken into account when computingagentInvocable.Root Cause
Changes
promptsServiceImpl.ts: FixagentInvocablecalculation to giveinferprecedence overdisableModelInvocationwhen explicitly set.promptsService.test.ts: AddgetCustomAgentstest coveringinfer: false→agentInvocable: false,infer: true→agentInvocable: true, and missinginfer→ defaults totrue.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
redirector.gvt1.com/proc/self/exe /proc/self/exe --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=none --no-sandbox --enable-crash-reporter=c9f7a3bd-4b22-4038-b438-f01468dc4c67,no_channel --user-data-dir=/tmp/vscode-tests-1771860075298 --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,8710832619931435156,5229929586332296513,262144 --enable-features=PdfUseShowSaveFilePicker --disable-features=LocalNetworkAccessChecks,ScreenAIOCREnabled,SpareRendererForSitePerProcess,TraceSiteInstanceGetProcessCreation --variations-seed-version --trace-process-track-uuid=3190708989122997041(dns block)/home/REDACTED/work/vscode/vscode/.build/electron/code-oss /home/REDACTED/work/vscode/vscode/.build/electron/code-oss --no-sandbox /home/REDACTED/work/vscode/vscode/test/unit/electron/index.js --run src/vs/workbench/contrib/chat/test/common/promptSyntax/service/promptsService.test.ts --grep infer: false(dns block)/proc/self/exe /proc/self/exe --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=none --no-sandbox --enable-crash-reporter=25a6f598-a8b1-44e8-b554-b108c7c3b754,no_channel --user-data-dir=/tmp/vscode-tests-1771860267998 --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,10874546582333780572,11522497578564019318,262144 --enable-features=PdfUseShowSaveFilePicker --disable-features=LocalNetworkAccessChecks,ScreenAIOCREnabled,SpareRendererForSitePerProcess,TraceSiteInstanceGetProcessCreation --variations-seed-version --trace-process-track-uuid=3190708989122997041 --project bin/sh ces false ode-gyp-bin/sh node(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
infer: falseis still invoked as the deprecated setting isn't honored #294003💡 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.