Skip to content

Fix Windows 'Fix/feature' launch: quote prompt argument to copilot CLI#132

Merged
PureWeen merged 1 commit intomainfrom
fix-windows-fix-feature
Feb 17, 2026
Merged

Fix Windows 'Fix/feature' launch: quote prompt argument to copilot CLI#132
PureWeen merged 1 commit intomainfrom
fix-windows-fix-feature

Conversation

@PureWeen
Copy link
Copy Markdown
Owner

Problem

When using Fix / feature on Windows, the copilot CLI failed with:

\
error: too many arguments. Expected 0 arguments but got 1.
\\

The PowerShell subexpression (Get-Content '...' -Raw)\ was passed unquoted to \copilot -i, causing the multi-line prompt content to be split into multiple arguments by PowerShell.

Fix

Store the file content in a \\ variable first, then pass it double-quoted (\"") so copilot receives it as a single -i\ argument.

Testing

  • Verified build succeeds on Windows (0 errors)
  • Manually tested the Fix/feature flow — copilot launches correctly with the prompt

The PowerShell subexpression (Get-Content ... -Raw) was passed unquoted,
causing the multi-line prompt content to be split into multiple arguments.
Store the content in a variable and pass it in double quotes so copilot
receives it as a single -i argument.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@PureWeen PureWeen merged commit 127d18e into main Feb 17, 2026
@PureWeen PureWeen deleted the fix-windows-fix-feature branch February 22, 2026 00:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant