You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Agents windows doesn't respect selected custom agent #334784
Does this issue occur when all extensions are disabled?: Yes/No
VS Code Version: 1.136.1
OS Version: Linux
Steps to Reproduce:
Select a custom agent from the drop down menu
Send a message
Copilot spawns a sub-sgent with the select custom agent, but the main chat itself isn't using the custom agent, it isn't restricted to the list of tools mentioned in the custom agent, and the main agent executes tools that shouldn't be allowed in this custom agent
Expected behavior
The main chat should use the custom agent instructions, be restricted to its allowed tools
I couldn't reproduce this on Insiders 1.147.0 (944d79c), macOS, local folder. I picked a custom agent with tools: ['read'] in the Agent picker and asked it to create a file. The main chat answered as that agent ("BANANA: I am read-only and can't create or modify files"), didn't create the file, and didn't start a subagent.
Does it still happen for you on a current build? If so, please share the agent file (or a trimmed version) and the exact steps.
Activity
[-]Agents windows don't respect selected custom agent[/-][+]Agents windows doesn't respect selected custom agent[/+]alexdima commentedon Nov 28, 2026
I couldn't reproduce this on Insiders 1.147.0 (944d79c), macOS, local folder. I picked a custom agent with
tools: ['read']in the Agent picker and asked it to create a file. The main chat answered as that agent ("BANANA: I am read-only and can't create or modify files"), didn't create the file, and didn't start a subagent.Does it still happen for you on a current build? If so, please share the agent file (or a trimmed version) and the exact steps.
i334784-custom-agent-works.mp4
🤖 Authored with GitHub Copilot on behalf of Alexandru Dima (@alexdima).