-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Clean up Headless Mode Invocation and Implement Verbosity Levels #21433
Copy link
Copy link
Open
Epic
1 / 11 of 1 issue completed
Copy link
Labels
area/non-interactiveIssues related to GitHub Actions, SDK, 3P Integrations, Shell Scripting, Command line automationIssues related to GitHub Actions, SDK, 3P Integrations, Shell Scripting, Command line automationworkstream-rollupLabel used to tag epics and features that are associated with one of the three primary workstreamsLabel used to tag epics and features that are associated with one of the three primary workstreams🔒 maintainer only⛔ Do not contribute. Internal roadmap item.⛔ Do not contribute. Internal roadmap item.
Description
What would you like to be added?
Objective
Ensure headless (non-interactive) invocation is strictly clean and produces only the intended output. This is a critical requirement for the 1.0 release to guarantee the CLI functions reliably for scripting, pipelines, and automation.
The Problem
Non-interactive mode currently leaks distracting initialization messages (such as "loading off" or "loading extensions") into the standard output stream. This pollution breaks scripts and utilities that rely on strict output formatting, such as parsing structured JSON payloads.
Why is this needed?
- Strict Output Purity: Headless invocation must guarantee that standard output (stdout) contains only the requested data or response.
- Degrees of Verbosity: Define and implement clear verbosity levels, offering users a choice between a completely clean output mode and a highly verbose mode for debugging.
- Stream Separation: Ensure all initialization, loading, and diagnostic logs are properly routed to standard error (stderr) or suppressed entirely when operating in clean mode.
Additional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area/non-interactiveIssues related to GitHub Actions, SDK, 3P Integrations, Shell Scripting, Command line automationIssues related to GitHub Actions, SDK, 3P Integrations, Shell Scripting, Command line automationworkstream-rollupLabel used to tag epics and features that are associated with one of the three primary workstreamsLabel used to tag epics and features that are associated with one of the three primary workstreams🔒 maintainer only⛔ Do not contribute. Internal roadmap item.⛔ Do not contribute. Internal roadmap item.