You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
toCompose / NewThreadComposer: seed the draft with mention parts, not only serialized thread/project/section tokens #8014
I maintain a local plugin that opens bb's new-thread composer for Obsidian vault projects (one bb project per vault). "Ask about this note" should open New thread with the note already attached as a pill, the same pill the user gets by typing @ and picking the file (a path mention) or one of the plugin's own mention items.
Observed on bb 0.49.0 (plugin SDK 0.6.132). Code links below are at 796cdcc (main, desktop 0.50.1), checked by reading the source.
path, attachment and plugin mentions have no serialized form a seed can carry, so the file goes into the prompt as plain text.
Once a composer is mounted, useComposer().insert() accepts ComposerInsertPart[], which includes every mention kind and the plugin's own { provider, id, label } mentions (app-contract.ts:4565-4611). Only the hand-off path lacks it.
What you would expect
A structured seed with the same "only while the draft is empty" semantics, for example:
toCompose({ initialPrompt: ComposerInsertPart[] }) (string still accepted), and
the same for NewThreadComposer's initialPrompt.
A plugin mention would resolve through its provider at send time, as it does when inserted by hand.
Context and alternatives
Workaround: put the path in the prompt as text, or wait for the composer to mount and call insert() from a banner or experimental_useActiveComposer(). That races with the user typing and needs a per-hand-off flag.
Priority: Medium — improves plugin hand-offs; plain-text and mounted-composer workarounds exist.
Effort: Medium — requires coordinated SDK contract and composer initialization changes.
Labels:plugins, ui
All classifications were missing; no existing values were replaced. Final Type verified as Feature: this adds structured draft seeding rather than repairing supported behavior. Bug reproduction/report and automated fix steps were skipped; no pull request was opened because this requires a public API enhancement.
Activity
bb-slop-cop commentedon Nov 22, 2026
🚨 SLOP COP 🚨 ·
new-issue-autopilotApplied classification:
plugins,uiAll classifications were missing; no existing values were replaced. Final Type verified as Feature: this adds structured draft seeding rather than repairing supported behavior. Bug reproduction/report and automated fix steps were skipped; no pull request was opened because this requires a public API enhancement.
Seed toCompose and NewThreadComposer drafts with mention parts