Skip to content

Allow disabling built-in approvals CLI group #240

@kamilio

Description

@kamilio

Summary

runCLI() adds a built-in approvals command group to the root CLI.

For CLIs that do not use human-in-loop approvals, this exposes an irrelevant command in root help:

Commands:
  approvals  Inspect and execute queued approvals.

Expected

CLI authors should be able to opt out of the built-in approvals group, for example:

runCLI(root, { approvals: false })

or only include it when humanInLoop async/task-list configuration is present.

Why this matters

Small wrapper CLIs can otherwise show an approvals command that users do not need and that the CLI author did not explicitly define.

Workaround

No clean public workaround found. The group is added internally by runCLI() before command rendering.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions