Skip to content

Agents windows doesn't respect selected custom agent #334784

Open

Description

@ibnelwalid

Does this issue occur when all extensions are disabled?: Yes/No

  • VS Code Version: 1.136.1
  • OS Version: Linux

Steps to Reproduce:

  1. Select a custom agent from the drop down menu
  2. Send a message
  3. 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

Activity

  1. changed the title [-]Agents windows don't respect selected custom agent[/-] [+]Agents windows doesn't respect selected custom agent[/+] on Sep 6, 2026
  2. added
    stale
    and removed on Sep 13, 2026
  3. alexdima commented on Nov 28, 2026

    @alexdima
    Member

    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).

  4. added
    chat-customizations
    info-needed
    on Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

agents-windowchat-customizationsinfo-neededstaletriage-needed

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions