Copilot 1.0.46 CLI has blocker issue
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
Update to prerelease helped me: /update prerelease in prompt
I have the same issue on Linux, installed from curl -fsSL https://gh.io/copilot-install | bash
/update prerelease not doing the job for me
nvm install 24 nvm use 24
Update Node to 24 and try, it should work.
Apologies for the regression here. This should be fixed in 1.0.47