github / github/copilot-cli

`copilot plugin marketplace add` should silently succeed if marketplace is already registered

Open
#4,777 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

triage
Dominant language
Shell
Stars
11.2k
Forks
1.9k
Avg merge
14h 16m
Merged PRs (30d)
6

Description

Describe the feature or problem you'd like to solve

copilot plugin marketplace add currently fails when the marketplace is already registered.
Example:

copilot plugin marketplace add https://github.com/DietrichGebert/ponytail 
Failed to add marketplace: Error: Request plugins.marketplaces.add failed with message: Marketplace "ponytail" already registered
Proposed solution

If the target marketplace is already registered, treat it as a no-op and exit successfully (status code 0), ideally without printing an error.

Optional: print a non-error informational message (e.g., "Marketplace already registered") but still return 0.

Example prompts or workflows
  • Re-running bootstrap/setup scripts across machines
  • CI/devcontainer initialization where marketplace registration may already exist
  • User reruns the same command and expects no failure for existing state

Expected Behaviour:

  • Command is idempotent.
  • "already registered" condition does not produce an error exit.
  • Exit code is 0 for already-registered marketplaces.
Additional context

This issue report text was generated using GitHub Copilot.

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

Start at the copilot plugin marketplace add command entry point and trace how the existing-marketplace error is handled. Re-run the command with the ponytail marketplace, then verify that an already-registered marketplace exits with status code 0 and does not print an error.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.