Repository navigation
Description
Summary
When a plugin's agents.configure callback leaves out one of its manifest skills, the agent doesn't receive that skill, but the composer's / menu still lists it. For example, turning off BB guide's Skill creator skill setting still leaves /skill-creator in the menu. I expected the menu to list only the plugin skills that a thread would actually receive.
Versions and environment
- bb 0.45.0,
bb-appnpm package, server on Fedora Linux 43 (kernel 7.1.8), Node v24.21.0 - Menu queried for providers
claude-code(Claude Code 2.1.293) andcodex(codex-cli 0.161.0) - Project-checkout environment. Three enrolled machines; the server and the environment are on the same machine.
Steps to reproduce
Only bb's built-in BB guide plugin is needed.
-
bb plugin config bb-guide set skillCreator false -
In any project, open a new thread and type
/skill-cin the composer. Or query the endpoint the composer uses:curl -s "$BB_SERVER_URL/api/v1/projects/$BB_PROJECT_ID/commands?provider=claude-code&environmentId=$BB_ENVIRONMENT_ID" \ | jq '.commands[] | select(.name == "skill-creator")'
-
Restore:
bb plugin config bb-guide set skillCreator true
Same result with provider=codex. Toggling the setting doesn't change the menu at all: it has 137 entries both before and after.
Expected vs actual
Actual, with skillCreator=false, provider=claude-code and provider=codex:
{"name":"skill-creator","source":"skill","origin":"user","description":"Create or improve BB skills, including their triggers, instructions, and supporting resources.","argumentHint":null,"pluginId":"bb-guide"}
Expected: no skill-creator entry from bb-guide, because BB guide's configure callback no longer returns it.
Evidence
Observed: the output above, from bb 0.45.0.
Cause (from reading the code, permalinks at main f135a00): the menu and thread start build their lists with the same resolveSkillCatalog, but only thread start passes in the plugins' selection.
- Thread start runs
resolvePluginAgentConfigurationand passesselectedSkillIdsByPluginintoresolveSkillCatalog: thread-runtime-config.ts#L157-L214 - The catalog drops deselected plugin skills only when that selection is passed: injected-skills.ts#L664-L668
GET /projects/:id/commands(the composer menu) callsresolveSkillCatalogwithout a selection: projects.ts#L728-L779bb skill listdoes the same: skill-listing.ts#L187-L188- BB guide's per-skill switches work only through
agents.configure: plugins/bb-guide/server.ts#L52-L62 - The SDK describes
configureas selecting manifest skills "for each thread/session resolution": backend-contract.ts#L1617
Possible fix: in the /projects/:id/commands handler, resolve the plugin agent configuration and pass selectedSkillIdsByPlugin to resolveSkillCatalog, the same way thread start does. One design question: the menu request carries project, provider, environment and host but no thread, while PluginAgentConfigurationContext requires thread, origin and pluginMetadata. The route would need either the composer's thread ID when the menu opens in an existing thread, or a defined "new thread" context.
What I ruled out
- Not provider-specific: same result for
claude-codeandcodex. - Not a stale cache: the endpoint was queried right after the setting changed. The menu stays the same even though the agent's selection reads the new setting.
- Still present on
main: from reading the code atf135a00, the commands route still omitspluginSkillSelections. I didn't runmain. - Not a duplicate of Slash picker should use provider command names, not just filenames #3685 or Skill chip picked mid-message is serialized without trailing space and never reaches Claude Code as a skill #2318 (slash picker naming and skill chip serialization). I found no existing issue about menu entries for deselected plugin skills.
- Not verified live: that a thread started with
skillCreator=falsedoesn't receiveskill-creator. That rests on the code above.
Suggested priority and effort (optional)
Low to medium. It affects every plugin that uses agents.configure to turn skills off, including BB guide's own settings. Choosing a listed skill sends a slash command the agent can't resolve. No data is lost. Workaround: none from the UI. The fix is probably small: one route, plus a decision on the configure context without a thread.
Checks
- I reproduced this on the latest release or on
main, or I say above that I could not. - I searched open and closed issues for the same problem.
- If an agent wrote this, the body ends with
> AGENT GENERATEDand links the thread or report.
AGENT GENERATED. Investigated in bb thread
thr_ktdgswv3by(projectproj_q98wjmp6my).
Activity
bb-slop-cop commentedon Oct 8, 2026
🚨 SLOP COP 🚨 ·
new-issue-autopilotClassification: Bug · Priority: Medium · Effort: Medium · Labels:
plugins,ui,confirmed-repro.Verdict: REPRODUCED · Root-cause confidence: high.
Reproduction and root-cause report
The commands endpoint omits the plugin skill selection that thread runtime construction supplies to the shared catalog. With BB guide's skill-creator setting disabled, runtime injection excludes the skill but the menu endpoint still returns it for both Codex and Claude Code. The focused regression fails at the intended assertion in two clean-base runs; 62 relevant existing tests pass.
No PR: The command request lacks thread/model/origin context required by
agents.configure; defining existing-thread and pre-thread preview semantics requires a product/public-contract decision outside the simple-fix scope.bb-slop-cop commentedon Oct 20, 2026
🚨 SLOP COP 🚨 ·
new-issue-autopilotClassification preserved: Bug · Priority: Medium · Effort: Medium · Areas:
ui,plugins.Verdict: REPRODUCED · Root-cause confidence: high · Reproduction label:
confirmed-repro.Reproduction and root-cause report, reverified against trusted main
bd93d18896.The commands route omits the plugin skill selection map that thread runtime supplies to the shared catalog. With the real BB guide plugin's skill-creator setting disabled, runtime injection excludes the skill but command discovery still includes it for both tested providers. The focused regression fails at the intended assertions in two clean checkouts; 29 relevant existing tests pass.
No PR: The command query lacks the thread/model/origin context required by plugin configuration. Defining existing-thread and pre-thread discovery semantics requires a product/public-contract decision outside the simple-fix rules.