Repository navigation
Add the disabled-by-default Prompt Library plugin - #4688
Merged
Merged
Conversation
ymichael
force-pushed
the
bb/b3-plugin-composer-commands-thr_cdd8rwpijj
branch
from
October 2, 2026 05:38
e2461f3 to
31d6385
Compare
ymichael
force-pushed
the
bb/b4-prompt-library-plugin-thr_7jdzn724u2
branch
from
October 2, 2026 05:46
50e0ba0 to
fd08b52
Compare
Base automatically changed from
bb/b3-plugin-composer-commands-thr_cdd8rwpijj
to
main
October 2, 2026 17:36
ymichael
force-pushed
the
bb/b4-prompt-library-plugin-thr_7jdzn724u2
branch
from
October 2, 2026 19:01
fd08b52 to
5bc7b95
Compare
ymichael
force-pushed
the
bb/b4-prompt-library-plugin-thr_7jdzn724u2
branch
from
October 5, 2026 19:28
a6e583f to
efcf3c8
Compare
…rketplace The public marketplace test added in #4938 requires every disabled-by-default builtin plugin to appear in OFF_BY_DEFAULT_BUNDLED_PLUGINS so its page shows `bb plugin enable` instead of "included". Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Human comments
What was wrong
Reusable prompts had no bundled picker for searching history, previewing a full prompt, and keeping favorites. B1–B3 provide the paged history API, popup host, and composer command path; this slice supplies their Prompt Library consumer.
What changed
Adds the forkable Prompt Library plugin: Ctrl+R or + → Prompts…, fuzzy search with Thread/Project/All scopes, Markdown preview, persistent starred text and mentions, and insertion at the retained caret. Empty drafts restore history text, mentions, and attachment objects; nonempty drafts receive text and mentions. Insertion never sends a message.
Disabled by default. Enable Prompt Library in Settings → Plugins or run
bb plugin enable bb--prompt-libraryto review it. Includesbb prompts search|list|star|unstar, typed plugin RPC, the plugin skill, CLI guide/configuration documentation, and bundled marketplace wiring. Uses B1'sexperimental_promptHistory.list, B2'sexperimental_popupsregistrations, and B3's composer command API; no new SDK surface or daemon wire change.History attachment fields pass through the mapper and RPC, including unknown extension fields. The attachment schema follows main's mutually exclusive project/host ownership contract and accepts unknown sizes. Starred prompts store text and mentions only. The standalone Vitest configuration keeps forks independent of monorepo test tooling.
How you verified
origin/mainat95750b88485a882bf9ea954c1655797002f60836; preserved main's diagnostics documentation when resolving the only conflict.mainat1904796758(picks up Temporarily raise workspace route bundle budgets by 5% #4933's workspace bundle budget, which fixed theChecksfailure). Main's new public-marketplace test from Add built-in plugin pages to the public marketplace #4938 then required off-by-default builtins to be listed, soprompt-libraryis added toOFF_BY_DEFAULT_BUNDLED_PLUGINSinapps/web; the marketplace page now showsbb plugin enable bb--prompt-library.turbo run test typecheck lint --filter=@bb/webpasses.pnpm exec turbo run typecheck lint test --filter=bb-plugin-bb--prompt-library --concurrency=4: all 9 tasks passed, including 25 tests. Restore cases cover file/image attachments with project or host ownership and preservation of unknown extension fields.env -u BB_CLI -u BB_SERVER_URL -u BB_ACCOUNT_POOL_PARENT_URL pnpm exec turbo run test --filter=@bb/server -- test/services/plugins/builtin-plugins.test.ts: all 28 tests passed.node scripts/check-plugin-forks.mjs plugins/prompt-library --concurrency=1: independent install, typecheck, tests, and plugin build passed.pnpm start:worktree, headless Chromium → server → daemon → real providers): Ctrl+R in follow-up and new-thread composers; Thread/Project/All and Project/All scopes with per-composer persistence across reload; fuzzy search; Cmd+S star/unstar and Star current draft; insertion at the caret without sending; empty-composer restore of an image; starred insert dropping attachments. Attachment ownership from Make prompt attachments portable across projects and machines #4685 was sent through real providers: a project A image restored into a project B new thread was copied byte-identically and described correctly, and an API-seeded absolute-path file restored with itshostIdwas read by the provider. Unknown sizes stay0, which the SDK documents as unknown; the file chip shows no size. Not re-run on this head: compact drawer / iOS Simulator (earlier pass above), host-mismatch rejection (single machine).itemIdincluded) through empty, at-caret and starred recall. Re-sent prompts store the same resources at shifted offsets, and real providers resolved each target.Reviewer checklist (run CLI commands against the worktree instance):
bb plugin enable bb--prompt-library.bb prompts star 'Review the release notes before merging' --json, thenbb prompts search 'rls nts' --json. Expect one fuzzy-matched starred prompt with highlighted characters.rls nts. Expect a starred result and full preview. Select Insert: the picker closes and the draft fills without sending.inertnoraria-hiddenin the Chromium check.