Skip to content

Unable to Load Custom Agent if Line Ending is CRLF #673

@alfkonee

Description

@alfkonee

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions