Skip to content

Prune older installed versions — keep only the latest three (including the live one) #5077

Description

@NK-Works

Concern

Copilot CLI does not appear to remove its older versions/copies. Over time these stale background copies accumulate instead of being cleaned up.

Request

Please make Copilot CLI retain only the latest three copies — including the live (currently running) one — and automatically remove all older background copies. This could be done:

  • automatically on update/startup (prune anything beyond the latest three), or
  • via a cleanup/prune command or setting (e.g. copilot --prune / a configurable retention count).

Notes

  • I have not pinned down the exact on-disk location where the older copies accumulate; maintainers, please confirm where versioned copies are stored so retention can be applied there.
  • Keeping a small number (three) rather than just one preserves a rollback fallback while bounding disk usage.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions