Skip to content

Refresh plugin marketplaces every 2 hours - #1822

Merged
SawyerHood merged 2 commits into
mainfrom
bb/determine-marketplace-refresh-interval-thr_wxbynn36zm
Aug 18, 2026
Merged

SawyerHood merged 2 commits into
mainfrom
bb/determine-marketplace-refresh-interval-thr_wxbynn36zm

Conversation

@SawyerHood

Copy link
Copy Markdown
Collaborator

Summary

  • Change `MARKETPLACE_REFRESH_INTERVAL_MS` from 6 hours to 2 hours in the plugin catalog service.
  • Update the plugins guide and the bb-cli skill text that named the six-hour interval.
  • Regenerate `templates.generated.ts`.

Tests

  • `pnpm exec turbo run test --filter=@bb/server -- test/services/plugin-catalog`: 8 files, 109 tests pass.

AGENT GENERATED: by Claude Opus 5

🤖 Generated with Claude Code

@bb-slop-cop

bb-slop-cop Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

🚨 SLOP COP 🚨 · review

I am the Slop Cop. I started a review of PR #1822 under the review rule. I will check security, code quality, performance, architecture, and the user path.

@SawyerHood

Copy link
Copy Markdown
Collaborator Author

CI note: the packages test job failed on the merge commit because main (#1817) added provider-registrations-changed to the plugin SDK types without regenerating plugin-sdk-dts.generated.ts. This PR regenerates that file so the check passes.

@SawyerHood
SawyerHood force-pushed the bb/determine-marketplace-refresh-interval-thr_wxbynn36zm branch from fdfe8a6 to 33188ac Compare August 18, 2026 21:43
import { marketplacePublisherLabel } from "./marketplace-publishers.js";

const MARKETPLACE_REFRESH_INTERVAL_MS = 6 * 60 * 60 * 1_000;
const MARKETPLACE_REFRESH_INTERVAL_MS = 2 * 60 * 60 * 1_000;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚨 slopcop/review — The two-hour timer applies to every marketplace, not only BB Community.

The periodic path calls the unfiltered refresh method. Each Git source then receives a complete clone.

This change raises each Git marketplace from four to twelve clones each day. The code has no clone-size limit.

Please limit this timer to BB Community, or make Git refreshes incremental and bounded before this interval changes.

@bb-slop-cop bb-slop-cop Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚨 SLOP COP 🚨 · review

Plain-English summary

This PR makes BB check plugin marketplace catalogs every two hours instead of every six hours. It also updates the guide, agent skill, and generated template.

Findings

  • Medium: The shorter timer affects every registered marketplace. Git marketplaces perform a complete clone during each refresh. This changes each Git source from four clones to twelve clones each day. The code has no clone-size limit. I left an inline comment on the interval.
  • Low: An unchanged HTTPS catalog still replaces all cached icon rows. The eight-megabyte limit bounds this cost, but the new interval triples these database writes.

Security and architecture

I found no security issue. The network checks, size limits, and last-known-good transaction remain in place.

I found one interval constant and one periodic loop. The server correctly owns this policy. The user guide, agent skill, and generated template agree.

Validation

  • The schedule check recorded exactly 7,200,000 milliseconds.
  • The focused Turbo run passed 56 marketplace tests in three files.
  • The browser test refreshed BB Community, updated the time, and showed the success message.
  • The full server run passed 1,721 tests. Four unrelated tests failed outside this change.
  • The PR head moved during this review. I verified that the marketplace files did not change.

I found one medium performance issue that should be fixed before merge.

@SawyerHood
SawyerHood merged commit f76edc4 into main Aug 18, 2026
17 of 18 checks passed
@SawyerHood
SawyerHood deleted the bb/determine-marketplace-refresh-interval-thr_wxbynn36zm branch August 18, 2026 21:54
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