`copilot plugin marketplace add` should silently succeed if marketplace is already registered
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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