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

Copilot 1.0.46 CLI has blocker issue

Open npechett-wtg opened this issue 6 months ago • 6 comments

Describe the bug

Copilot 1.0.46 has blocker issue. On opening copilot and typign any msg

✗ Failed to persist session events: Error: Cannot find native binding. npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). Please try npm i again after removing both package-lock.json and node_modules directory.

✗ Failed to persist session events: Error: Cannot find native binding. npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). Please try npm i again after removing both package-lock.json and node_modules directory.

● Response was interrupted due to a server error. Retrying...

● Response was interrupted due to a server error. Retrying...

Affected version

1.0.46

Steps to reproduce the behavior

Just upgrade in copilot CLI

This once happens wont work in any copilot version.

Fix : nvm install 24 nvm use 24

Update Node to 24 and try, it should work.

Else : Workaround is to uninstall compeletely and downgrade to 1.0.45 and then create new custom .copilot and .cache folder. And point copilot to use these.

XDG_CACHE_HOME="$HOME/.cache_copilot_test"
COPILOT_HOME="$HOME/.copilot_npm_fresh"
copilot --no-auto-update --banner

Expected behavior

No response

Additional context

No response

npechett-wtg avatar May 13 '26 09:05 npechett-wtg

Image

npechett-wtg avatar May 13 '26 09:05 npechett-wtg

Update to prerelease helped me: /update prerelease in prompt

pawelorszulik7 avatar May 13 '26 10:05 pawelorszulik7

I have the same issue on Linux, installed from curl -fsSL https://gh.io/copilot-install | bash

davidweisgerber avatar May 13 '26 10:05 davidweisgerber

/update prerelease not doing the job for me

ankit-gautam-sndk avatar May 13 '26 11:05 ankit-gautam-sndk

nvm install 24 nvm use 24

Update Node to 24 and try, it should work.

npechett-wtg avatar May 13 '26 13:05 npechett-wtg

Apologies for the regression here. This should be fixed in 1.0.47

devm33 avatar May 13 '26 14:05 devm33