Skip to content

Copilot 1.0.46 CLI has blocker issue #3287

Description

@npechett-wtg

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 (npm/cli#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 (npm/cli#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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:installationInstalling, updating, versioning, PATH setup, and binary distributionarea:sessionsSession management, resume, history, session picker, and session state

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions