Skip to content

plugins: show the community catalog by default - #36294

Merged
nwparker merged 1 commit into
mainfrom
nwparker/community-catalog-default
Oct 30, 2026
Merged

nwparker merged 1 commit into
mainfrom
nwparker/community-catalog-default

Conversation

@nwparker

@nwparker nwparker commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​57 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​56
Prod 5 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​122 0 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​122

Summary

Before: Orca listed only the official catalog. You saw community plugins only after pasting https://github.com/stablyai/orca-community-plugins.git into Add marketplace, or after following an orca://plugins/...?catalog=community link. So community listings never reached most users.

After: On its next start, or when the plugin page opens, Orca adds the community catalog once, next to the official one. It stays a normal, non-official catalog. Its plugins keep the Community badge, the publisher notice and the full install review. Nothing becomes Official, because isOfficialMarketplaceGitSource still matches only stablyai/orca-plugins. If you remove the catalog, it stays removed.

How it works

  • CommunityMarketplaceSeed (new, plugin-community-marketplace-seed.ts) runs beside the official seed, at startup and from plugins:listMarketplaces. It:
    1. skips if it has already seeded once,
    2. skips the add if that repository is already registered (any casing, .git or not),
    3. otherwise adds the catalog through the normal addSource (which fetches and validates first),
    4. records that it seeded.
  • The record lives in marketplaces/seeded-defaults.json, not sources.json, because older builds parse sources.json strictly. A corrupt record counts as "already seeded", so a source the user removed is never re-added.
  • Listing calls wait for a seed that is already running, so the first view already shows the catalog. A failed seed (offline) retries after 10 minutes at the earliest, so offline views don't stall on a fetch every time.

Why this approach

  • Shipping the community catalog as a second managed "official-like" source: rejected. It would blur the trust line the badge and install review depend on.
  • Re-adding it on every start, like the official catalog: rejected. That would ignore a user who removed it.
  • A setting: rejected. A one-time record next to the sources keeps the decision with the plugin data it describes.

Testing

  • vitest on src/main/plugins/catalog and the marketplace IPC (105 pass). New cases:
    • adds once as non-official, with listings official: false;
    • a removal survives a restart;
    • no duplicate when the user already added it (different casing, no .git);
    • an offline retry is throttled, and listing works meanwhile.
  • pnpm tc:node and check:code-quality:changed pass.
  • e2e fixtures route github.com/stablyai/* to local repositories that don't include the community catalog. There the seed fails quietly and the existing official-only expectations hold.

@coderabbitai

coderabbitai Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 19 seconds.

Check out review usage here.

View limit details

Limit details: You’ve used all 10 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 8f8e4a92-202e-47e5-a6ae-762a063da912
Commits

Reviewing files that changed from the base of the PR and between ce7ca7f and 51d315b.

Files selected for processing: 7
  • src/main/ipc/plugin-marketplaces.test.ts
  • src/main/ipc/plugin-marketplaces.ts
  • src/main/plugins/catalog/plugin-community-marketplace-seed.ts
  • src/main/plugins/catalog/plugin-marketplace-service.test.ts
  • src/main/plugins/catalog/plugin-marketplace-service.ts
  • src/main/plugins/catalog/plugin-marketplace-store.ts
  • src/main/startup/main-process-plugins.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@nwparker
nwparker force-pushed the nwparker/community-catalog-default branch from 19d39f9 to 51d315b Compare October 30, 2026 08:11
@nwparker
nwparker merged commit 230166b into main Oct 30, 2026
42 checks passed
@nwparker
nwparker deleted the nwparker/community-catalog-default branch October 30, 2026 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant