Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

plugin marketplace add fails entirely if any single plugin description exceeds 1024 chars

Aperta
#4,969 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
52/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
shell
Ambito
cli

Direzione di ricerca

Start by reproducing copilot plugin marketplace add Rippling/claude-marketplace with the referenced marketplace.json, then inspect the marketplace-add validation path. The fix should prevent one overlong description from making all 672 entries unusable, or make the validation error identify the plugin; verify that the marketplace can be added and that invalid entries are handled as intended.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

triage
Environment
  • Copilot CLI: 1.0.88
  • OS: macOS
Problem

copilot plugin marketplace add <owner>/<repo> performs strict Zod validation
of marketplace.json and rejects the entire marketplace if any plugin
entry has a description longer than 1024 characters. There is no partial
load, warning-and-skip, or truncation — a single non-conformant plugin entry
makes the whole marketplace (hundreds of otherwise-valid plugins) unusable.

This may be related to/duplicate work for #3494 (SKILL.md description >1024
chars silently dropped from skills.list()), but the failure mode here is the
opposite and arguably worse: instead of silently dropping the SKILL.md entry
in an installed plugin, the CLI hard-fails to add an entire marketplace
because of a handful of over-length description fields in marketplace.json.

Reproducer
$ copilot plugin marketplace add Rippling/claude-marketplace
Failed to add marketplace: Error: Request plugins.marketplaces.add failed with message: Invalid marketplace.json: plugins.27.description: String must contain at most 1024 character(s), plugins.89.description: String must contain at most 1024 character(s), plugins.147.description: String must contain at most 1024 character(s), plugins.171.description: String must contain at most 1024 character(s), plugins.394.description: String must contain at most 1024 character(s), plugins.406.description: String must contain at most 1024 character(s), plugins.417.description: String must contain at most 1024 character(s), plugins.439.description: String must contain at most 1024 character(s), plugins.580.description: String must contain at most 1024 character(s), plugins.610.description: String must contain at most 1024 character(s)

The referenced marketplace.json has 672 plugin entries; 10 of them have
description fields between 1084 and 6103 characters (one is nearly 6x the
cap). Trimming just those 10 descriptions to ≤1024 chars allows the
marketplace to be added successfully — every other field/entry is otherwise
valid.

Impact
  • A single contributor adding an overlong description (easy to do
    accidentally, e.g. via generated/templated descriptions) blocks marketplace
    adoption for the entire org, not just their plugin.
  • The error message lists the offending indices but not plugin names, making
    it hard to locate/fix the entries without manually indexing into the JSON
    array.
  • There's no --force/lenient mode to add the marketplace while skipping or
    truncating invalid entries.
Suggested fix
  • Validate per-plugin-entry and skip/warn on individual invalid entries
    (matching the description in #3494) instead of failing the whole
    marketplace add, OR
  • Include the plugin name/id (not just array index) in the validation
    error so it's actionable, and/or
  • Document the 1024-char description cap for marketplace.json plugin
    entries (currently not called out anywhere in
    https://docs.github.com/copilot/how-tos/copilot-cli/customize-copilot/plugins-marketplace).
Lingua principale
Shell
Stelle
11.2k
Fork
1.9k
Merge medio
17h 6m
PR unite (30g)
5

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di github/copilot-cli

Tutte le issue di github/copilot-cli

Issue simili

Altre issue su Shell/Bash

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.