github / github/copilot-cli

Plugin updates fail with Access is denied when other Copilot CLI or VS Code sessions are open

Open
#4,488 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area:platform-windows area:plugins
Dominant language
Shell
Stars
11.2k
Forks
1.9k
Avg merge
14h 16m
Merged PRs (30d)
6

Description

Description

Plugin updates fail when multiple Copilot CLI sessions or VS Code windows are open, even when the plugin is not actively invoked or being used by those sessions. The update appears to be blocked by file locks held by unrelated processes or sessions.

Impact

Updating a plugin currently requires closing and reopening every Copilot CLI shell and VS Code window. This is disruptive and can prevent urgent plugin updates from being applied promptly.

Observed error
Installing plugin "Agentic-Workflows@CalOps-Hub"...
Failed to install plugin: Failed to install plugin: Access is denied. (os error 5)
Expected behavior

Plugin updates should succeed when the plugin is not actively in use. If a file lock makes an immediate update impossible, Copilot CLI should identify the process or session holding the lock and provide targeted remediation, or support a deferred or atomic update without requiring all Copilot CLI and VS Code sessions to be closed.

Actual behavior

The update fails with a generic Access is denied (os error 5) message while other Copilot CLI sessions or VS Code windows are open, without identifying the locking process or offering a recovery mechanism.

Screenshot
Image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file or test is named. Start by reproducing the update with multiple Copilot CLI sessions and VS Code windows open, then trace the plugin update entry point and the source of the Windows “Access is denied” error. Done means updates succeed when the plugin is unused, or the locking process and a recovery or deferred-update path are clearly reported.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell, vscode
Domain
cli, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.