Skip to content

Updates in another CLI instance cause existing instances to break #1943

@ArcticZeroo

Description

@ArcticZeroo

Describe the bug

If I am currently running github copilot in one window, then run npx -y @github/copilot from another terminal window, and that second run causes github copilot to get updated, the older version gets cleaned off disk and the agent breaks unexpectedly.

This happened in 3 different terminal windows for me (working on different tasks in different folders):
Image

Affected version

1.0.2

Steps to reproduce the behavior

  1. Start an older version of the CLI in one tab, have it start working on a long-running task with many steps
  2. Start a newer version in another tab
  3. First tab will eventually die due to missing ripgrep or a worker.js or something

Expected behavior

Older tab stays alive until close, where it is cleaned up. Or the newer tab just doesn't upgrade and uses the older version but shows me /upgrade.

Additional context

Windows 11 in Windows Terminal.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions