Skip to content

Slash menu lists plugin skills that agents.configure deselected #5215

Open

Description

@erikmackinnon

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-app npm 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) and codex (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.

  1. bb plugin config bb-guide set skillCreator false

  2. In any project, open a new thread and type /skill-c in 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")'
  3. 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.

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

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 GENERATED and links the thread or report.

AGENT GENERATED. Investigated in bb thread thr_ktdgswv3by (project proj_q98wjmp6my).

Activity

  1. added theissue type on Oct 8, 2026
  2. added
    plugins
    ui
    confirmed-repro
    on Oct 8, 2026
  3. bb-slop-cop commented on Oct 8, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    Classification: 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.

    AGENT GENERATED

  4. bb-slop-cop commented on Oct 20, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    Classification 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.

    AGENT GENERATED

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmed-repropluginsui

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions