Skip to content

Conversation

@DonJayamanne
Copy link
Collaborator

@DonJayamanne DonJayamanne commented Jan 29, 2026

…ame as ts script) for Copilot CLI in terminal
@DonJayamanne DonJayamanne self-assigned this Jan 29, 2026
@DonJayamanne DonJayamanne changed the title Avoid checking if version could not be parsed in powershell script (same as ts script) for Copilot CLI in terminal Avoid checking if copilot cli version cannot not be parsed in powershell script Jan 29, 2026
@DonJayamanne DonJayamanne marked this pull request as ready for review January 29, 2026 00:39
Copilot AI review requested due to automatic review settings January 29, 2026 00:39
@vs-code-engineering vs-code-engineering bot added this to the January 2026 milestone Jan 29, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adjusts the Copilot CLI PowerShell shim so that a successful --version invocation is treated as success even if the version string cannot be parsed, avoiding unnecessary reinstall prompts and failures. It still performs version compatibility checks when a valid semantic version is detected.

Changes:

  • Removed the branch that treated an unparsable --version output as an error requiring a reinstall prompt.
  • Added comments clarifying that a successful --version call implies a valid installation even without a parseable version.
  • Updated the version compatibility check to run only when a version value was successfully extracted.

@DonJayamanne DonJayamanne added this pull request to the merge queue Jan 29, 2026
Merged via the queue into main with commit 41b0ebb Jan 29, 2026
25 checks passed
@DonJayamanne DonJayamanne deleted the don/innocent-pony branch January 29, 2026 01:07
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.

Unable to launch Copilot CLI in terminal on windows

3 participants