Skip to content

Not reading path-specific instruction files #311

@rasmusfiskerbang

Description

@rasmusfiskerbang

Describe the bug

Between 0.0.337 and 0.0.338 a regression happened where Gihub Copilot CLI no longer uses Path specific instructions files.

Affected version

0.0.338 Commit: 877e86a

Steps to reproduce the behavior

Create the following file structure
.github/
├── instructions/
│ └── ALL.instructions.md
└── copilot-instructions.md
README.md

With the following contents

copilot-instructions.md

Always end every answer with the tag [INSTR-OK].

ALL.instructions.md

---
applyTo: "**"
---
Always include [PATH-OK] in your answer.

Run
copilot -p "Open README.md and append a line. Include your tags." --allow-all-tools

Expected behavior

The response from copilot should include both [INSTR-OK] and [PATH-OK]

Additional context

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions