copilot-cli icon indicating copy to clipboard operation
copilot-cli copied to clipboard

Unable to Load Custom Agent if Line Ending is CRLF

Open alfkonee opened this issue 1 month ago • 0 comments

Describe the bug

Image

When the agent file is configured with windows Line ending CRLF the Loading of the Agent fails with the above error but loads of in LF

Affected version

0.0.355 Commit: 90c0eb793

Steps to reproduce the behavior

  1. Create a custom agents file under .github/agents/ with CRLF line ending
  2. Restart copilot
  3. Enter /agent command

Expected behavior

All Agent Loaded regardless of line ending to support both windows and Linux based line ending

Additional context

  • OS Windows 11
  • Terminal Emulator: Windows Terminal
  • Shell Powershell 7
  • CPU -x84

alfkonee avatar Nov 27 '25 11:11 alfkonee