feat(output): add --suppress-reads flag#136
Open
hayatosc wants to merge 1 commit intoopenclaw:mainfrom
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
close #134
This pull request introduces a new
--suppress-readsflag to the CLI, allowing users to suppress the output of raw file contents from read operations in both human-readable and JSON output formats. This is particularly useful for privacy or security-sensitive scenarios, or to reduce noise in agent-to-agent pipelines. The flag is documented across CLI help, documentation, and skill reference files, and is implemented with careful handling in both output formatting and CLI flag resolution.Key changes:
Feature: Suppress Read Output
Added a
--suppress-readsglobal CLI flag that replaces raw file contents with[read output suppressed]in bothtextandjsonoutput formats, while leavingquietmode unchanged. This is reflected in CLI flag parsing, documentation, and the help output.Implemented suppression logic in the output formatters:
CLI and Core Integration
Updated CLI core logic to propagate the
suppressReadsflag through output policy resolution and formatter creation, ensuring consistent behavior across prompt and exec commands.Extended the
GlobalFlagsand output policy types to include the newsuppressReadsoption, ensuring type safety and future extensibility.Documentation
docs/CLI.md,README.md, andskills/acpx/SKILL.md, including usage examples and behavioral details.