Skip to content

Slash picker should use provider command names, not just filenames #3684

Closed as not planned

Description

@iamhenry

Problem

BB’s / picker names provider commands from the markdown filename. OpenCode’s live command list (GET /command) uses a different name when the file’s YAML frontmatter has name: (for example research-contract.md with name: rc is /rc in OpenCode and OpenChamber).

The OpenCode BB plugin already:

  • Scans OpenCode’s command/ and commands/ dirs so the files show up
  • Routes send via GET /command + POST /session/:id/command, so typing /rc and sending can run

It cannot put /rc in the picker. Native roots are filesystem-only. fallbackName is skill-file only. There is no API to inject the provider’s command catalog.

Result: with OpenCode selected, /rc and /tc do not appear under Commands. /research-contract and /task-contract do. Skills are unaffected because they already use frontmatter name.

Outcome

With OpenCode selected, the Commands section of / shows the same names OpenCode uses (/rc, /tc), without the plugin hardcoding aliases or replacing BB’s composer.

Acceptance

  • An OpenCode markdown command whose runtime name is rc (frontmatter name: rc, file research-contract.md) appears as /rc in BB’s Commands picker
  • Commands with no name override still appear as the filename, as today
  • Skills typeahead is unchanged
  • Provider plugins are not required to ship a custom slash overlay

Out of scope

  • Fuzzy matching for /taskc vs /task-contract
  • Changes in the OpenCode plugin as a substitute for this catalog/name gap

Evidence

  • OpenCode command load: filename is the default, then frontmatter is spread over it, so name: wins (packages/opencode/src/config/command.ts)
  • OpenChamber picker: client.command.list / GET /command, not filenames (useCommandsStore.ts)
  • BB: fallbackName is skill-file only (packages/domain/src/native-roots.ts)

Activity

  1. added
    providers
    plugins
    on Sep 14, 2026
  2. bb-slop-cop commented on Sep 14, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    Applied Type: Feature · Priority: Medium · Effort: High and labels providers, plugins. No existing classification values needed preservation.

    The current native-root contract discovers filesystem commands with path-derived names. Provider-authoritative naming requires a new provider capability and contract design. Manual invocation remains a workaround.

    Final Type verified as Feature; reproduction report and automatic PR skipped under this rule.

    AGENT GENERATED

  3. SawyerHood commented on Sep 15, 2026

    @SawyerHood
    Collaborator

    Consolidated into #3685 at the maintainer’s request. The main tracker now links this report and preserves its evidence and acceptance requirements. Duplicate of #3685 for ongoing tracking; closed as not planned here, not as fixed.

    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

    pluginsproviders

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions