Skip to content

Can't create prompt with /// -> invalid command #1690

@petrroll

Description

@petrroll

Describe the bug

Copilot tries to parse copied-in parts of prompts as containing commands -> leads fails on invalid command if prompt (copied or not) contains /// on windows (likely other platforms as well)

Affected version

GitHub Copilot CLI 0.0.419-0

Steps to reproduce the behavior

  1. Open copilot
  2. /// something as prompt, e.g. if you copy xaml comment form C# codebase
  3. Copilot complains invalid command :/ (maybe copying should escape?)

Expected behavior

Works

Additional context

  • Windows
  • Windows terminal
  • Open from pwsh.exe, not wsl

Metadata

Metadata

Assignees

No one assigned

    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