Skip to content

BB CLI help does not use plugin command usage, and enforced limits are hidden #2621

Closed

Description

@ryanbbrown

What happens

Nested plugin commands run ordinary argument validation when the user asks for help, so the command prints an error instead of its registered usage. A core command also hides an enforced bound from help.

Reproduction

$ bb memory update --help
update requires a memory id
# exit 1

$ bb docs status --help
--help is not valid for bb docs status
# exit 2

$ bb thread search --help
--limit <count>  Maximum results per group

$ bb thread search thread --limit 51 --json
Error: HTTP 400: limitPerGroup must be at most 50

Expected scope

  • Make Memory and Docs nested -h and --help print the command's registered usage without running command validation.
  • Show enforced limits and incompatible options in core help, ideally from the same contract that validates them.

Current main exposes plugin command usage metadata through apps/cli/src/plugin-cli-proxy.ts, but nested argv still reaches each plugin. Memory still validates the ID before help in plugins/memory/server.ts. Thread search help is in apps/cli/src/commands/thread/organization.ts, while the 50-row bound is enforced in apps/server/src/routes/threads/base.ts from packages/db/src/data/threads.ts.

Related but not duplicates: #2299 covers builtin plugin CLIs that silently ignore unknown flags. #2323 covers the stronger automation-specific case where trailing help can execute a mutation. This issue covers Memory/Docs help errors and visible core-command limits.

Activity

  1. added theissue type on Aug 28, 2026
  2. added
    cli
    plugins
    memory
    docs
    confirmed-repro
    on Aug 28, 2026
  3. bb-slop-cop commented on Aug 28, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    Classification: Type Bug; Priority Medium; Effort Medium; labels cli, docs, plugins, memory, and confirmed-repro.

    Report: https://get-bb.github.io/reports/issues/2621.html

    Verdict: REPRODUCED with high confidence. The CLI sent nested help to plugin validation despite registered usage metadata. Thread search also omitted its enforced maximum from CLI help and validation.

    Reproduction label: confirmed-repro.

    Pull request: #2629

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

    cliconfirmed-reprodocsmemoryplugins

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions