Skip to content

apply_patch cannot create files when exclusions are configured #337528

Closed

Description

@monil-patel
  • Copilot Chat Extension Version: Current main
  • VS Code Version: Current main
  • OS Version: Windows
  • Feature (e.g. agent/edit/ask mode): Agent mode
  • Selected model (e.g. GPT 4.1, Claude 3.7 Sonnet): N/A
  • Logs: Available privately if needed

Steps to Reproduce:

  1. Open a repository that has Copilot exclusions configured.
  2. Ask the agent to create a new file with the apply_patch tool.
  3. Observe that exclusions can block creation of the new file.

Expected result:

The tool creates a new file when the path is allowed for editing.

Actual result:

The tool rejects the new file before it applies the patch.

Activity

  1. added
    bug
    on Sep 24, 2026
  2. added
    unreleased
    on Sep 24, 2026
  3. added this to the 1.140.0 milestone on Sep 24, 2026
  4. added
    insiders-released
    and removed
    unreleased
    on Sep 24, 2026
  5. locked and limited conversation to collaborators on Nov 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugcontent-exclusionsinsiders-releasedverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions