Skip to content

bug(tooling-core): summary line printed in all recursive runs, not only when --verbose is set #5

Description

@datalackey

Summary

CLI-BEHAVIOR.md states:

The summary appears only in recursive mode and only when --verbose is enabled.

The implementation in createRunnerPolicy.ts:23-30 returns isRecursiveRun from shouldPrintSummary() — true for any recursive run regardless of config.verbose. The summary is printed in all non-quiet recursive runs, including default (non-verbose) runs.

The internal documentation table in RunnerPolicy.ts also contradicts CLI-BEHAVIOR.md by marking Default=Print for the summary line.

Affected files

  • javascript/tooling-core/src/policy/createRunnerPolicy.ts:23-30
  • javascript/tooling-core/src/policy/RunnerPolicy.ts (output table comment)

Fix

Change shouldPrintSummary() to:

shouldPrintSummary: () => isRecursiveRun && config.verbose,

Update the RunnerPolicy.ts output table comment to match. Update CLI-BEHAVIOR.md if the current behavior is intentional (but it appears not to be).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions