Repository navigation
Description
The workflow
A plugin renders bb's new-thread compose surface through experimental_NewThreadComposer (the documented host-component exception). Our plugin (Focus Board, cristoslc/bb-plugin-focus-board) opens that composer in a dialog over its board. A user drafting a thread there sometimes needs a project that does not exist yet. bb's own main new-thread view solves this: its project picker lists a "New project" entry (folder-plus icon) between the project rows and "Don't work in a project", and activating it opens the project path setup flow. The operator's ask, verbatim: "New Thread dialog on focus board needs to include 'New Project' not just 'Don't work in a project' in dropdown options, just like classic new thread controls in bb".
We cannot reproduce that entry from a plugin, because the plugin-facing wrapper never sees the capability that drives it.
What happens today
The internal compose component and its project picker fully support the capability. In the shipped desktop 0.48.1 bundles:
RootComposeView-BdG6by5n.jspassescreateProject: { onCreate: openCreateDialog, disabled: !isAvailable || isCreating, isCreating }into the shared internal composer (NewThreadComposer-DjqGA_pM.js).- That component forwards
createProject: e.createProjectinto the picker slot'sprojectsection, and the picker renders the entry: option valuenew-project,FolderPlusicon, labelCreating.../New project, placed after the project rows and before "Don't work in a project".
The plugin-facing wrapper drops it. plugin-frontend-BSDgI4Ny.js implements experimental_NewThreadComposer by destructuring a fixed prop list (defaultProjectId, defaultProviderId, defaultModel, defaultReasoningLevel, defaultServiceTier, defaultPermissionMode, defaultEnvironment, initialPrompt, placeholder, layout, focusRequest, className, draftKey, onSubmit) and rendering the internal compose with a fixed prop set. createProject is not among either list, so a plugin passing it is silently ignored, and the wrapper's hardcoded children callback calls renderPromptBox with only { placeholder, allowNoProject, mentionMenuPlacement } — the main view's callback passes createProject there too.
The public contract matches the implementation. NewThreadComposerProps (packages/plugin-sdk/src/app-contract.ts at d060de8, the NewThreadComposerProps interface) has no createProject prop, and the same is true in the published SDK (npm @get-bb/plugin-sdk 0.6.116, published 2026-11-03; we also run ^0.6.19). I searched open and closed issues and found no existing request for this.
What you would expect
Forward the capability (or an equivalent) through experimental_NewThreadComposer, so a plugin can pass the same createProject object the main view passes and the picker's dropdown gains the same "New project" entry. Everything a plugin needs around it already exists on the plugin side: bb.sdk.projects.create({ name, source: { type: "local_path", hostId, path } }) is reachable, and selecting the created project afterwards works through the documented defaultProjectId re-seed-on-change behavior. So the whole change on bb's side is destructure-and-forward of one prop the host already owns, plus the usual additive-versioning note in the props contract.
An alternative shape that would also work: let the wrapper's children render-prop forward caller options to renderPromptBox (the main view already passes createProject and onRequestMachineSetup that way), so plugins can opt into host capabilities without one prop per feature.
Context and alternatives
- Workaround shipped meanwhile (focus-board PR 356): the plugin renders its own compact "New project" button adjacent to the composer's project row; activating it swaps in an inline name field, creates through
sdk.projects.create, and re-seeds the picker viadefaultProjectId. It works, but it is a second affordance outside the dropdown, and its wording/placement cannot track the host's own entry. We will swap it for the real dropdown entry the day the capability is forwarded, which is why matching the host's entry matters to us. - Ruled out: the composer-customization surface (its regions are actions, banners, plusMenu, sendMenu, richText, popups; none reaches the project picker), a newer SDK or desktop release carrying the prop (0.6.116 and desktop 0.48.1, the latest, both lack it), and reaching the internal compose component directly (not exported to plugins).
- Affects any plugin hosting the new-thread compose surface; today that is at least Focus Board.
AGENT GENERATED CONTENT
Activity
bb-slop-cop commentedon Nov 4, 2026
🚨 SLOP COP 🚨 ·
new-issue-autopilotApplied the missing classifications: Type: Feature · Priority: Medium · Effort: Low. Added labels:
plugins,ui. No existing classifications needed preservation; all writes were verified.Trusted main confirms the plugin composer’s public props do not expose project creation. Supporting it extends the SDK’s existing capabilities rather than repairing an advertised capability. Medium priority reflects a useful workflow with a workaround; Low effort reflects a contained extension using existing picker support.
No reproduction report or pull request: the final Type is Feature, so this rule skips bug reproduction and fixes.
Offer New project in plugin-hosted new-thread composers (get-bb#7060)
Make plugin surfaces prove they use core's path and delete plugin-onl…