Skip to content

Allow internal separators in file opener extension registration - #5835

Merged
SawyerHood merged 2 commits into
mainfrom
slopcop/issue-5834
Oct 20, 2026
Merged

SawyerHood merged 2 commits into
mainfrom
slopcop/issue-5834

Conversation

@bb-slop-cop

@bb-slop-cop bb-slop-cop Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

🚨 SLOP COP 🚨 · new-issue-autopilot

Human comments

What was wrong

The plugin file-opener collector allowed only alphanumeric extension strings, while extension extraction and file-opener selection already preserve and match internal separators. Valid file types could therefore fail registration and deactivate the plugin frontend. Reproduced twice on trusted main b0bb68655adcc6cd79e495d3484f4011a0640e2e in separate clean checkouts.

Report: https://get-bb.github.io/reports/issues/5834.html

What changed

  • Allow single underscores or hyphens between lowercase alphanumeric extension segments at the existing collection boundary.
  • Keep uppercase, dots, whitespace, path separators, leading/trailing separators, and empty segments invalid.
  • Add registration-through-resolution regression cases and malformed-input coverage; document the grammar in the SDK declaration and Plugin Guide.
  • Bump the plugin SDK to 0.6.60 (packages/domain/src/plugin-sdk-version.ts and packages/plugin-sdk/package.json). The extension check runs in the host, so a plugin that registers kicad_pcb can declare engines.bbPluginSdk: ">=0.6.60" to require a bb that accepts it, instead of having its frontend dropped on an older bb.
  • Six files. No dependencies, generated files, stored-data changes, public wire/schema types, daemon protocol, or new API members.

How you verified

  • Before the fix, the two new registration-to-resolution cases fail at the collector's extension check in both clean checkouts (2 failed, 54 skipped).
  • pnpm exec turbo run test --filter=@bb/app -- src/lib/plugin-app-definition.test.ts src/lib/plugin-slot-resolvers.test.ts src/lib/plugin-frontend.test.ts — 82 passed after the fix.
  • pnpm exec turbo run test --filter=@get-bb/plugin-sdk --filter=bb-plugin-plugin-api-docs — 376 SDK tests and 72 Plugin Guide tests passed.
  • pnpm exec turbo run typecheck --filter=@bb/app --filter=@get-bb/plugin-sdk --filter=bb-plugin-plugin-api-docs — passed.
  • Formatting checks and git diff --check passed; git diff --numstat origin/main confirmed 73 changed text lines and no binary changes for the first commit.
  • The read-only verification inventory has an existing unmapped browser CLI family. An initial cold whole-build ordering failure was resolved by building the SDK first; the whole-build retry passed before the fix.
  • Follow-up review commit: node .github/workflows/check-plugin-sdk-version.mjs failed before the bump ("The plugin SDK surface changed without a version bump") and passes after it; check-version-lockstep.mjs passes. turbo run test typecheck for @bb/domain (248), @get-bb/plugin-sdk (376), and bb-plugin-plugin-api-docs (72) pass, plus the three focused @bb/app files (82).
  • Live check in an isolated source dev app with a local fixture plugin registering kicad_pcb and code-workspace: with the old collector, the browser console shows frontend registration failed: slots.fileOpener: extensions must be lowercase alphanumerics without the dot, got "kicad_pcb", Settings → Files has no File openers section, and board.kicad_pcb opens as raw text. With this branch, Settings lists .code-workspace and .kicad_pcb as Automatic (KiCad fixture), and board.kicad_pcb opens in the plugin viewer, also after a reload.

Fixes #5834

AGENT GENERATED

@SawyerHood
SawyerHood merged commit 8bc0efb into main Oct 20, 2026
48 checks passed
@SawyerHood
SawyerHood deleted the slopcop/issue-5834 branch October 20, 2026 17:41
alexandre-vl added a commit to alexandre-vl/bb that referenced this pull request Oct 20, 2026
- v3.1/: the reply and display menus before and after anchoring them to
  their trigger, the phone drawer, seven loading states, and loading.gif
  (cold start, then a refresh that moves get-bb#5835 into Ready to merge).
- prototype: the sidebar shows the finished agent's glyph instead of a
  spinner that never stopped.
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.

Plugin file openers reject extensions with an underscore (kicad_pcb)

1 participant